Enum tuix_internal::buttons::button::ButtonEvent [−][src]
Expand description
Events sent when interacting with a button and events to set properties of a button
Variants
Emitted by a button when the button is pressed
Emitted by a button when the button is released
Received by the button and triggers the on_press event to be emitted
Received by the button and triggers the on_release event to be emitted
SetLabel(String)
Sets the label of the button
Tuple Fields of SetLabel
0: String
SetKey(Code)
Sets the keycode for triggering the button with the keyboard
Tuple Fields of SetKey
0: Code
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ButtonEvent
impl Send for ButtonEvent
impl Sync for ButtonEvent
impl Unpin for ButtonEvent
impl UnwindSafe for ButtonEvent
Blanket Implementations
Mutably borrows from an owned value. Read more