pub struct InspectedWidget { /* private fields */ }Expand description
Represents an actively inspected widget.
Implementations§
Source§impl InspectedWidget
impl InspectedWidget
Sourcepub fn removed(&self) -> Var<bool>
pub fn removed(&self) -> Var<bool>
If this widget inspector is permanently disconnected and will not update.
This is set to true when an inspected widget is not found after an update, when true
this inspector will not update even if the same widget ID is re-inserted in another update.
Sourcepub fn info(&self) -> Var<WidgetInfo>
pub fn info(&self) -> Var<WidgetInfo>
Latest info.
Sourcepub fn descendants_len(&self) -> Var<usize>
pub fn descendants_len(&self) -> Var<usize>
Count of descendant widgets.
Sourcepub fn wgt_type(&self) -> Var<Option<WidgetType>>
pub fn wgt_type(&self) -> Var<Option<WidgetType>>
Widget type, if the widget was built with inspection info.
Sourcepub fn wgt_macro_name(&self) -> Var<Txt>
pub fn wgt_macro_name(&self) -> Var<Txt>
Widget macro name, or "<widget>!" if widget was not built with inspection info.
Sourcepub fn parent_property_name(&self) -> Var<Txt>
pub fn parent_property_name(&self) -> Var<Txt>
Gets the parent’s property that has this widget as an input.
Is an empty string if the widget is not inserted by any property.
Sourcepub fn children(&self) -> Var<Vec<InspectedWidget>>
pub fn children(&self) -> Var<Vec<InspectedWidget>>
Inspect the widget children.
Sourcepub fn inspector_info(&self) -> Var<Option<InspectedInfo>>
pub fn inspector_info(&self) -> Var<Option<InspectedInfo>>
Inspect the builder, properties and intrinsic nodes that make up the widget.
Is None when the widget is built without inspector info collection.
Sourcepub fn render_watcher<T: VarValue>(
&self,
probe: impl FnMut(&WidgetInfo) -> T + Send + 'static,
) -> Var<T>
pub fn render_watcher<T: VarValue>( &self, probe: impl FnMut(&WidgetInfo) -> T + Send + 'static, ) -> Var<T>
Create a variable that probes info after every frame is rendered.
Trait Implementations§
Source§impl Clone for InspectedWidget
impl Clone for InspectedWidget
Source§fn clone(&self) -> InspectedWidget
fn clone(&self) -> InspectedWidget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InspectedWidget
impl Debug for InspectedWidget
Source§impl PartialEq for InspectedWidget
impl PartialEq for InspectedWidget
impl Eq for InspectedWidget
Auto Trait Implementations§
impl !Freeze for InspectedWidget
impl !RefUnwindSafe for InspectedWidget
impl Send for InspectedWidget
impl Sync for InspectedWidget
impl !Unpin for InspectedWidget
impl !UnwindSafe for InspectedWidget
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
self and other are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
other if both are of the same type.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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FsChangeNote for T
impl<T> FsChangeNote for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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