pub struct LayoutNode { /* private fields */ }Expand description
A node in the layout tree.
Implementations§
Source§impl LayoutNode
impl LayoutNode
Sourcepub fn id(&self) -> LayoutNodeId
pub fn id(&self) -> LayoutNodeId
Returns the node identifier.
Sourcepub fn parent(&self) -> Option<LayoutNodeId>
pub fn parent(&self) -> Option<LayoutNodeId>
Returns the parent node ID if attached.
Sourcepub fn children(&self) -> &[LayoutNodeId]
pub fn children(&self) -> &[LayoutNodeId]
Returns the children of this node.
Sourcepub fn style_revision(&self) -> u64
pub fn style_revision(&self) -> u64
Returns the style revision counter.
Sourcepub fn measurement_revision(&self) -> u64
pub fn measurement_revision(&self) -> u64
Returns the measurement revision counter.
Sourcepub fn layout(&self) -> LayoutRect
pub fn layout(&self) -> LayoutRect
Returns the computed layout rectangle.
Sourcepub fn unrounded_layout(&self) -> LayoutRect
pub fn unrounded_layout(&self) -> LayoutRect
Returns the unrounded layout rectangle.
Trait Implementations§
Source§impl Clone for LayoutNode
impl Clone for LayoutNode
Auto Trait Implementations§
impl Forget for LayoutNode
impl Freeze for LayoutNodewhere
*const u8 is !null: Freeze,
PhantomData<TrackSizingFunction>: Freeze,
PhantomData<LayoutNodeId>: Freeze,
impl Move for LayoutNode
impl RefUnwindSafe for LayoutNode
impl Send for LayoutNode
impl Sync for LayoutNode
impl Unpin for LayoutNode
impl UnsafeUnpin for LayoutNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<TrackSizingFunction>: UnsafeUnpin,
PhantomData<LayoutNodeId>: UnsafeUnpin,
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