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

Required Methods

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

Sets the status of the toggle tool button. Set to true if you want the GtkToggleButton 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

Emitted whenever the toggle tool button changes state.

Implementors