LogicalTreeAttachmentEventArgs
struct · ferroui-base · v0.5.0
struct LogicalTreeAttachmentEventArgs
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).
Members
new
fn new(root: Ref<StyledElement>, source: Ref<StyledElement>, parent: Option<Ref<StyledElement>>) -> Self
root
fn root(self: &Self) -> &Ref<StyledElement>
The root of the logical tree that the control is being attached to or detached from.
source
fn source(self: &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.
parent
fn parent(self: &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
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherClonePartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.