FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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).

    View source

    Members

    new

    fn new(root: Ref<StyledElement>, source: Ref<StyledElement>, parent: Option<Ref<StyledElement>>) -> Self
    

    Source

    root

    fn root(self: &Self) -> &Ref<StyledElement>
    

    The root of the logical tree that the control is being attached to or detached from.

    Source

    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.

    Source

    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.

    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.