Trait gtk::SwitchExt
[−]
[src]
pub trait SwitchExt {
fn get_active(&self) -> bool;
fn get_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) -> u64;
fn connect_state_set<F: Fn(&Self, bool) -> Inhibit + 'static>(
&self,
f: F
) -> u64;
}
Required Methods
fn get_active(&self) -> bool
fn get_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) -> u64
fn connect_state_set<F: Fn(&Self, bool) -> Inhibit + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64