better window flags

This commit is contained in:
Adam D. Ruppe 2017-03-24 09:38:16 -04:00
parent fceef375ef
commit 8d0db3127f
1 changed files with 8 additions and 5 deletions

View File

@ -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.
} }