#[non_exhaustive]pub struct LayoutDomNode {
pub rect: Rect,
pub clipping_enabled: bool,
pub new_layer: bool,
pub clipped_by: Option<WidgetId>,
pub event_interest: EventInterest,
}Expand description
A node in a LayoutDom.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rect: RectThe bounding rectangle of the node in logical pixels.
clipping_enabled: boolThis node will clip its descendants to its bounding rectangle.
new_layer: boolThis node is the beginning of a new layer, and all of its descendants should be hit tested and painted with higher priority.
clipped_by: Option<WidgetId>This node is clipped to the region defined by the given node.
event_interest: EventInterestWhat events the widget reported interest in.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutDomNode
impl RefUnwindSafe for LayoutDomNode
impl Send for LayoutDomNode
impl Sync for LayoutDomNode
impl Unpin for LayoutDomNode
impl UnwindSafe for LayoutDomNode
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