pub struct InspectorNode {
pub id: WidgetId,
pub rect: Rect,
pub name: &'static str,
pub depth: usize,
}Expand description
One observed widget: its identity, its painted box, its short name
(debug_name) and its depth in the tree.
Fields§
§id: WidgetIdThe widget’s identity.
rect: RectThe box it painted, in absolute coordinates.
name: &'static strIts short name, from Widget::debug_name.
depth: usizeHow deep it sits in the tree; the outermost widget is at 0.
Trait Implementations§
Source§impl Clone for InspectorNode
impl Clone for InspectorNode
impl Copy for InspectorNode
Auto Trait Implementations§
impl Freeze for InspectorNode
impl RefUnwindSafe for InspectorNode
impl Send for InspectorNode
impl Sync for InspectorNode
impl Unpin for InspectorNode
impl UnsafeUnpin for InspectorNode
impl UnwindSafe for InspectorNode
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