pub struct LayoutInspection {Show 13 fields
pub node: DevWidgetId,
pub parent: Option<DevWidgetId>,
pub incoming_constraints: Option<DebugValue>,
pub resolved_size: [f32; 2],
pub local_offset: [f32; 2],
pub local_transform: [f32; 6],
pub world_transform: [f32; 6],
pub world_bounds: [f32; 4],
pub content_bounds: [f32; 4],
pub padding: Option<[f32; 4]>,
pub clip: Option<[f32; 4]>,
pub baseline: Option<f32>,
pub details: LayoutDetails,
}Expand description
Read-only geometry captured from the retained layout result. This is a snapshot, never a handle to a mutable render object; DevTools must not run layout again merely to answer an inspection request.
Fields§
§node: DevWidgetId§parent: Option<DevWidgetId>§incoming_constraints: Option<DebugValue>§resolved_size: [f32; 2]§local_offset: [f32; 2]§local_transform: [f32; 6]Kurbo affine coefficients [xx, yx, xy, yy, dx, dy].
world_transform: [f32; 6]Retained world transform, expressed using Kurbo’s coefficients.
world_bounds: [f32; 4]§content_bounds: [f32; 4]§padding: Option<[f32; 4]>§clip: Option<[f32; 4]>§baseline: Option<f32>§details: LayoutDetailsTrait Implementations§
Source§impl Clone for LayoutInspection
impl Clone 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 Forget for LayoutInspection
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