diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-27 16:01:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-28 12:47:07 +0200 |
commit | 173aa749d50f904887e4aa1ce425c6807668bff0 (patch) | |
tree | fc686ff759baf621029838d9a1d813a94443472c /include/vcl/window.hxx | |
parent | 79db3fc0ee41a6284eb2175a4780f4157cb708f6 (diff) |
convert INVERT flags to scoped enum
Change-Id: Iad8faee927de1ad646975157e36c3027c0ba8149
Diffstat (limited to 'include/vcl/window.hxx')
-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 62f7a127db14..9654d340689d 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -273,8 +273,16 @@ namespace o3tl #define PARENTCLIPMODE_NOCLIP ((sal_uInt16)0x0002) // Flags for Invert() -#define INVERT_HIGHLIGHT ((sal_uInt16)0x0001) -#define INVERT_50 ((sal_uInt16)0x0002) +enum class InvertFlags +{ + NONE = 0x0000, + Highlight = 0x0001, + N50 = 0x0002, +}; +namespace o3tl +{ + template<> struct typed_flags<InvertFlags> : is_typed_flags<InvertFlags, 0x0003> {}; +} // Flags for ShowTracking() #define SHOWTRACK_SMALL ((sal_uInt16)0x0001) @@ -1239,8 +1247,8 @@ public: virtual void ShowFocus(const Rectangle& rRect); void HideFocus(); - void Invert( const Rectangle& rRect, sal_uInt16 nFlags = 0 ); - void Invert( const Polygon& rPoly, sal_uInt16 nFlags = 0 ); + void Invert( const Rectangle& rRect, InvertFlags nFlags = InvertFlags::NONE ); + void Invert( const Polygon& rPoly, InvertFlags nFlags = InvertFlags::NONE ); // transparent background for selected or checked items in toolboxes etc. void DrawSelectionBackground( const Rectangle& rRect, sal_uInt16 highlight, bool bChecked, bool bDrawBorder, bool bDrawExtBorderOnly ); |