#[non_exhaustive]pub enum PopupFocusPolicy {
None,
MoveIntoPopup,
TrapWithinPopup,
}Expand description
Focus behavior requested when the popup becomes visible.
§Examples
use ailloli_ui_runtime::popup::PopupFocusPolicy;
assert_eq!(PopupFocusPolicy::default(), PopupFocusPolicy::None);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.
None
Preserve current focus.
MoveIntoPopup
Move focus to the first focusable popup descendant.
TrapWithinPopup
Move focus into the popup and request focus trapping within it.
Trait Implementations§
Source§impl Clone for PopupFocusPolicy
impl Clone for PopupFocusPolicy
Source§fn clone(&self) -> PopupFocusPolicy
fn clone(&self) -> PopupFocusPolicy
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 PopupFocusPolicy
impl Debug for PopupFocusPolicy
Source§impl Default for PopupFocusPolicy
impl Default for PopupFocusPolicy
Source§fn default() -> PopupFocusPolicy
fn default() -> PopupFocusPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for PopupFocusPolicy
impl PartialEq for PopupFocusPolicy
impl Copy for PopupFocusPolicy
impl Eq for PopupFocusPolicy
impl StructuralPartialEq for PopupFocusPolicy
Auto Trait Implementations§
impl Freeze for PopupFocusPolicy
impl RefUnwindSafe for PopupFocusPolicy
impl Send for PopupFocusPolicy
impl Sync for PopupFocusPolicy
impl Unpin for PopupFocusPolicy
impl UnwindSafe for PopupFocusPolicy
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.