pub enum FocusPolicy {
NotFocusable,
Focusable,
}Expand description
Whether an element may become the keyboard-focus owner.
§Examples
use ailloli_ui_runtime::input::FocusPolicy;
assert_eq!(FocusPolicy::default(), FocusPolicy::NotFocusable);Variants§
NotFocusable
Pointer and keyboard navigation skip the element; this is the default.
Focusable
The input router may assign keyboard focus to the element.
Trait Implementations§
Source§impl Clone for FocusPolicy
impl Clone for FocusPolicy
Source§fn clone(&self) -> FocusPolicy
fn clone(&self) -> FocusPolicy
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 FocusPolicy
impl Debug for FocusPolicy
Source§impl Default for FocusPolicy
impl Default for FocusPolicy
Source§fn default() -> FocusPolicy
fn default() -> FocusPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for FocusPolicy
impl PartialEq for FocusPolicy
impl Copy for FocusPolicy
impl Eq for FocusPolicy
impl StructuralPartialEq for FocusPolicy
Auto Trait Implementations§
impl Freeze for FocusPolicy
impl RefUnwindSafe for FocusPolicy
impl Send for FocusPolicy
impl Sync for FocusPolicy
impl Unpin for FocusPolicy
impl UnwindSafe for FocusPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.