pub struct LayoutNode {
pub id: ViewId,
pub rect: Rect,
pub layer: Layer,
pub new_layer: bool,
pub clipping_enabled: bool,
pub clipped_by: Option<ViewId>,
pub interest: Interest,
}Expand description
A node in the layout tree for a view
Fields§
§id: ViewIdThe id of the view
rect: RectThe computed rectangle for the view
layer: LayerWhich layer the view is on
new_layer: boolWas this view on a new layer?
clipping_enabled: boolIs the view being clipped?
clipped_by: Option<ViewId>Who is clipping the view
interest: InterestThe event interests of the view
Implementations§
Trait Implementations§
Source§impl Debug for LayoutNode
impl Debug for LayoutNode
Source§impl Default for LayoutNode
impl Default for LayoutNode
Source§fn default() -> LayoutNode
fn default() -> LayoutNode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayoutNode
impl RefUnwindSafe for LayoutNode
impl Send for LayoutNode
impl Sync for LayoutNode
impl Unpin for LayoutNode
impl UnwindSafe for LayoutNode
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