pub trait ToggleButtonExt:
IsA<ToggleButton>
+ Sealed
+ 'static {
// Provided methods
fn is_active(&self) -> bool { ... }
fn set_active(&self, is_active: bool) { ... }
fn set_group(&self, group: Option<&impl IsA<ToggleButton>>) { ... }
fn toggled(&self) { ... }
fn connect_toggled<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_active_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_group_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
}
Provided Methods§
fn is_active(&self) -> bool
fn set_active(&self, is_active: bool)
fn set_group(&self, group: Option<&impl IsA<ToggleButton>>)
fn toggled(&self)
👎Deprecated: Since 4.10
fn connect_toggled<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_active_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
fn connect_group_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.