#[non_exhaustive]pub enum PopupMountPolicy {
RetainedOverlay,
ProceduralFallback,
}Expand description
Rendering ownership selected for one popup registration.
New popup content is mounted into the provider-neutral retained overlay by
default. Widgets that still draw their own overlay must opt into
Self::ProceduralFallback until their shell, placement, and interaction
have migrated to the retained subtree.
The portal keeps two fixed z-order strata: procedural fallbacks are always below retained overlays. Opening a popup raises it only within its own stratum, so paint, hit-testing, outside dismissal, and Escape all agree on the same topmost popup during the migration.
§Examples
use ailloli_ui_runtime::popup::PopupMountPolicy;
assert_eq!(PopupMountPolicy::default(), PopupMountPolicy::RetainedOverlay);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RetainedOverlay
Mount the popup factory into the runtime-owned retained overlay tree.
ProceduralFallback
Keep widget-owned procedural drawing in the lower migration stratum.
Trait Implementations§
Source§impl Clone for PopupMountPolicy
impl Clone for PopupMountPolicy
Source§fn clone(&self) -> PopupMountPolicy
fn clone(&self) -> PopupMountPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PopupMountPolicy
impl Debug for PopupMountPolicy
Source§impl Default for PopupMountPolicy
impl Default for PopupMountPolicy
Source§fn default() -> PopupMountPolicy
fn default() -> PopupMountPolicy
Source§impl PartialEq for PopupMountPolicy
impl PartialEq for PopupMountPolicy
impl Copy for PopupMountPolicy
impl Eq for PopupMountPolicy
impl StructuralPartialEq for PopupMountPolicy
Auto Trait Implementations§
impl Freeze for PopupMountPolicy
impl RefUnwindSafe for PopupMountPolicy
impl Send for PopupMountPolicy
impl Sync for PopupMountPolicy
impl Unpin for PopupMountPolicy
impl UnwindSafe for PopupMountPolicy
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
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
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.