FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WindowDecorationProperties

    struct · ferroui-controls · v0.5.0

    struct WindowDecorationProperties
    

    Provides attached properties for window decoration hit-testing.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this type.

    Source

    element_role_property

    fn element_role_property() -> &'static AttachedProperty<WindowDecorationsElementRole>
    

    Defines the ElementRole attached property. Marks a visual element with a specific role for non-client hit-testing. Can be applied to any element in the visual tree, not limited to decoration children.

    Setting an element role only has an effect if the ExtendClientAreaToDecorationsHint of the window is true.

    Source

    get_element_role

    fn get_element_role(element: &Visual) -> WindowDecorationsElementRole
    

    Gets the WindowDecorationsElementRole for the specified element.

    Source

    set_element_role

    fn set_element_role(element: &Visual, value: WindowDecorationsElementRole)
    

    Sets the WindowDecorationsElementRole for the specified element.

    Setting an element role only has an effect if the ExtendClientAreaToDecorationsHint of the window is true.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • StaticType

    Availability

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