summaryrefslogtreecommitdiff
path: root/include/vcl/decoview.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-11 10:58:11 +0200
committerNoel Grandin <noel@peralex.com>2015-05-13 08:54:18 +0200
commitd61f0a8c8634827ad427ebb4609d389164c0cc79 (patch)
treee5a5d593fcad90e243d38a19e137c803e6cf804d /include/vcl/decoview.hxx
parent61eb53d39a8d90167dc5599c2a2092626788a630 (diff)
convert FRAME_HIGHLIGHT constants to scoped enum
Change-Id: I44bd2c54c8b1d6cafd7c15eaf0d77a336ac3fa65
Diffstat (limited to 'include/vcl/decoview.hxx')
-rw-r--r--include/vcl/decoview.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/vcl/decoview.hxx b/include/vcl/decoview.hxx
index a57c5272bf5f..ffe2b173ed4b 100644
--- a/include/vcl/decoview.hxx
+++ b/include/vcl/decoview.hxx
@@ -68,10 +68,11 @@ namespace o3tl
}
// Flags for DrawHighlightFrame()
-#define FRAME_HIGHLIGHT_IN ((sal_uInt16)0x0001)
-#define FRAME_HIGHLIGHT_OUT ((sal_uInt16)0x0002)
-#define FRAME_HIGHLIGHT_TESTBACKGROUND ((sal_uInt16)0x4000)
-#define FRAME_HIGHLIGHT_STYLE ((sal_uInt16)0x000F)
+enum class DrawHighlightFrameStyle
+{
+ In = 1,
+ Out = 2,
+};
// Flags for DrawButton()
#define BUTTON_DRAW_DEFAULT ((sal_uInt16)0x0001)
@@ -102,7 +103,7 @@ public:
const Color& rLeftTopColor,
const Color& rRightBottomColor );
void DrawHighlightFrame( const Rectangle& rRect,
- sal_uInt16 nStyle = FRAME_HIGHLIGHT_OUT );
+ DrawHighlightFrameStyle nStyle = DrawHighlightFrameStyle::Out, bool bTestBackground = false );
Rectangle DrawFrame( const Rectangle& rRect, DrawFrameStyle nStyle = DrawFrameStyle::Out, DrawFrameFlags nFlags = DrawFrameFlags::NONE );
Rectangle DrawButton( const Rectangle& rRect, sal_uInt16 nStyle );
void DrawSeparator( const Point& rStart, const Point& rStop, bool bVertical = true );