pub struct Button {
pub name: CString,
pub label: Label,
pub size: Size,
pub outline_name: CString,
pub keycodes: Vec<KeyCode>,
pub action: Action,
}Expand description
The definition of an interactive button
Fields§
§name: CStringID string, e.g. for CSS
label: LabelLabel to display to the user
size: Size§outline_name: CStringThe name of the visual class applied
keycodes: Vec<KeyCode>A cache of raw keycodes derived from Action::Submit given a keymap
action: ActionStatic description of what the key does when pressed or released
Implementations§
Trait Implementations§
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin 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