pub struct LayoutResult {
pub rect: Rect,
pub content_rect: Rect,
pub is_dirty: bool,
}
Expand description
Computed layout result for a node
Fields§
§rect: Rect
Final position and size
content_rect: Rect
Content area (excluding padding and border)
is_dirty: bool
Whether this layout is dirty and needs recalculation
Trait Implementations§
Source§impl Clone for LayoutResult
impl Clone for LayoutResult
Source§fn clone(&self) -> LayoutResult
fn clone(&self) -> LayoutResult
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 moreSource§impl Debug for LayoutResult
impl Debug for LayoutResult
Source§impl Default for LayoutResult
impl Default for LayoutResult
Source§impl PartialEq for LayoutResult
impl PartialEq for LayoutResult
impl StructuralPartialEq for LayoutResult
Auto Trait Implementations§
impl Freeze for LayoutResult
impl RefUnwindSafe for LayoutResult
impl Send for LayoutResult
impl Sync for LayoutResult
impl Unpin for LayoutResult
impl UnwindSafe for LayoutResult
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<T> Event for T
impl<T> Event for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to Any for downcasting (mutable)
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Get the event type name
Source§impl<T> Props for T
impl<T> Props for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any for downcasting