pub struct LayoutDebugInfo {
pub constraints_in: Constraints,
pub constraints_final: Option<Constraints>,
pub layout_size: Size,
}Expand description
Per-element layout measurements retained for developer tooling.
The first constraints observed in a frame remain in constraints_in;
repeated records update constraints_final and layout_size.
§Examples
use ailloli_ui_core::{Constraints, Size};
use ailloli_ui_runtime::layout::LayoutDebugInfo;
let info = LayoutDebugInfo {
constraints_in: Constraints::loose(100.0, 80.0),
constraints_final: None,
layout_size: Size::new(40.0, 20.0),
};
assert!(info.constraints_final.is_none());Fields§
§constraints_in: ConstraintsFirst constraints received for the element, in logical pixels.
constraints_final: Option<Constraints>Most recently recorded constraints, or None before a record is finalized.
layout_size: SizeMost recently recorded output size, in logical pixels.
Trait Implementations§
Source§impl Clone for LayoutDebugInfo
impl Clone for LayoutDebugInfo
Source§fn clone(&self) -> LayoutDebugInfo
fn clone(&self) -> LayoutDebugInfo
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for LayoutDebugInfo
impl RefUnwindSafe for LayoutDebugInfo
impl Send for LayoutDebugInfo
impl Sync for LayoutDebugInfo
impl Unpin for LayoutDebugInfo
impl UnwindSafe for LayoutDebugInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.