summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-27 16:09:43 +0200
committerNoel Grandin <noel@peralex.com>2015-05-28 12:47:08 +0200
commitf3331f7694e74f349375c223ce7ed84838e92d89 (patch)
treeef238fa98153c756df201d26d15e0602638298cc /include
parent173aa749d50f904887e4aa1ce425c6807668bff0 (diff)
convert PARENTCLIPMODE constants to scoped enum
Change-Id: I36a53112e75fca9208b2f91e224a7c671695509b
Diffstat (limited to 'include')
-rw-r--r--include/vcl/window.hxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 9654d340689d..9f9f73d0b4d1 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -269,8 +269,16 @@ namespace o3tl
}
// Flags for ParentClipMode
-#define PARENTCLIPMODE_CLIP ((sal_uInt16)0x0001)
-#define PARENTCLIPMODE_NOCLIP ((sal_uInt16)0x0002)
+enum class ParentClipMode
+{
+ NONE = 0x0000,
+ Clip = 0x0001,
+ NoClip = 0x0002,
+};
+namespace o3tl
+{
+ template<> struct typed_flags<ParentClipMode> : is_typed_flags<ParentClipMode, 0x0003> {};
+}
// Flags for Invert()
enum class InvertFlags
@@ -1001,8 +1009,8 @@ public:
bool IsControlBackground() const;
void ApplyControlBackground(vcl::RenderContext& rRenderContext, const Color& rDefaultColor);
- void SetParentClipMode( sal_uInt16 nMode = 0 );
- sal_uInt16 GetParentClipMode() const;
+ void SetParentClipMode( ParentClipMode nMode = ParentClipMode::NONE );
+ ParentClipMode GetParentClipMode() const;
void SetWindowRegionPixel();
void SetWindowRegionPixel( const vcl::Region& rRegion );