pub struct Button {
pub states: [Option<String>; 4],
pub content: Option<String>,
pub colors: [u32; 4],
}Expand description
A button’s description.
Fields§
§states: [Option<String>; 4]enabled, disabled, highlight, pressed state elements
content: Option<String>The content: a label or an image.
colors: [u32; 4]Content colours per state (ARGB), same order as states.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnsafeUnpin for Button
impl UnwindSafe for Button
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