[−][src]Trait gtk::ToggleToolButtonExt
Required methods
fn get_active(&self) -> bool
Queries a ToggleToolButton
and returns its current state.
Returns true
if the toggle button is pressed in and false
if it is raised.
Returns
true
if the toggle tool button is pressed in, false
if not
fn set_active(&self, is_active: bool)
Sets the status of the toggle tool button. Set to true
if you
want the ToggleButton
to be “pressed in”, and false
to raise it.
This action causes the toggled signal to be emitted.
is_active
whether self
should be active
fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Emitted whenever the toggle tool button changes state.
fn connect_property_active_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<ToggleToolButton>> ToggleToolButtonExt for O
[src]
fn get_active(&self) -> bool
[src]
fn set_active(&self, is_active: bool)
[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