pub enum OverlayInput {
Interactive,
Transparent,
}Expand description
Whether a registered surface takes pointer input at all.
OverlayInput::Transparent is the rule egui’s Order::Tooltip encodes: a
surface that is painted above the app but never hit-tested, so the pointer
passes straight through it to whatever the main tree has underneath. A
transparent entry is skipped by the root’s pre-pass entirely — it receives no
InputEvent::Overlay, including no
OverlayEventKind::OutsideDown.
Variants§
Interactive
The surface hit-tests: a pointer inside its rect is routed to its owner and never reaches the main tree.
Transparent
The surface is painted but never hit-tested — pointer input passes through as though it were not there.
Trait Implementations§
Source§impl Clone for OverlayInput
impl Clone for OverlayInput
impl Copy for OverlayInput
Source§impl Debug for OverlayInput
impl Debug for OverlayInput
impl Eq for OverlayInput
Source§impl Hash for OverlayInput
impl Hash for OverlayInput
Source§impl PartialEq for OverlayInput
impl PartialEq for OverlayInput
impl StructuralPartialEq for OverlayInput
Auto Trait Implementations§
impl Freeze for OverlayInput
impl RefUnwindSafe for OverlayInput
impl Send for OverlayInput
impl Sync for OverlayInput
impl Unpin for OverlayInput
impl UnsafeUnpin for OverlayInput
impl UnwindSafe for OverlayInput
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> 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.