Skip to main content

WidgetNodeSnapshot

Struct WidgetNodeSnapshot 

Source
pub struct WidgetNodeSnapshot {
Show 25 fields pub id: WidgetId, pub widget_name: &'static str, pub parent: Option<WidgetId>, pub children: Vec<WidgetId>, pub measured_size: Size, pub geometry: WidgetGeometrySnapshot, pub local_bounds: Rect, pub presentation_transform: Transform, pub inverse_presentation_transform: Option<Transform>, pub bounds: Rect, pub paint_boundary: PaintBoundaryMode, pub stack_host: WidgetId, pub stack_surface: WidgetId, pub stack_surface_order: usize, pub transient_owner_surface: Option<WidgetId>, pub overlay_owner: Option<WidgetId>, pub is_overlay_owner: bool, pub is_stack_host: bool, pub is_stack_surface: bool, pub hit_test: bool, pub hit_test_self: bool, pub stack_order_policy: StackOrderPolicy, pub accepts_focus: bool, pub focused: bool, pub inert: bool,
}

Fields§

§id: WidgetId§widget_name: &'static str§parent: Option<WidgetId>§children: Vec<WidgetId>§measured_size: Size§geometry: WidgetGeometrySnapshot§local_bounds: Rect§presentation_transform: Transform§inverse_presentation_transform: Option<Transform>§bounds: Rect§paint_boundary: PaintBoundaryMode§stack_host: WidgetId§stack_surface: WidgetId§stack_surface_order: usize§transient_owner_surface: Option<WidgetId>§overlay_owner: Option<WidgetId>

Logical overlay owner coordinating this node, when any.

§is_overlay_owner: bool§is_stack_host: bool§is_stack_surface: bool§hit_test: bool§hit_test_self: bool

Whether points inside the widget that none of its children take hit the widget itself (see Widget::hit_test_self).

§stack_order_policy: StackOrderPolicy§accepts_focus: bool§focused: bool§inert: bool

Whether the node is inside an inert subtree (see WidgetPod::is_inert): painted, but not hit tested or focusable.

Trait Implementations§

Source§

impl Clone for WidgetNodeSnapshot

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WidgetNodeSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for WidgetNodeSnapshot

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for WidgetNodeSnapshot

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.