pub struct Layout {
pub root: LayoutNode,
pub visible: bool,
pub minimum_size: usize,
}Expand description
The Layout compute engine. Assigns screen regions to a tree of layout nodes by recursively splitting available space.
Fields§
§root: LayoutNodeThe root LayoutNode defining the split hierarchy.
visible: boolWhether the layout is visible.
minimum_size: usizeMinimum size for any region.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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