pub struct LayoutInspection {
pub node: WidgetId,
pub measured: LayoutRect,
pub constraints: BoxConstraints,
pub constrained: LayoutRect,
pub laid_out: LayoutRect,
pub clipped: LayoutRect,
pub painted: LayoutRect,
pub overflow_x: bool,
pub overflow_y: bool,
}Expand description
A node’s geometry at each important stage of the layout pipeline.
Fields§
§node: WidgetIdNode identity being inspected.
measured: LayoutRectNatural content bounds before constraints are applied.
constraints: BoxConstraintsConstraints supplied by the parent.
constrained: LayoutRectNatural content bounds after applying parent and node-local constraints.
laid_out: LayoutRectFinal bounds assigned by layout.
clipped: LayoutRectVisible bounds after ancestor clipping.
painted: LayoutRectEstimated visual bounds including laid-out descendants.
overflow_x: boolWhether natural content exceeds the assigned width.
overflow_y: boolWhether natural content exceeds the assigned height.
Trait Implementations§
Source§impl Clone for LayoutInspection
impl Clone for LayoutInspection
Source§fn clone(&self) -> LayoutInspection
fn clone(&self) -> LayoutInspection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayoutInspection
Source§impl Debug for LayoutInspection
impl Debug for LayoutInspection
Source§impl<'de> Deserialize<'de> for LayoutInspection
impl<'de> Deserialize<'de> for LayoutInspection
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 LayoutInspection
impl PartialEq for LayoutInspection
Source§impl Serialize for LayoutInspection
impl Serialize for LayoutInspection
impl StructuralPartialEq for LayoutInspection
Auto Trait Implementations§
impl Freeze for LayoutInspection
impl RefUnwindSafe for LayoutInspection
impl Send for LayoutInspection
impl Sync for LayoutInspection
impl Unpin for LayoutInspection
impl UnsafeUnpin for LayoutInspection
impl UnwindSafe for LayoutInspection
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