FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WindowDecorationsElementRole

    enum · ferroui-base · v0.5.0

    enum WindowDecorationsElementRole
    

    Defines the cross-platform role of a visual element for non-client hit-testing. Used to mark elements as titlebar drag areas, resize grips, etc.

    View source

    Members

    None

    None = 0
    

    No special role. The element is invisible to chrome hit-testing.

    Source

    DecorationsElement

    DecorationsElement = 1
    

    An interactive element that is part of the decorations chrome (e.g., a caption button). Set by themes on decoration template elements. Input is passed through to the element rather than being intercepted for non-client actions.

    Source

    User

    User = 2
    

    An interactive element set by user code that should receive input even when overlapping chrome areas. Has the same effect as DecorationsElement but is intended for use by application developers.

    Source

    TitleBar

    TitleBar = 3
    

    The element acts as a titlebar drag area. Clicking and dragging on this element initiates a platform window move.

    Source

    ResizeN

    ResizeN = 4
    

    Resize grip for the north (top) edge.

    Source

    ResizeS

    ResizeS = 5
    

    Resize grip for the south (bottom) edge.

    Source

    ResizeE

    ResizeE = 6
    

    Resize grip for the east (right) edge.

    Source

    ResizeW

    ResizeW = 7
    

    Resize grip for the west (left) edge.

    Source

    ResizeNE

    ResizeNE = 8
    

    Resize grip for the northeast corner.

    Source

    ResizeNW

    ResizeNW = 9
    

    Resize grip for the northwest corner.

    Source

    ResizeSE

    ResizeSE = 10
    

    Resize grip for the southeast corner.

    Source

    ResizeSW

    ResizeSW = 11
    

    Resize grip for the southwest corner.

    Source

    CloseButton

    CloseButton = 12
    

    The element acts as the window close button. On Win32, maps to the system close behavior. On other platforms, treated as an interactive decoration element.

    Source

    MinimizeButton

    MinimizeButton = 13
    

    The element acts as the window minimize button. On Win32, maps to the system minimize behavior. On other platforms, treated as an interactive decoration element.

    Source

    MaximizeButton

    MaximizeButton = 14
    

    The element acts as the window maximize/restore button. On Win32, maps to the system maximize behavior. On other platforms, treated as an interactive decoration element.

    Source

    FullScreenButton

    FullScreenButton = 15
    

    The element acts as the window fullscreen toggle button. Treated as an interactive decoration element on all platforms.

    Source

    Trait implementations

    Availability

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