pub enum OverlayBand {
Floating,
Tooltip,
}Expand description
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
impl 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
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.