[−][src]Trait gtk::CheckMenuItemExt
Required methods
fn get_active(&self) -> bool
Returns whether the check menu item is active. See gtk_check_menu_item_set_active ().
Returns
true
if the menu item is checked.
fn get_draw_as_radio(&self) -> bool
fn get_inconsistent(&self) -> bool
fn set_active(&self, is_active: bool)
Sets the active state of the menu item’s check box.
is_active
boolean value indicating whether the check box is active.
fn set_draw_as_radio(&self, draw_as_radio: bool)
Sets whether self
is drawn like a RadioMenuItem
draw_as_radio
whether self
is drawn like a RadioMenuItem
fn set_inconsistent(&self, setting: bool)
If the user has selected a range of elements (such as some text or
spreadsheet cells) that are affected by a boolean setting, and the
current values in that range are inconsistent, you may want to
display the check in an “in between” state. This function turns on
“in between” display. Normally you would turn off the inconsistent
state again if the user explicitly selects a setting. This has to be
done manually, CheckMenuItemExt::set_inconsistent
only affects
visual appearance, it doesn’t affect the semantics of the widget.
setting
true
to display an “inconsistent” third state check
fn toggled(&self)
Emits the CheckMenuItem::toggled
signal.
fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
This signal is emitted when the state of the check box is changed.
A signal handler can use CheckMenuItemExt::get_active
to discover the new state.
fn connect_property_active_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_draw_as_radio_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_inconsistent_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<CheckMenuItem>> CheckMenuItemExt for O
[src]
fn get_active(&self) -> bool
[src]
fn get_draw_as_radio(&self) -> bool
[src]
fn get_inconsistent(&self) -> bool
[src]
fn set_active(&self, is_active: bool)
[src]
fn set_draw_as_radio(&self, draw_as_radio: bool)
[src]
fn set_inconsistent(&self, setting: bool)
[src]
fn toggled(&self)
[src]
fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_property_active_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_draw_as_radio_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_inconsistent_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId