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: boolWhether 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: boolWhether 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
impl Clone for WidgetNodeSnapshot
Source§impl Debug for WidgetNodeSnapshot
impl Debug for WidgetNodeSnapshot
Source§impl PartialEq for WidgetNodeSnapshot
impl PartialEq for WidgetNodeSnapshot
impl StructuralPartialEq for WidgetNodeSnapshot
Auto Trait Implementations§
impl Freeze for WidgetNodeSnapshot
impl RefUnwindSafe for WidgetNodeSnapshot
impl Send for WidgetNodeSnapshot
impl Sync for WidgetNodeSnapshot
impl Unpin for WidgetNodeSnapshot
impl UnsafeUnpin for WidgetNodeSnapshot
impl UnwindSafe for WidgetNodeSnapshot
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