VisualTreeAttachmentEventArgs
struct · ferroui-base · v0.5.0
struct VisualTreeAttachmentEventArgs
Holds the event arguments for the attached_to_visual_tree and
detached_from_visual_tree events.
Members
attachment_point
fn attachment_point(self: &Self) -> Option<&Ref<Visual>>
The parent that the visual's tree is being attached to or detached
from. None when the presentation source's root visual itself is
being attached or detached.
parent
fn parent(self: &Self) -> Option<&Ref<Visual>>
The parent that the visual's tree is being attached to or detached from.
Deprecated. Use attachment_point
root
fn root(self: &Self) -> &Ref<Visual>
The root visual of the tree.
Deprecated. This was previously always returning TopLevel. This is no longer guaranteed. Use TopLevel::get_top_level(visual) if you need a TopLevel or root_visual if you are interested in the root of the visual tree.
root_visual
fn root_visual(self: &Self) -> &Ref<Visual>
The root visual of the tree this visual is being attached to or detached from: the root visual of the presentation source.
set_root_visual
fn set_root_visual(self: &mut Self, value: Ref<Visual>)
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.