Frameless QML Type
Helper for managing native frameless windows. More...
| Import Statement: | import FluentUI.impl 1.0 |
Properties
- appbar : Item
- buttonMaximized : Item
- dark : bool
- disabled : bool
- fixSize : bool
- topmost : bool
- windowEffect : int
Methods
- void onDestruction()
- void setHitTestVisible(Item item)
- void showFullScreen()
- void showMaximized()
- void showMinimized()
- void showNormal()
Detailed Description
The Frameless type provides utilities for controlling native window behavior in frameless window setups. It handles window state transitions, hit testing, and visual properties such as dark mode and window effects.
Property Documentation
appbar : Item
The application bar item associated with the frameless window. This item is used to define the custom title bar area.
buttonMaximized : Item
The maximize button item. This item's visibility and state can be controlled when the window enters or exits the maximized state.
dark : bool
Whether the window chrome should use a dark appearance.
disabled : bool
Whether the frameless window management is disabled.
fixSize : bool
Whether the window size is fixed and cannot be resized.
topmost : bool
Whether the window should remain on top of all other windows.
windowEffect : int
The window effect applied to the frameless window, such as acrylic or mica. The available values are platform-specific.
Method Documentation
void onDestruction()
Performs cleanup when the frameless helper is destroyed, releasing any native resources associated with the window.
void setHitTestVisible(Item item)
Marks the given item as a region where hit-testing for window dragging and resizing is enabled.
void showFullScreen()
Switches the window to full-screen mode.
void showMaximized()
Maximizes the window.
void showMinimized()
Minimizes the window.
void showNormal()
Restores the window to its normal size and state.