pub struct ButtonProps {
pub title: String,
pub icon: Option<Icon>,
pub icon_only: bool,
pub enabled: bool,
pub style: ButtonStyleSpec,
pub selected: bool,
}Fields§
§title: String§icon: Option<Icon>§icon_only: bool§enabled: bool§style: ButtonStyleSpec§selected: boolThe button stands for the current choice among its siblings (a document tab, a view switcher): the platform’s own checked or selected rendering, which keeps the button enabled, focusable and activatable, and tells assistive tech it is selected. A click never toggles it natively; only the app’s next patch changes it.
Trait Implementations§
Source§impl Clone for ButtonProps
impl Clone for ButtonProps
Source§fn clone(&self) -> ButtonProps
fn clone(&self) -> ButtonProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ButtonProps
impl Debug for ButtonProps
Source§impl Default for ButtonProps
impl Default for ButtonProps
Source§fn default() -> ButtonProps
fn default() -> ButtonProps
Returns the “default value” for a type. Read more
Source§impl PartialEq for ButtonProps
impl PartialEq for ButtonProps
impl StructuralPartialEq for ButtonProps
Auto Trait Implementations§
impl Freeze for ButtonProps
impl RefUnwindSafe for ButtonProps
impl Send for ButtonProps
impl Sync for ButtonProps
impl Unpin for ButtonProps
impl UnsafeUnpin for ButtonProps
impl UnwindSafe for ButtonProps
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