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.
Members
NoneDecorationsElementUserTitleBarResizeNResizeSResizeEResizeWResizeNEResizeNWResizeSEResizeSWCloseButtonMinimizeButtonMaximizeButtonFullScreenButton
None
None = 0
No special role. The element is invisible to chrome hit-testing.
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.
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.
TitleBar
TitleBar = 3
The element acts as a titlebar drag area. Clicking and dragging on this element initiates a platform window move.
ResizeN
ResizeN = 4
Resize grip for the north (top) edge.
ResizeS
ResizeS = 5
Resize grip for the south (bottom) edge.
ResizeE
ResizeE = 6
Resize grip for the east (right) edge.
ResizeW
ResizeW = 7
Resize grip for the west (left) edge.
ResizeNE
ResizeNE = 8
Resize grip for the northeast corner.
ResizeNW
ResizeNW = 9
Resize grip for the northwest corner.
ResizeSE
ResizeSE = 10
Resize grip for the southeast corner.
ResizeSW
ResizeSW = 11
Resize grip for the southwest corner.
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.
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.
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.
FullScreenButton
FullScreenButton = 15
The element acts as the window fullscreen toggle button. Treated as an interactive decoration element on all platforms.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.