Enum tuix::ButtonEvent [−]
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
impl Clone for ButtonEvent
impl Clone for ButtonEvent
pub fn clone(&self) -> ButtonEvent
pub fn clone(&self) -> ButtonEvent
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for ButtonEvent
impl Debug for ButtonEvent
impl PartialEq<ButtonEvent> for ButtonEvent
impl PartialEq<ButtonEvent> for ButtonEvent
pub fn eq(&self, other: &ButtonEvent) -> bool
pub fn eq(&self, other: &ButtonEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ButtonEvent) -> bool
pub fn ne(&self, other: &ButtonEvent) -> bool
This method tests for !=
.
impl StructuralPartialEq for ButtonEvent
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