pub struct InspectorNode {
pub type_name: &'static str,
pub screen_bounds: Rect,
pub margin: Insets,
pub padding: Insets,
pub h_anchor: HAnchor,
pub v_anchor: VAnchor,
pub depth: usize,
pub path: Vec<usize>,
pub properties: Vec<(&'static str, String)>,
}Expand description
Flat snapshot of one widget for the inspector panel.
Fields§
§type_name: &'static str§screen_bounds: RectAbsolute screen bounds (Y-up), accumulated as the tree is walked.
margin: InsetsOuter margin in logical units (per-side). Drawn as the orange band
outside screen_bounds in the Chrome F12-style hover overlay.
padding: InsetsInner padding in logical units (per-side) — only nonzero on container
widgets that override Widget::padding. Drawn as the green band
inset from screen_bounds.
h_anchor: HAnchorHorizontal anchor from the widget’s WidgetBase, if present.
v_anchor: VAnchorVertical anchor from the widget’s WidgetBase, if present.
depth: usize§path: Vec<usize>Path of child indices from the App root to this widget. Used by the inspector’s live-editing pipeline to walk back to the live widget and apply a reflected edit. Empty for the root.
properties: Vec<(&'static str, String)>Type-specific display properties from Widget::properties.
Trait Implementations§
Source§impl Clone for InspectorNode
impl Clone for InspectorNode
Source§fn clone(&self) -> InspectorNode
fn clone(&self) -> InspectorNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more