pub struct LogicalTreeAttachmentEventArgs { /* private fields */ }Expand description
Holds the event arguments for the attached_to_logical_tree and
detached_from_logical_tree events.
The args are immutable: copies compare equal when they describe the same
attachment (the same elements).
Implementations§
Source§impl LogicalTreeAttachmentEventArgs
impl LogicalTreeAttachmentEventArgs
pub fn new( root: Ref<StyledElement>, source: Ref<StyledElement>, parent: Option<Ref<StyledElement>>, ) -> Self
Sourcepub fn root(&self) -> &Ref<StyledElement>
pub fn root(&self) -> &Ref<StyledElement>
The root of the logical tree that the control is being attached to or detached from.
Sourcepub fn source(&self) -> &Ref<StyledElement>
pub fn source(&self) -> &Ref<StyledElement>
The control that was attached or detached from the logical tree.
Logical tree attachment events travel down the tree, so this is the control at the top of the subtree that was attached or detached.
Sourcepub fn parent(&self) -> Option<&Ref<StyledElement>>
pub fn parent(&self) -> Option<&Ref<StyledElement>>
The control that the source is being attached to or detached from.
For a detachment this is the old parent; None when the source is a
logical root.
Trait Implementations§
impl StructuralPartialEq for LogicalTreeAttachmentEventArgs
Auto Trait Implementations§
impl !RefUnwindSafe for LogicalTreeAttachmentEventArgs
impl !Send for LogicalTreeAttachmentEventArgs
impl !Sync for LogicalTreeAttachmentEventArgs
impl !UnwindSafe for LogicalTreeAttachmentEventArgs
impl Freeze for LogicalTreeAttachmentEventArgs
impl Unpin for LogicalTreeAttachmentEventArgs
impl UnsafeUnpin for LogicalTreeAttachmentEventArgs
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more