summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-04 21:24:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-05 10:35:01 +0200
commit3f3281868e7516d7535071a01fcde63ed3d73e7e (patch)
treec85b8e8a2736cd1dba042e599497262222b09dcd
parent6d8720fc64957331c329c7c8e8441b60300274dd (diff)
move WindowStateMask into vclenum.hxx
Change-Id: Ia9e4d65f769c94f99a2eb23dd93d9d7cc81c398b Reviewed-on: https://gerrit.libreoffice.org/61395 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/vcl/syswin.hxx21
-rw-r--r--include/vcl/vclenum.hxx20
2 files changed, 21 insertions, 20 deletions
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx
index f9453f106a30..d8dd2f3c245c 100644
--- a/include/vcl/syswin.hxx
+++ b/include/vcl/syswin.hxx
@@ -24,6 +24,7 @@
#include <vcl/dllapi.h>
#include <vcl/builder.hxx>
#include <vcl/idle.hxx>
+#include <vcl/vclenum.hxx>
#include <vcl/window.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <memory>
@@ -42,26 +43,6 @@ class TaskPaneList;
#define ICON_MATH_DOCUMENT 13
#define ICON_MACROLIBRARY 1
-enum class WindowStateMask {
- NONE = 0x0000,
- X = 0x0001,
- Y = 0x0002,
- Width = 0x0004,
- Height = 0x0008,
- State = 0x0010,
- Minimized = 0x0020,
- MaximizedX = 0x0100,
- MaximizedY = 0x0200,
- MaximizedWidth = 0x0400,
- MaximizedHeight = 0x0800,
- Pos = X | Y,
- All = X | Y | Width | Height | MaximizedX | MaximizedY | MaximizedWidth | MaximizedHeight | State | Minimized
-};
-namespace o3tl
-{
- template<> struct typed_flags<WindowStateMask> : is_typed_flags<WindowStateMask, 0x0f3f> {};
-}
-
enum class WindowStateState {
NONE = 0x0000,
Normal = 0x0001,
diff --git a/include/vcl/vclenum.hxx b/include/vcl/vclenum.hxx
index 0cf180cb6bc8..03e2c4661aff 100644
--- a/include/vcl/vclenum.hxx
+++ b/include/vcl/vclenum.hxx
@@ -118,6 +118,26 @@ namespace o3tl
template<> struct typed_flags<WindowBorderStyle> : is_typed_flags<WindowBorderStyle, 0x3033> {};
}
+enum class WindowStateMask {
+ NONE = 0x0000,
+ X = 0x0001,
+ Y = 0x0002,
+ Width = 0x0004,
+ Height = 0x0008,
+ State = 0x0010,
+ Minimized = 0x0020,
+ MaximizedX = 0x0100,
+ MaximizedY = 0x0200,
+ MaximizedWidth = 0x0400,
+ MaximizedHeight = 0x0800,
+ Pos = X | Y,
+ All = X | Y | Width | Height | MaximizedX | MaximizedY | MaximizedWidth | MaximizedHeight | State | Minimized
+};
+namespace o3tl
+{
+ template<> struct typed_flags<WindowStateMask> : is_typed_flags<WindowStateMask, 0x0f3f> {};
+}
+
enum class TimeFormat
{
Hour12, Hour24