pub struct NodeLayout {
pub rect: Recti,
pub body: Recti,
pub content_size: Dimensioni,
}Expand description
Geometry resolved for a retained node in one frame.
This cache is intentionally layout-only. Parent nodes such as headers, tree nodes, and embedded containers need the previous frame’s rectangles to react to structural input before the current frame’s layout runs.
Fields§
§rect: RectiOuter rectangle assigned to the node.
body: RectiInner body rectangle, when the node exposes one.
content_size: DimensioniContent size produced while traversing the node’s children.
Implementations§
Source§impl NodeLayout
impl NodeLayout
Sourcepub const fn new(rect: Recti, body: Recti, content_size: Dimensioni) -> Self
pub const fn new(rect: Recti, body: Recti, content_size: Dimensioni) -> Self
Creates a layout snapshot for one node.
Trait Implementations§
Source§impl Clone for NodeLayout
impl Clone for NodeLayout
Source§fn clone(&self) -> NodeLayout
fn clone(&self) -> NodeLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeLayout
impl Debug for NodeLayout
Source§impl Default for NodeLayout
impl Default for NodeLayout
Source§fn default() -> NodeLayout
fn default() -> NodeLayout
Returns the “default value” for a type. Read more
impl Copy for NodeLayout
Auto Trait Implementations§
impl Freeze for NodeLayout
impl RefUnwindSafe for NodeLayout
impl Send for NodeLayout
impl Sync for NodeLayout
impl Unpin for NodeLayout
impl UnsafeUnpin for NodeLayout
impl UnwindSafe for NodeLayout
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