pub struct Parts {
pub scrollers: Vec<ScrollerPart>,
pub text_boxes: Vec<TextBoxPart>,
pub lists: Vec<ListPart>,
pub focusables: Vec<Vec<u16>>,
}Expand description
The interactive parts of a view, created by View::build: scrollers,
text boxes, lists, and the Tab focus order. Indices are the order they
were added.
Fields§
§scrollers: Vec<ScrollerPart>§text_boxes: Vec<TextBoxPart>§lists: Vec<ListPart>§focusables: Vec<Vec<u16>>Tab order: buttons, text boxes and lists, in document order.
Implementations§
Source§impl Parts
impl Parts
pub fn new() -> Self
Sourcepub fn text_box(&mut self, path: &[u16]) -> u16
pub fn text_box(&mut self, path: &[u16]) -> u16
Adds a text box at path (also focusable); returns its slot.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parts
impl RefUnwindSafe for Parts
impl Send for Parts
impl Sync for Parts
impl Unpin for Parts
impl UnsafeUnpin for Parts
impl UnwindSafe for Parts
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