pub enum OverlayBand {
Floating,
Tooltip,
}Expand description
The overlay registry’s own vocabulary, re-exported from frust-core so a
design system naming a band, an input class, a light-dismiss policy or a
surface identity does it through this one module: an
OverlaySlot’s setters take exactly these types, and a widget that cannot
name them cannot configure one.
Which z-band a registered surface paints and hit-tests in.
Two bands, ordered Floating below Tooltip: a tooltip explaining a
menu item must never be painted under the menu, and — because hit testing
walks the bands in reverse — must never steal the pointer from it either
(a tooltip is normally registered OverlayInput::Transparent anyway).
Registration order breaks ties within a band; the band itself always wins.
Variants§
Floating
Menus, popovers, dropdowns, selection toolbars — anything the user can interact with. Painted first, hit-tested last.
Tooltip
Tooltips and other explanatory chrome that must sit above everything else. Painted last, hit-tested first.
Trait Implementations§
Source§impl Clone for OverlayBand
impl Clone for OverlayBand
Source§fn clone(&self) -> OverlayBand
fn clone(&self) -> OverlayBand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OverlayBand
Source§impl Debug for OverlayBand
impl Debug for OverlayBand
impl Eq for OverlayBand
Source§impl Hash for OverlayBand
impl Hash for OverlayBand
Source§impl Ord for OverlayBand
impl Ord for OverlayBand
Source§fn cmp(&self, other: &OverlayBand) -> Ordering
fn cmp(&self, other: &OverlayBand) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for OverlayBand
impl PartialEq for OverlayBand
Source§impl PartialOrd for OverlayBand
impl PartialOrd for OverlayBand
impl StructuralPartialEq for OverlayBand
Auto Trait Implementations§
impl Freeze for OverlayBand
impl RefUnwindSafe for OverlayBand
impl Send for OverlayBand
impl Sync for OverlayBand
impl Unpin for OverlayBand
impl UnsafeUnpin for OverlayBand
impl UnwindSafe for OverlayBand
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.