FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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.

    Source

    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

    Source

    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.

    Source

    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.

    Source

    set_root_visual

    fn set_root_visual(self: &mut Self, value: Ref<Visual>)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • PartialEq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.