pub struct AbsorbPointer<W: Widget> { /* private fields */ }Expand description
Absorbs every pointer event over its rect — nothing inside or behind receives clicks/scrolls. Useful for disabling a region or building a modal barrier.
Implementations§
Trait Implementations§
Source§impl<W: Widget + Send + Sync + 'static> Widget for AbsorbPointer<W>
impl<W: Widget + Send + Sync + 'static> Widget for AbsorbPointer<W>
Source§fn children(&self) -> Children<'_>
fn children(&self) -> Children<'_>
Declare this widget’s children. Drives every default below.
Source§fn layout(&self, ctx: &LayoutCtx<'_>) -> Size
fn layout(&self, ctx: &LayoutCtx<'_>) -> Size
Measure under
ctx.constraints and return a size within them. Read moreSource§fn flex_factor(&self) -> f32
fn flex_factor(&self) -> f32
Flex weight inside Row/Column. Wrappers are transparent by default.
Auto Trait Implementations§
impl<W> Freeze for AbsorbPointer<W>where
W: Freeze,
impl<W> RefUnwindSafe for AbsorbPointer<W>where
W: RefUnwindSafe,
impl<W> Send for AbsorbPointer<W>
impl<W> Sync for AbsorbPointer<W>
impl<W> Unpin for AbsorbPointer<W>where
W: Unpin,
impl<W> UnsafeUnpin for AbsorbPointer<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for AbsorbPointer<W>where
W: UnwindSafe,
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<W> FocusApi for W
impl<W> FocusApi for W
Source§fn focus_node(self, node: FocusNode) -> WithFocus<Self>
fn focus_node(self, node: FocusNode) -> WithFocus<Self>
Attach a focus node. This enables focus-ring rendering and explicit
neighbor wiring.