pub struct ToggleButton { /* private fields */ }Expand description
A ToggleButton is a button that can be toggled on or off
Similar to Switch, but with a different visual style (button appearance).
Implementations§
Source§impl ToggleButton
impl ToggleButton
Sourcepub fn new(
activity: &mut Activity,
text: &str,
parent: Option<i64>,
) -> Result<Self>
pub fn new( activity: &mut Activity, text: &str, parent: Option<i64>, ) -> Result<Self>
Create a new ToggleButton (unchecked by default)
Sourcepub fn new_with_checked(
activity: &mut Activity,
text: &str,
parent: Option<i64>,
checked: bool,
) -> Result<Self>
pub fn new_with_checked( activity: &mut Activity, text: &str, parent: Option<i64>, checked: bool, ) -> Result<Self>
Create a new ToggleButton with specified checked state
Auto Trait Implementations§
impl Freeze for ToggleButton
impl RefUnwindSafe for ToggleButton
impl Send for ToggleButton
impl Sync for ToggleButton
impl Unpin for ToggleButton
impl UnwindSafe for ToggleButton
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more