[][src]Trait gtk::ToggleToolButtonExt

pub trait ToggleToolButtonExt: 'static {
    fn get_active(&self) -> bool;
fn set_active(&self, is_active: bool);
fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_active_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all ToggleToolButton methods.

Implementors

RadioToolButton, ToggleToolButton

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

Loading content...

Implementors

impl<O: IsA<ToggleToolButton>> ToggleToolButtonExt for O[src]

Loading content...