Enum accesskit::DefaultActionVerb
source · #[repr(u8)]pub enum DefaultActionVerb {
Click = 0,
Focus = 1,
Check = 2,
Uncheck = 3,
ClickAncestor = 4,
Jump = 5,
Open = 6,
Press = 7,
Select = 8,
Unselect = 9,
}
Expand description
Describes the action that will be performed on a given node when executing the default action, which is a click.
In contrast to Action
, these describe what the user can do on the
object, e.g. “press”, not what happens to the object as a result.
Only one verb can be used at a time to describe the default action.
Variants§
Click = 0
Focus = 1
Check = 2
Uncheck = 3
ClickAncestor = 4
A click will be performed on one of the node’s ancestors. This happens when the node itself is not clickable, but one of its ancestors has click handlers attached which are able to capture the click as it bubbles up.
Jump = 5
Open = 6
Press = 7
Select = 8
Unselect = 9
Trait Implementations§
source§impl Clone for DefaultActionVerb
impl Clone for DefaultActionVerb
source§fn clone(&self) -> DefaultActionVerb
fn clone(&self) -> DefaultActionVerb
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DefaultActionVerb
impl Debug for DefaultActionVerb
source§impl Hash for DefaultActionVerb
impl Hash for DefaultActionVerb
source§impl PartialEq for DefaultActionVerb
impl PartialEq for DefaultActionVerb
source§fn eq(&self, other: &DefaultActionVerb) -> bool
fn eq(&self, other: &DefaultActionVerb) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DefaultActionVerb
impl Eq for DefaultActionVerb
impl StructuralEq for DefaultActionVerb
impl StructuralPartialEq for DefaultActionVerb
Auto Trait Implementations§
impl RefUnwindSafe for DefaultActionVerb
impl Send for DefaultActionVerb
impl Sync for DefaultActionVerb
impl Unpin for DefaultActionVerb
impl UnwindSafe for DefaultActionVerb
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