pub struct TreeProps {
pub section_headers: bool,
pub row_height: RowHeight,
pub selectable: bool,
pub multi_select: bool,
pub movable: bool,
pub indent: Option<f64>,
}Expand description
Immutable-at-realize props of a kinds::TREE host (docs/tree.md). Everything that
changes after realize flows through TreePatch or the injected TreeSource.
Fields§
§section_headers: boolTwo-level sectioned list: root branches are non-selectable headings.
row_height: RowHeight§selectable: boolRows highlight and report selection (crate::Event::TreeSelection).
multi_select: boolSeveral rows may be selected at once; every change reports the full token set.
movable: boolRows drag to a new parent/position through the platform’s own mechanism, driving
TreeSource::moves. Probe crate::Cap::TreeMove for support.
indent: Option<f64>Indentation per depth level, in points. None = the platform’s default step.
Trait Implementations§
impl StructuralPartialEq for TreeProps
Auto Trait Implementations§
impl Freeze for TreeProps
impl RefUnwindSafe for TreeProps
impl Send for TreeProps
impl Sync for TreeProps
impl Unpin for TreeProps
impl UnsafeUnpin for TreeProps
impl UnwindSafe for TreeProps
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