diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-05 15:29:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-06 05:32:06 +0000 |
commit | cc719ad619f1897d05581e38a2703add6f6a1050 (patch) | |
tree | 4c9c71f445ad6d91c597f2f4eb347948d14e9cf1 /vcl/inc | |
parent | 70f05aa69acca911298201b8a61e3312ec1ab30e (diff) |
convert IMPL_PAINT constants to typed_flags
Change-Id: I9a38a2927cc626e3a94c9eeaffb94b7fd2b6204c
Reviewed-on: https://gerrit.libreoffice.org/31634
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/window.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/vcl/inc/window.h b/vcl/inc/window.h index 8ba8be792eb6..061996dd856e 100644 --- a/vcl/inc/window.h +++ b/vcl/inc/window.h @@ -25,6 +25,7 @@ #include <tools/fract.hxx> #include <vcl/idle.hxx> #include <vcl/rendersettings.hxx> +#include <o3tl/typed_flags_set.hxx> #include <list> #include <vector> @@ -174,6 +175,20 @@ struct ImplAccessibleInfos enum AlwaysInputMode { AlwaysInputNone = 0, AlwaysInputEnabled = 1, AlwaysInputDisabled =2 }; +enum class ImplPaintFlags { + NONE = 0x0000, + Paint = 0x0001, + PaintAll = 0x0002, + PaintAllChildren = 0x0004, + PaintChildren = 0x0008, + Erase = 0x0010, + CheckRtl = 0x0020, +}; +namespace o3tl { + template<> struct typed_flags<ImplPaintFlags> : is_typed_flags<ImplPaintFlags, 0x003f> {}; +} + + class WindowImpl { private: @@ -254,7 +269,7 @@ public: WindowType mnType; ControlPart mnNativeBackground; sal_uInt16 mnWaitCount; - sal_uInt16 mnPaintFlags; + ImplPaintFlags mnPaintFlags; GetFocusFlags mnGetFocusFlags; ParentClipMode mnParentClipMode; ActivateModeFlags mnActivateMode; |