pub struct ModalBarrier {
pub pointer: bool,
pub absorb: bool,
pub paint: bool,
pub semantics: bool,
}Expand description
What a subtree is not allowed to contribute to the frame.
Returned by Widget::barrier; the walk applies it once the subtree has been
visited, by discarding what that subtree added.
Fields§
§pointer: boolDrops the subtree’s input targets: clicks, long presses, focus stops, scrollable areas, scrollbars, drag handles, reorder handles and interactive viewports.
absorb: boolMakes the barrier itself an input target that carries no message, so input
landing on it stops there instead of reaching whatever is painted behind. Only
meaningful together with pointer.
paint: boolDrops the subtree’s primitives — laid out and measured, but not drawn.
semantics: boolDrops the subtree’s accessibility nodes.
Implementations§
Trait Implementations§
Source§impl Clone for ModalBarrier
impl Clone for ModalBarrier
impl Copy for ModalBarrier
Source§impl Debug for ModalBarrier
impl Debug for ModalBarrier
Source§impl Default for ModalBarrier
impl Default for ModalBarrier
impl Eq for ModalBarrier
Source§impl PartialEq for ModalBarrier
impl PartialEq for ModalBarrier
impl StructuralPartialEq for ModalBarrier
Auto Trait Implementations§
impl Freeze for ModalBarrier
impl RefUnwindSafe for ModalBarrier
impl Send for ModalBarrier
impl Sync for ModalBarrier
impl Unpin for ModalBarrier
impl UnsafeUnpin for ModalBarrier
impl UnwindSafe for ModalBarrier
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