diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-12-01 21:09:28 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-12-01 21:16:51 +0800 |
| commit | d54732324827bcfdc75e684b6636c53c109757c4 (patch) | |
| tree | 1d82f4963b2e934769a9ab143d2c9c4b3e1990cb /include/cru/platform/gui/Window.h | |
| parent | 2fb9c12f9277a2c601cc2820884f9c5c1fd4e5c5 (diff) | |
| download | cru-d54732324827bcfdc75e684b6636c53c109757c4.tar.gz cru-d54732324827bcfdc75e684b6636c53c109757c4.tar.bz2 cru-d54732324827bcfdc75e684b6636c53c109757c4.zip | |
Clean up Bitmask.
Diffstat (limited to 'include/cru/platform/gui/Window.h')
| -rw-r--r-- | include/cru/platform/gui/Window.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/cru/platform/gui/Window.h b/include/cru/platform/gui/Window.h index db03c528..1ef9e980 100644 --- a/include/cru/platform/gui/Window.h +++ b/include/cru/platform/gui/Window.h @@ -3,6 +3,7 @@ #include "Input.h" +#include <cru/base/Bitmask.h> #include <cru/base/Event.h> #include <cru/platform/GraphicsBase.h> #include <cru/platform/graphics/Painter.h> @@ -11,13 +12,7 @@ namespace cru::platform::gui { class ICursor; class IInputMethodContext; -namespace details { -struct WindowStyleFlagTag; -} - -using WindowStyleFlag = Bitmask<details::WindowStyleFlagTag>; - -struct WindowStyleFlags { +CRU_DEFINE_BITMASK(WindowStyleFlag) { static constexpr WindowStyleFlag NoCaptionAndBorder = WindowStyleFlag::FromOffset(1); }; |
