struct ButtonMeta {
action: Option<Action>,
keysym: Option<String>,
text: Option<String>,
modifier: Option<Modifier>,
label: Option<String>,
icon: Option<String>,
outline: Option<String>,
}
Expand description
All info about a single button Buttons can have multiple instances though.
Fields
action: Option<Action>
Special action to perform on activation. Conflicts with keysym, text, modifier.
keysym: Option<String>
The name of the XKB keysym to emit on activation. Conflicts with action, text, modifier.
text: Option<String>
The text to submit on activation. Will be derived from ID if not present Conflicts with action, keysym, modifier.
modifier: Option<Modifier>
The modifier to apply while the key is locked Conflicts with action, keysym, text
label: Option<String>
If not present, will be derived from text or the button ID
icon: Option<String>
Conflicts with label
outline: Option<String>
The name of the outline. If not present, will be “default”
Trait Implementations
sourceimpl Debug for ButtonMeta
impl Debug for ButtonMeta
sourceimpl Default for ButtonMeta
impl Default for ButtonMeta
sourcefn default() -> ButtonMeta
fn default() -> ButtonMeta
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ButtonMeta
impl<'de> Deserialize<'de> for ButtonMeta
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ButtonMeta> for ButtonMeta
impl PartialEq<ButtonMeta> for ButtonMeta
sourcefn eq(&self, other: &ButtonMeta) -> bool
fn eq(&self, other: &ButtonMeta) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ButtonMeta) -> bool
fn ne(&self, other: &ButtonMeta) -> bool
This method tests for !=
.
impl StructuralPartialEq for ButtonMeta
Auto Trait Implementations
impl RefUnwindSafe for ButtonMeta
impl Send for ButtonMeta
impl Sync for ButtonMeta
impl Unpin for ButtonMeta
impl UnwindSafe for ButtonMeta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more