diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-27 16:09:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-28 12:47:08 +0200 |
commit | f3331f7694e74f349375c223ce7ed84838e92d89 (patch) | |
tree | ef238fa98153c756df201d26d15e0602638298cc /include | |
parent | 173aa749d50f904887e4aa1ce425c6807668bff0 (diff) |
convert PARENTCLIPMODE constants to scoped enum
Change-Id: I36a53112e75fca9208b2f91e224a7c671695509b
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/window.hxx | 16 |
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 ); |