pub struct LayoutBox {
pub node_id: NodeId,
pub rect: Rect,
pub content_offset: Point,
pub node_data: LayoutNodeData,
pub children: Vec<LayoutBox>,
}Expand description
Layout information for a single node.
Fields§
§node_id: NodeId§rect: Rect§content_offset: PointContent offset for scroll/inner transforms (applies to children, NOT this node’s position)
node_data: LayoutNodeData§children: Vec<LayoutBox>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutBox
impl !RefUnwindSafe for LayoutBox
impl !Send for LayoutBox
impl !Sync for LayoutBox
impl Unpin for LayoutBox
impl !UnwindSafe for LayoutBox
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