pub struct Page {
pub path: Vec<usize>,
pub ordinal: usize,
pub id: NodeId,
}Expand description
One tab’s page: the container its subtree was built into.
Only a tab carrying children has one. A designer needs these because a
page that is not showing is not in the tree’s order at all — nothing in it
paints, answers a press or takes the caret — so reaching the second tab’s
contents means showing that page first.
Fields§
§path: Vec<usize>The tab node’s path in the document.
ordinal: usizeWhich tab it is, counting every tab in the strip. What selected
names.
id: NodeIdThe container the page’s widgets were built into.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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