#[non_exhaustive]pub enum ActionKind {
Clicked,
Toggled(bool),
Changed,
Submitted,
Selected(usize),
Command(u32),
ContextMenu {
at: Point,
},
}Expand description
What a widget reports. The details are on the widget: read them through
Ui::widget.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Clicked
Clicked or activated with the keyboard.
Toggled(bool)
Switched on (true) or off.
Changed
Its value or text changed.
Submitted
Its value or text was confirmed (Enter in a text input).
Selected(usize)
An item was selected, by index.
Command(u32)
A command was chosen (a menu item), by the number the application gave it.
ContextMenu
The user asked for a context menu on the widget: a secondary press at at, or the
context menu key (or Shift+F10) while it has focus, at then its top-left corner.
The widget is the one that handled the press, else the one under the pointer.
Trait Implementations§
Source§impl Clone for ActionKind
impl Clone for ActionKind
impl Copy for ActionKind
Source§impl Debug for ActionKind
impl Debug for ActionKind
Source§impl PartialEq for ActionKind
impl PartialEq for ActionKind
impl StructuralPartialEq for ActionKind
Auto Trait Implementations§
impl Freeze for ActionKind
impl RefUnwindSafe for ActionKind
impl Send for ActionKind
impl Sync for ActionKind
impl Unpin for ActionKind
impl UnsafeUnpin for ActionKind
impl UnwindSafe for ActionKind
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