mirror of https://github.com/adamdruppe/arsd.git
better window flags
This commit is contained in:
parent
fceef375ef
commit
8d0db3127f
|
@ -886,13 +886,16 @@ else
|
||||||
window type already is a good match for what you want to do, you should
|
window type already is a good match for what you want to do, you should
|
||||||
just use [WindowFlags.normal], the default, which will do the right thing
|
just use [WindowFlags.normal], the default, which will do the right thing
|
||||||
for your users.
|
for your users.
|
||||||
|
|
||||||
|
The window flags will not always be honored by the operating system
|
||||||
|
and window managers; they are hints, not commands.
|
||||||
+/
|
+/
|
||||||
enum WindowFlags : int {
|
enum WindowFlags : int {
|
||||||
normal, ///
|
normal = 0, ///
|
||||||
skipTaskbar, ///
|
skipTaskbar = 1, ///
|
||||||
alwaysOnTop, ///
|
alwaysOnTop = 2, ///
|
||||||
alwaysOnBottom, ///
|
alwaysOnBottom = 4, ///
|
||||||
cannotBeActivated, ///
|
cannotBeActivated = 8, ///
|
||||||
dontAutoShow = 0x1000_0000, /// Don't automatically show window after creation; you will have to call `show()` manually.
|
dontAutoShow = 0x1000_0000, /// Don't automatically show window after creation; you will have to call `show()` manually.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue