Trait gtk::prelude::SwitchExt

source ·
pub trait SwitchExt: IsA<Switch> + Sealed + 'static {
    // Provided methods
    fn is_active(&self) -> bool { ... }
    fn state(&self) -> bool { ... }
    fn set_active(&self, is_active: bool) { ... }
    fn set_state(&self, state: bool) { ... }
    fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn emit_activate(&self) { ... }
    fn connect_state_set<F: Fn(&Self, bool) -> Propagation + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_active_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_state_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn is_active(&self) -> bool

source

fn state(&self) -> bool

source

fn set_active(&self, is_active: bool)

source

fn set_state(&self, state: bool)

source

fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn emit_activate(&self)

source

fn connect_state_set<F: Fn(&Self, bool) -> Propagation + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_state_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Implementors§

source§

impl<O: IsA<Switch>> SwitchExt for O