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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.