pub enum PopupBackend {
Overlay,
Native,
}Expand description
Presentation backend requested or selected for a popup.
Overlay support is universal. Native is only selected when the active
host explicitly reports that capability; requesting it never disables the
deterministic overlay fallback.
§Examples
use ailloli_ui_runtime::popup::PopupBackend;
assert_eq!(PopupBackend::default(), PopupBackend::Overlay);Variants§
Overlay
Mount content in the retained in-window overlay.
Native
Ask a capable host for a separate native popup presentation.
Trait Implementations§
Source§impl Clone for PopupBackend
impl Clone for PopupBackend
Source§fn clone(&self) -> PopupBackend
fn clone(&self) -> PopupBackend
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 PopupBackend
impl Debug for PopupBackend
Source§impl Default for PopupBackend
impl Default for PopupBackend
Source§fn default() -> PopupBackend
fn default() -> PopupBackend
Returns the “default value” for a type. Read more
Source§impl PartialEq for PopupBackend
impl PartialEq for PopupBackend
impl Copy for PopupBackend
impl Eq for PopupBackend
impl StructuralPartialEq for PopupBackend
Auto Trait Implementations§
impl Freeze for PopupBackend
impl RefUnwindSafe for PopupBackend
impl Send for PopupBackend
impl Sync for PopupBackend
impl Unpin for PopupBackend
impl UnwindSafe for PopupBackend
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.