pub enum PointerOcclusion {
None,
BlockMouse,
BlockMouseExceptScroll,
}Expand description
Controls whether an overlay layer prevents pointer interactions from reaching layers beneath it.
This is a mechanism only. Policy lives in ecosystem crates (e.g. fret-ui-kit), which decide
when to enable occlusion (Radix disableOutsidePointerEvents outcomes, editor interaction
arbitration, etc.).
Variants§
None
No occlusion; pointer events route normally via hit-testing across layers.
BlockMouse
Blocks pointer interaction (hover/move/down/up) for layers beneath the occluding layer.
BlockMouseExceptScroll
Blocks pointer interaction for layers beneath the occluding layer, but allows scroll wheel to route to underlay scroll targets.
Trait Implementations§
Source§impl Clone for PointerOcclusion
impl Clone for PointerOcclusion
Source§fn clone(&self) -> PointerOcclusion
fn clone(&self) -> PointerOcclusion
Returns a duplicate 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 PointerOcclusion
impl Debug for PointerOcclusion
Source§impl Default for PointerOcclusion
impl Default for PointerOcclusion
Source§fn default() -> PointerOcclusion
fn default() -> PointerOcclusion
Returns the “default value” for a type. Read more
Source§impl PartialEq for PointerOcclusion
impl PartialEq for PointerOcclusion
impl Copy for PointerOcclusion
impl Eq for PointerOcclusion
impl StructuralPartialEq for PointerOcclusion
Auto Trait Implementations§
impl Freeze for PointerOcclusion
impl RefUnwindSafe for PointerOcclusion
impl Send for PointerOcclusion
impl Sync for PointerOcclusion
impl Unpin for PointerOcclusion
impl UnsafeUnpin for PointerOcclusion
impl UnwindSafe for PointerOcclusion
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