pub struct WidgetNodeSnapshot {Show 20 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 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 stack_order_policy: StackOrderPolicy,
pub accepts_focus: bool,
pub focused: bool,
}Fields§
§id: WidgetId§widget_name: &'static str§parent: Option<WidgetId>§children: Vec<WidgetId>§measured_size: Size§geometry: WidgetGeometrySnapshot§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§stack_order_policy: StackOrderPolicy§accepts_focus: bool§focused: boolTrait Implementations§
Source§impl Clone for WidgetNodeSnapshot
impl Clone for WidgetNodeSnapshot
Source§fn clone(&self) -> WidgetNodeSnapshot
fn clone(&self) -> WidgetNodeSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<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>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> 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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.