Enum FocusOnPress
#[repr(i32)]pub enum FocusOnPress {
None = 0,
Node = 1,
NodeOrAncestor = 2,
NodeOrOverlay = 3,
}Expand description
Variants§
None = 0
Does nothing.
Node = 1
Tries to set focus to the node that the user pressed and if that fails, does nothing.
NodeOrAncestor = 2
Tries to set focus to the node that the user pressed and if that fails, sets focus to the nearest focusable ancestor of that node.
NodeOrOverlay = 3
Tries to set focus to the node that the user pressed and if that fails, sets focus to the overlay scope that contains the node.
Implementations§
§impl FocusOnPress
impl FocusOnPress
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> FocusOnPress
Trait Implementations§
§impl Clone for FocusOnPress
impl Clone for FocusOnPress
§fn clone(&self) -> FocusOnPress
fn clone(&self) -> FocusOnPress
Returns a duplicate 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 more§impl Debug for FocusOnPress
impl Debug for FocusOnPress
§impl Display for FocusOnPress
impl Display for FocusOnPress
§impl PartialEq for FocusOnPress
impl PartialEq for FocusOnPress
§impl VariantConstraint for FocusOnPress
impl VariantConstraint for FocusOnPress
§type DataArg<'a> = FocusOnPress
type DataArg<'a> = FocusOnPress
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = FocusOnPress
type RetArg = FocusOnPress
§fn as_arg(&self) -> <FocusOnPress as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <FocusOnPress as VariantConstraint>::DataArg<'_>
impl Copy for FocusOnPress
impl Eq for FocusOnPress
impl PropertyTypeConstraint for FocusOnPress
impl StructuralPartialEq for FocusOnPress
Auto Trait Implementations§
impl Freeze for FocusOnPress
impl RefUnwindSafe for FocusOnPress
impl Send for FocusOnPress
impl Sync for FocusOnPress
impl Unpin for FocusOnPress
impl UnwindSafe for FocusOnPress
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