pub struct InspectNode {Show 14 fields
pub id: NodeId,
pub parent: Option<NodeId>,
pub children: Vec<NodeId>,
pub tag: &'static str,
pub rect: Option<Rect>,
pub size: Option<Size>,
pub constraints: Option<Constraints>,
pub semantics: Vec<(Role, Option<String>)>,
pub hit_count: usize,
pub scroll_count: usize,
pub overlay_count: usize,
pub has_editable: bool,
pub hovered: bool,
pub pressed: bool,
}Expand description
One node in an RenderTree::inspect snapshot — plain data only.
Fields§
§id: NodeId§parent: Option<NodeId>§children: Vec<NodeId>§tag: &'static strWidget type name (std::any::type_name-derived tag already tracked
per node for the picture cache).
rect: Option<Rect>§size: Option<Size>§constraints: Option<Constraints>§semantics: Vec<(Role, Option<String>)>This node’s own declared semantics (role, label) — usually 0 or 1 entries; a few widgets (e.g. a labeled group) declare more than one.
hit_count: usize§scroll_count: usize§overlay_count: usize§has_editable: bool§hovered: bool§pressed: boolTrait Implementations§
Source§impl Clone for InspectNode
impl Clone for InspectNode
Source§fn clone(&self) -> InspectNode
fn clone(&self) -> InspectNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InspectNode
impl RefUnwindSafe for InspectNode
impl Send for InspectNode
impl Sync for InspectNode
impl Unpin for InspectNode
impl UnsafeUnpin for InspectNode
impl UnwindSafe for InspectNode
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