pub struct WidgetNode {
pub id: usize,
pub type_name: String,
pub widget_id: Option<String>,
pub classes: Vec<String>,
pub rect: Rect,
pub parent: Option<usize>,
pub children: Vec<usize>,
pub expanded: bool,
pub selected: bool,
pub hovered: bool,
pub focused: bool,
}Expand description
Widget node in the tree
Fields§
§id: usizeNode ID
type_name: StringWidget type name
widget_id: Option<String>Optional widget ID
classes: Vec<String>CSS classes
rect: RectBounding rect
parent: Option<usize>Parent node ID
children: Vec<usize>Child node IDs
expanded: boolIs expanded in tree view
selected: boolIs selected
hovered: boolIs hovered
focused: boolIs focused
Implementations§
Source§impl WidgetNode
impl WidgetNode
Trait Implementations§
Source§impl Clone for WidgetNode
impl Clone for WidgetNode
Source§fn clone(&self) -> WidgetNode
fn clone(&self) -> WidgetNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WidgetNode
impl RefUnwindSafe for WidgetNode
impl Send for WidgetNode
impl Sync for WidgetNode
impl Unpin for WidgetNode
impl UnsafeUnpin for WidgetNode
impl UnwindSafe for WidgetNode
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