pub struct LayoutNodeGeometry {
pub rect: LayoutRect,
pub content_size: LayoutSize,
}Expand description
The computed geometry of a single layout node.
After layout, every node has a bounding rectangle (its position and size on screen) and a content size (how large its content actually is, which may exceed the rect for scroll containers).
Fields§
§rect: LayoutRectThe bounding rectangle of this node in absolute (screen) coordinates.
content_size: LayoutSizeThe natural size of the node’s content before clipping. For scroll containers,
this may be larger than rect.size, indicating scrollable overflow.
Trait Implementations§
Source§impl Clone for LayoutNodeGeometry
impl Clone for LayoutNodeGeometry
Source§fn clone(&self) -> LayoutNodeGeometry
fn clone(&self) -> LayoutNodeGeometry
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 LayoutNodeGeometry
impl Debug for LayoutNodeGeometry
Source§impl<'de> Deserialize<'de> for LayoutNodeGeometry
impl<'de> Deserialize<'de> for LayoutNodeGeometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LayoutNodeGeometry
impl PartialEq for LayoutNodeGeometry
Source§impl Serialize for LayoutNodeGeometry
impl Serialize for LayoutNodeGeometry
impl StructuralPartialEq for LayoutNodeGeometry
Auto Trait Implementations§
impl Freeze for LayoutNodeGeometry
impl RefUnwindSafe for LayoutNodeGeometry
impl Send for LayoutNodeGeometry
impl Sync for LayoutNodeGeometry
impl Unpin for LayoutNodeGeometry
impl UnsafeUnpin for LayoutNodeGeometry
impl UnwindSafe for LayoutNodeGeometry
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