pub struct Layout {
pub paints: Vec<Paint>,
pub hits: Vec<HitRegion>,
pub focuses: Vec<FocusRegion>,
pub selects: Vec<SelectRegion>,
pub focusables: Vec<FocusItem>,
pub scrolls: Vec<ScrollRegion>,
pub states: Vec<StateRegion>,
pub access: Vec<AccessNode>,
}Expand description
The result of laying out a tree: paint items, hit regions, and focus regions, all in painter’s/topmost-last order.
Fields§
§paints: Vec<Paint>§hits: Vec<HitRegion>§focuses: Vec<FocusRegion>§selects: Vec<SelectRegion>§focusables: Vec<FocusItem>Keyboard-focusable elements in document (Tab) order.
scrolls: Vec<ScrollRegion>§states: Vec<StateRegion>Boxes with :hover/:active styling, in painter’s order (topmost last).
access: Vec<AccessNode>Elements exposed to assistive technology, in document order.
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