Struct freya_hooks::UseFocus
source · pub struct UseFocus { /* private fields */ }
Expand description
Manage the focus operations of given Node
Implementations§
source§impl UseFocus
impl UseFocus
sourcepub fn is_focused(&self) -> bool
pub fn is_focused(&self) -> bool
Check if this node is currently focused
sourcepub fn is_selected(&self) -> bool
pub fn is_selected(&self) -> bool
Check if this node is currently selected
sourcepub fn validate_keydown(&self, e: KeyboardEvent) -> bool
pub fn validate_keydown(&self, e: KeyboardEvent) -> bool
Validate keydown event
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UseFocus
impl !Send for UseFocus
impl !Sync for UseFocus
impl Unpin for UseFocus
impl !UnwindSafe for UseFocus
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.