pub struct LayoutBox {
pub node_id: NodeId,
pub node_generation: u32,
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: NodeIdId of the runtime node this box describes.
node_generation: u32Incarnation of the runtime node captured with these layout bounds.
rect: RectPosition and size of the node in root coordinates, in logical pixels, before graphics-layer transforms.
content_offset: PointContent offset for scroll/inner transforms (applies to children, NOT this node’s position)
node_data: LayoutNodeDataModifier, semantics and kind data captured with the node.
children: Vec<LayoutBox>Layout boxes of the node’s placed children.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LayoutBox
impl !Send for LayoutBox
impl !Sync for LayoutBox
impl !UnwindSafe for LayoutBox
impl Freeze for LayoutBox
impl Unpin for LayoutBox
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more