pub struct WidgetInfo { /* private fields */ }Expand description
Reference to a widget info in a WidgetInfoTree.
Implementations§
Source§impl WidgetInfo
impl WidgetInfo
Sourcepub fn access(&self) -> Option<WidgetAccessInfo>
pub fn access(&self) -> Option<WidgetAccessInfo>
Accessibility info, if the widget is accessible.
The widget is accessible only if access_enabled and some accessibility metadata was set on the widget.
Sourcepub fn access_children(&self) -> impl Iterator<Item = WidgetAccessInfo>
pub fn access_children(&self) -> impl Iterator<Item = WidgetAccessInfo>
Descendant branches that have accessibility info.
The iterator enters descendants only until it finds a node that has access info, these nodes are yielded.
Sourcepub fn access_parent(&self) -> Option<WidgetAccessInfo>
pub fn access_parent(&self) -> Option<WidgetAccessInfo>
First ancestor that is accessible.
Source§impl WidgetInfo
impl WidgetInfo
Sourcepub fn path(&self) -> WidgetPath
pub fn path(&self) -> WidgetPath
Full path to this widget.
Sourcepub fn trace_path(&self) -> Txt
pub fn trace_path(&self) -> Txt
Path details to help finding the widget during debug.
If the inspector metadata is present the widget type is included.
Sourcepub fn trace_id(&self) -> Txt
pub fn trace_id(&self) -> Txt
Detailed id text.
If the inspector metadata is present the widget type is included.
Sourcepub fn interaction_path(&self) -> InteractionPath
pub fn interaction_path(&self) -> InteractionPath
Full path to this widget with interactivity values.
Sourcepub fn new_path(&self, old_path: &WidgetPath) -> Option<WidgetPath>
pub fn new_path(&self, old_path: &WidgetPath) -> Option<WidgetPath>
Sourcepub fn new_interaction_path(
&self,
old_path: &InteractionPath,
) -> Option<InteractionPath>
pub fn new_interaction_path( &self, old_path: &InteractionPath, ) -> Option<InteractionPath>
Gets the interaction_path if it is different from old_path.
Only allocates a new path if needed.
§Panics
If old_path does not point to the same widget id as self.
Sourcepub fn z_index(&self) -> Option<(ZIndex, ZIndex)>
pub fn z_index(&self) -> Option<(ZIndex, ZIndex)>
Get the z-index of the widget in the latest frame if it was rendered.
Note that widgets can render in the back and front of each descendant, these indexes are the back-most index, the moment the widget starts rendering and the front-most index at the moment the widget and all contents finishes rendering.
This value is updated every render without causing a tree rebuild.
Sourcepub fn visibility(&self) -> Visibility
pub fn visibility(&self) -> Visibility
Sourcepub fn interactivity(&self) -> Interactivity
pub fn interactivity(&self) -> Interactivity
Get or compute the interactivity of the widget.
The interactivity of a widget is the combined result of all interactivity filters applied to it and its ancestors. If a parent is blocked this is blocked, same for disabled.
Sourcepub fn bounds_info(&self) -> WidgetBoundsInfo
pub fn bounds_info(&self) -> WidgetBoundsInfo
All the transforms introduced by this widget, starting from the outer info.
This information is up-to-date, it is updated every layout and render without causing a tree rebuild.
Sourcepub fn border_info(&self) -> WidgetBorderInfo
pub fn border_info(&self) -> WidgetBorderInfo
Clone a reference to the widget border and corner radius information.
This information is up-to-date, it is updated every layout without causing a tree rebuild.
Sourcepub fn perspective(&self) -> Option<(f32, PxPoint)>
pub fn perspective(&self) -> Option<(f32, PxPoint)>
Gets the 3D perspective for this widget.
The f32 is a distance from the Z-plane to the viewer, the point is the vanishing center in the parent widget inner bounds.
Sourcepub fn transform_style(&self) -> TransformStyle
pub fn transform_style(&self) -> TransformStyle
Gets the transform style for this widget.
Is Flat unless it or the parent widget sets Preserve3D.
Sourcepub fn outer_size(&self) -> PxSize
pub fn outer_size(&self) -> PxSize
Size of the widget outer area, not transformed.
Returns an up-to-date size, the size is updated every layout without causing a tree rebuild.
Sourcepub fn inner_size(&self) -> PxSize
pub fn inner_size(&self) -> PxSize
Size of the widget inner area, not transformed.
Returns an up-to-date size, the size is updated every layout without causing a tree rebuild.
Sourcepub fn inner_border_size(&self) -> PxSize
pub fn inner_border_size(&self) -> PxSize
Size of the widget child area, not transformed.
Returns an up-to-date size, the size is updated every layout without causing a tree rebuild.
Sourcepub fn outer_transform(&self) -> PxTransform
pub fn outer_transform(&self) -> PxTransform
Widget outer transform in window space.
Returns an up-to-date transform, the transform is updated every render or render update without causing a tree rebuild.
Sourcepub fn inner_transform(&self) -> PxTransform
pub fn inner_transform(&self) -> PxTransform
Widget inner transform in the window space.
Returns an up-to-date transform, the transform is updated every render or render update without causing a tree rebuild.
Sourcepub fn outer_bounds(&self) -> PxRect
pub fn outer_bounds(&self) -> PxRect
Widget outer rectangle in the window space.
Returns an up-to-date rect, the bounds are updated every render or render update without causing a tree rebuild.
Sourcepub fn inner_bounds(&self) -> PxRect
pub fn inner_bounds(&self) -> PxRect
Widget inner rectangle in the window space.
Returns an up-to-date rect, the bounds are updated every render or render update without causing a tree rebuild.
Sourcepub fn spatial_bounds(&self) -> PxBox
pub fn spatial_bounds(&self) -> PxBox
Compute the bounding box that envelops self and descendants inner bounds.
Sourcepub fn meta(&self) -> StateMapRef<'_, WidgetInfoMeta>
pub fn meta(&self) -> StateMapRef<'_, WidgetInfoMeta>
Custom metadata associated with the widget during info build.
Sourcepub fn tree(&self) -> &WidgetInfoTree
pub fn tree(&self) -> &WidgetInfoTree
Reference the WidgetInfoTree that owns self.
Sourcepub fn is_reused(&self) -> bool
pub fn is_reused(&self) -> bool
If the widget info and all descendants did not change in the last rebuild.
Sourcepub fn parent(&self) -> Option<Self>
pub fn parent(&self) -> Option<Self>
Reference to the widget that contains this widget.
Is None only for root.
Sourcepub fn prev_sibling(&self) -> Option<Self>
pub fn prev_sibling(&self) -> Option<Self>
Reference to the previous widget within the same parent.
Sourcepub fn next_sibling(&self) -> Option<Self>
pub fn next_sibling(&self) -> Option<Self>
Reference to the next widget within the same parent.
Sourcepub fn first_child(&self) -> Option<Self>
pub fn first_child(&self) -> Option<Self>
Reference to the first widget within this widget.
Sourcepub fn last_child(&self) -> Option<Self>
pub fn last_child(&self) -> Option<Self>
Reference to the last widget within this widget.
Sourcepub fn has_siblings(&self) -> bool
pub fn has_siblings(&self) -> bool
If the parent widget has multiple children.
Sourcepub fn has_children(&self) -> bool
pub fn has_children(&self) -> bool
If the widget has at least one child.
Sourcepub fn siblings(&self) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn siblings(&self) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
All parent children except this widget.
Sourcepub fn children_count(&self) -> usize
pub fn children_count(&self) -> usize
Count of children.
Sourcepub fn self_and_children(&self) -> Children ⓘ
pub fn self_and_children(&self) -> Children ⓘ
Iterator over the widget and the direct descendants of the widget.
Sourcepub fn descendants(&self) -> TreeIter ⓘ
pub fn descendants(&self) -> TreeIter ⓘ
Iterator over all widgets contained by this widget.
Sourcepub fn descendants_len(&self) -> usize
pub fn descendants_len(&self) -> usize
Total number of descendants.
Sourcepub fn self_and_descendants(&self) -> TreeIter ⓘ
pub fn self_and_descendants(&self) -> TreeIter ⓘ
Iterator over the widget and all widgets contained by it.
Sourcepub fn descendants_range(&self) -> WidgetDescendantsRange
pub fn descendants_range(&self) -> WidgetDescendantsRange
Gets a value that can check if widgets are descendant of self in O(1) time.
Sourcepub fn cmp_sibling_in(
&self,
sibling: &WidgetInfo,
ancestor: &WidgetInfo,
) -> Option<Ordering>
pub fn cmp_sibling_in( &self, sibling: &WidgetInfo, ancestor: &WidgetInfo, ) -> Option<Ordering>
Compare the position of self and sibling in the ancestor descendants.
Sourcepub fn is_ancestor(&self, maybe_descendant: &WidgetInfo) -> bool
pub fn is_ancestor(&self, maybe_descendant: &WidgetInfo) -> bool
If self is an ancestor of maybe_descendant.
Sourcepub fn is_descendant(&self, maybe_ancestor: &WidgetInfo) -> bool
pub fn is_descendant(&self, maybe_ancestor: &WidgetInfo) -> bool
If self is inside maybe_ancestor.
Sourcepub fn self_and_ancestors(&self) -> Ancestors ⓘ
pub fn self_and_ancestors(&self) -> Ancestors ⓘ
Iterator over self -> parent -> grandparent -> .. -> root.
Sourcepub fn prev_siblings(&self) -> PrevSiblings ⓘ
pub fn prev_siblings(&self) -> PrevSiblings ⓘ
Iterator over all previous widgets within the same parent.
Sourcepub fn self_and_prev_siblings(&self) -> PrevSiblings ⓘ
pub fn self_and_prev_siblings(&self) -> PrevSiblings ⓘ
Iterator over self and all previous widgets within the same parent.
Sourcepub fn next_siblings(&self) -> NextSiblings ⓘ
pub fn next_siblings(&self) -> NextSiblings ⓘ
Iterator over all next widgets within the same parent.
Sourcepub fn self_and_next_siblings(&self) -> NextSiblings ⓘ
pub fn self_and_next_siblings(&self) -> NextSiblings ⓘ
Iterator over self and all next widgets within the same parent.
Sourcepub fn prev_siblings_in(&self, ancestor: &WidgetInfo) -> RevTreeIter ⓘ
pub fn prev_siblings_in(&self, ancestor: &WidgetInfo) -> RevTreeIter ⓘ
Iterator over all previous widgets within the same ancestor, including descendants of siblings.
If ancestor is not actually an ancestor iterates to the root.
Sourcepub fn self_and_prev_siblings_in(&self, ancestor: &WidgetInfo) -> RevTreeIter ⓘ
pub fn self_and_prev_siblings_in(&self, ancestor: &WidgetInfo) -> RevTreeIter ⓘ
Iterator over self, descendants and all previous widgets within the same ancestor.
If ancestor is not actually an ancestor iterates to the root.
Sourcepub fn next_siblings_in(&self, ancestor: &WidgetInfo) -> TreeIter ⓘ
pub fn next_siblings_in(&self, ancestor: &WidgetInfo) -> TreeIter ⓘ
Iterator over all next widgets within the same ancestor, including descendants of siblings.
If ancestor is not actually an ancestor iterates to the root.
Sourcepub fn self_and_next_siblings_in(&self, ancestor: &WidgetInfo) -> TreeIter ⓘ
pub fn self_and_next_siblings_in(&self, ancestor: &WidgetInfo) -> TreeIter ⓘ
Iterator over self, descendants and all next widgets within the same ancestor.
If ancestor is not actually an ancestor iterates to the root.
Sourcepub fn orientation_from(&self, origin: PxPoint) -> Option<Orientation2D>
pub fn orientation_from(&self, origin: PxPoint) -> Option<Orientation2D>
The center orientation in relation to an origin.
Returns None if the origin is the center.
Sourcepub fn distance_key(&self, origin: PxPoint) -> DistanceKey
pub fn distance_key(&self, origin: PxPoint) -> DistanceKey
Value that indicates the distance between this widget center and origin.
Sourcepub fn rect_distance_key(&self, origin: PxPoint) -> DistanceKey
pub fn rect_distance_key(&self, origin: PxPoint) -> DistanceKey
Value that indicates the distance between the nearest point inside this widgets rectangles and origin.
The widgets rectangles is the inner bounds for block widgets or the row rectangles for inline widgets.
Sourcepub fn rect_distance_key_filtered(
&self,
origin: PxPoint,
filter: impl FnMut(PxRect, usize, usize) -> bool,
) -> DistanceKey
pub fn rect_distance_key_filtered( &self, origin: PxPoint, filter: impl FnMut(PxRect, usize, usize) -> bool, ) -> DistanceKey
Like rect_distance_key, but only consider rectangles approved by filter.
The filter parameters are the rectangle, the inline row index and the total inline rows length. If the widget is not inlined both the index and len are zero.
First ancestor of self and other.
Returns None if other is not from the same tree.
Sourcepub fn is_in_bounds(&self) -> bool
pub fn is_in_bounds(&self) -> bool
Returns true if this widget’s inner bounds are fully contained by the parent inner bounds.
Sourcepub fn out_of_bounds(
&self,
) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn out_of_bounds( &self, ) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
Iterator over all descendants with inner bounds not fully contained by their parent inner bounds.
Sourcepub fn spatial_iter<F>(
&self,
filter: F,
) -> impl Iterator<Item = WidgetInfo> + use<F>
pub fn spatial_iter<F>( &self, filter: F, ) -> impl Iterator<Item = WidgetInfo> + use<F>
Iterator over self and descendants, first self, then all in-bounds descendants, then all out-of-bounds descendants.
If the filter returns false the widget and all it’s in-bounds descendants are skipped, otherwise they are yielded. After
all in-bounds descendants reachable from self and filtered the iterator changes to each out-of-bounds descendants and their
in-bounds descendants that are also filtered.
Sourcepub fn inner_contains(
&self,
point: PxPoint,
) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn inner_contains( &self, point: PxPoint, ) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
Iterator over self and all descendants with inner bounds that contain the point.
Sourcepub fn inner_intersects(
&self,
rect: PxRect,
) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn inner_intersects( &self, rect: PxRect, ) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
Spatial iterator over self and descendants with inner bounds that intersects the rect.
Sourcepub fn inner_contains_rect(
&self,
rect: PxRect,
) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn inner_contains_rect( &self, rect: PxRect, ) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
Spatial iterator over self and descendants with inner bounds that fully envelops the rect.
Sourcepub fn inner_contained(
&self,
rect: PxRect,
) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn inner_contained( &self, rect: PxRect, ) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
Spatial iterator over self and descendants with inner bounds that are fully inside the rect.
Sourcepub fn center_contained(
&self,
area: PxRect,
) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn center_contained( &self, area: PxRect, ) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
Spatial iterator over self and descendants with center point inside the area.
Sourcepub fn center_in_distance(
&self,
origin: PxPoint,
max_radius: Px,
) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn center_in_distance( &self, origin: PxPoint, max_radius: Px, ) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
Spatial iterator over self and descendants with center point within the max_radius of the origin.
Sourcepub fn hit_test(&self, point: PxPoint) -> HitTestInfo
pub fn hit_test(&self, point: PxPoint) -> HitTestInfo
Gets all widgets of self and descendants hit by a point, sorted by z-index of the hit, front to back.
Sourcepub fn nearest(&self, origin: PxPoint, max_radius: Px) -> Option<WidgetInfo>
pub fn nearest(&self, origin: PxPoint, max_radius: Px) -> Option<WidgetInfo>
Find the descendant with center point nearest of origin within the max_radius.
This method is faster than sorting the result of center_in_distance, but is slower if any point in distance is acceptable.
Sourcepub fn nearest_filtered(
&self,
origin: PxPoint,
max_radius: Px,
filter: impl FnMut(&WidgetInfo) -> bool,
) -> Option<WidgetInfo>
pub fn nearest_filtered( &self, origin: PxPoint, max_radius: Px, filter: impl FnMut(&WidgetInfo) -> bool, ) -> Option<WidgetInfo>
Find the widget, self or descendant, with center point nearest of origin within the max_radius and approved by the filter closure.
Sourcepub fn nearest_bounded_filtered(
&self,
origin: PxPoint,
max_radius: Px,
bounds: PxRect,
filter: impl FnMut(&WidgetInfo) -> bool,
) -> Option<WidgetInfo>
pub fn nearest_bounded_filtered( &self, origin: PxPoint, max_radius: Px, bounds: PxRect, filter: impl FnMut(&WidgetInfo) -> bool, ) -> Option<WidgetInfo>
Find the widget, self or descendant, with center point nearest of origin within the max_radius and inside bounds;
and approved by the filter closure.
Sourcepub fn nearest_rect(
&self,
origin: PxPoint,
max_radius: Px,
) -> Option<WidgetInfo>
pub fn nearest_rect( &self, origin: PxPoint, max_radius: Px, ) -> Option<WidgetInfo>
Find the descendant that has inner bounds or inline rows nearest to origin and are within max_radius.
The distance is from any given point inside the bounds or inline rows rectangle to the origin. If origin is inside the rectangle the distance is zero. If multiple widgets have the same distance the nearest center point widget is used.
Sourcepub fn nearest_rect_filtered(
&self,
origin: PxPoint,
max_radius: Px,
filter: impl FnMut(&WidgetInfo, PxRect, usize, usize) -> bool,
) -> Option<WidgetInfo>
pub fn nearest_rect_filtered( &self, origin: PxPoint, max_radius: Px, filter: impl FnMut(&WidgetInfo, PxRect, usize, usize) -> bool, ) -> Option<WidgetInfo>
Find the descendant that has inner bounds or inline rows nearest to origin and are within max_radius and are
approved by the filter closure.
The filter parameters are the widget, the rect, the rect row index and the widget inline rows length. If the widget is not inlined both index and len are zero.
Sourcepub fn nearest_rect_bounded_filtered(
&self,
origin: PxPoint,
max_radius: Px,
bounds: PxRect,
filter: impl FnMut(&WidgetInfo, PxRect, usize, usize) -> bool,
) -> Option<WidgetInfo>
pub fn nearest_rect_bounded_filtered( &self, origin: PxPoint, max_radius: Px, bounds: PxRect, filter: impl FnMut(&WidgetInfo, PxRect, usize, usize) -> bool, ) -> Option<WidgetInfo>
Find the widget, self or descendant, with inner bounds or inline rows nearest of origin within the max_radius and inside bounds;
and approved by the filter closure.
The filter parameters are the widget, the rect, the rect row index and the widget inline rows length. If the widget is not inlined both index and len are zero.
Sourcepub fn oriented(
&self,
origin: PxPoint,
max_distance: Px,
orientation: Orientation2D,
) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn oriented( &self, origin: PxPoint, max_distance: Px, orientation: Orientation2D, ) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
Spatial iterator over all widgets, self and descendants, with center in the direction defined by orientation and
within max_distance of the origin, widgets are only visited once and the distance is clipped by the spatial_bounds.
Use Px::MAX on the distance to visit all widgets in the direction.
The direction is defined by a 45º frustum cast from the origin, see Orientation2D::point_is for more details.
Sourcepub fn oriented_box(
&self,
origin: PxBox,
max_distance: Px,
orientation: Orientation2D,
) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
pub fn oriented_box( &self, origin: PxBox, max_distance: Px, orientation: Orientation2D, ) -> impl Iterator<Item = WidgetInfo> + 'static + use<>
Spatial iterator over all widgets, self and descendants, with inner_bounds in the direction defined by orientation
in relation to origin and with center within max_distance of the origin center. Widgets are only visited once and
the distance is clipped by the spatial_bounds.
Use Px::MAX on the distance to visit all widgets in the direction.
The direction is a collision check between inner-bounds and origin, see Orientation2D::box_is for more details.
Sourcepub fn nearest_oriented(
&self,
origin: PxPoint,
max_distance: Px,
orientation: Orientation2D,
) -> Option<WidgetInfo>
pub fn nearest_oriented( &self, origin: PxPoint, max_distance: Px, orientation: Orientation2D, ) -> Option<WidgetInfo>
Find the widget with center point nearest of origin within the max_distance and with orientation to origin.
This method is faster than searching the result of oriented.
Sourcepub fn nearest_oriented_filtered(
&self,
origin: PxPoint,
max_distance: Px,
orientation: Orientation2D,
filter: impl FnMut(&WidgetInfo) -> bool,
) -> Option<WidgetInfo>
pub fn nearest_oriented_filtered( &self, origin: PxPoint, max_distance: Px, orientation: Orientation2D, filter: impl FnMut(&WidgetInfo) -> bool, ) -> Option<WidgetInfo>
Find the widget with center point nearest of origin within the max_distance and with orientation to origin,
and approved by the filter closure.
This method is faster than searching the result of oriented.
Sourcepub fn nearest_box_oriented(
&self,
origin: PxBox,
max_distance: Px,
orientation: Orientation2D,
) -> Option<WidgetInfo>
pub fn nearest_box_oriented( &self, origin: PxBox, max_distance: Px, orientation: Orientation2D, ) -> Option<WidgetInfo>
Find the widget with center point nearest to origin center within the max_distance and with box orientation to origin.
This method is faster than searching the result of oriented_box.
Sourcepub fn nearest_box_oriented_filtered(
&self,
origin: PxBox,
max_distance: Px,
orientation: Orientation2D,
filter: impl FnMut(&WidgetInfo) -> bool,
) -> Option<WidgetInfo>
pub fn nearest_box_oriented_filtered( &self, origin: PxBox, max_distance: Px, orientation: Orientation2D, filter: impl FnMut(&WidgetInfo) -> bool, ) -> Option<WidgetInfo>
Find the widget with center point nearest to origin center within the max_distance and with box orientation to origin,
and approved by the filter closure.
This method is faster than searching the result of oriented_box.
Trait Implementations§
Source§impl Clone for WidgetInfo
impl Clone for WidgetInfo
Source§fn clone(&self) -> WidgetInfo
fn clone(&self) -> WidgetInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WidgetInfo
impl Debug for WidgetInfo
Source§impl Hash for WidgetInfo
impl Hash for WidgetInfo
Source§impl PartialEq for WidgetInfo
impl PartialEq for WidgetInfo
Source§impl WidgetInfoInspectorExt for WidgetInfo
impl WidgetInfoInspectorExt for WidgetInfo
Source§fn inspector_info(&self) -> Option<Arc<InspectorInfo>>
fn inspector_info(&self) -> Option<Arc<InspectorInfo>>
Source§fn can_inspect(&self) -> bool
fn can_inspect(&self) -> bool
inspector_info is defined for the widget.Source§fn inspect_child<P: InspectWidgetPattern>(
&self,
pattern: P,
) -> Option<WidgetInfo>
fn inspect_child<P: InspectWidgetPattern>( &self, pattern: P, ) -> Option<WidgetInfo>
Source§fn inspect_descendant<P: InspectWidgetPattern>(
&self,
pattern: P,
) -> Option<WidgetInfo>
fn inspect_descendant<P: InspectWidgetPattern>( &self, pattern: P, ) -> Option<WidgetInfo>
Source§fn inspect_ancestor<P: InspectWidgetPattern>(
&self,
pattern: P,
) -> Option<WidgetInfo>
fn inspect_ancestor<P: InspectWidgetPattern>( &self, pattern: P, ) -> Option<WidgetInfo>
Source§fn inspect_property<P: InspectPropertyPattern>(
&self,
pattern: P,
) -> Option<&dyn PropertyArgs>
fn inspect_property<P: InspectPropertyPattern>( &self, pattern: P, ) -> Option<&dyn PropertyArgs>
Source§fn parent_property(&self) -> Option<(PropertyId, usize)>
fn parent_property(&self) -> Option<(PropertyId, usize)>
Source§impl WidgetPathProvider for WidgetInfo
impl WidgetPathProvider for WidgetInfo
Source§type WidgetIter<'s> = Map<Ancestors, fn(WidgetInfo) -> WidgetId>
type WidgetIter<'s> = Map<Ancestors, fn(WidgetInfo) -> WidgetId>
widget_and_ancestors.Source§fn widget_and_ancestors(&self) -> Self::WidgetIter<'_>
fn widget_and_ancestors(&self) -> Self::WidgetIter<'_>
impl Eq for WidgetInfo
Auto Trait Implementations§
impl Freeze for WidgetInfo
impl !RefUnwindSafe for WidgetInfo
impl Send for WidgetInfo
impl Sync for WidgetInfo
impl Unpin for WidgetInfo
impl !UnwindSafe for WidgetInfo
Blanket Implementations§
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
§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.§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