summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-09-30 23:09:05 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2016-12-20 14:19:15 +0100
commita4d1dea6c79fedf8a5d21d14e4b1077ee0edd5f8 (patch)
tree44420956673e22409f943c5457b540674a815606 /include
parentrscpp: make previous FILE_LOCAL functions static (diff)
downloadcore-a4d1dea6c79fedf8a5d21d14e4b1077ee0edd5f8.tar.gz
core-a4d1dea6c79fedf8a5d21d14e4b1077ee0edd5f8.zip
Unify drag handles for toolboxes
The custom shape popup toolbars used their own drawing code for the drag handle. This was dropped in favour of the default toolbox drag handle code. This also drops the drag highlighting in favour of a move mouse cursor as the drag indicator. The drag handle is currently always drawn on the top, like a window title. Change-Id: I08cbf715f1e240c2eb6d9a61fad2b705f9bd8014
Diffstat (limited to 'include')
-rw-r--r--include/vcl/toolbox.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index f2881b8fbc01..3edb3b8022bd 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -223,9 +223,14 @@ public:
SAL_DLLPRIVATE void ImplDisableFlatButtons();
static SAL_DLLPRIVATE int ImplGetDragWidth( ToolBox* pThis );
+ static SAL_DLLPRIVATE int ImplGetDragWidth( const vcl::RenderContext& rRenderContext,
+ bool bHorz );
static SAL_DLLPRIVATE void ImplUpdateDragArea( ToolBox *pThis );
static SAL_DLLPRIVATE void ImplCalcBorder( WindowAlign eAlign, long& rLeft, long& rTop,
long& rRight, long& rBottom, const ToolBox *pThis );
+ static SAL_DLLPRIVATE void ImplDrawGrip(vcl::RenderContext& rRenderContext,
+ const Rectangle &aDragArea, int nDragWidth,
+ WindowAlign eAlign, bool bHorz);
SAL_DLLPRIVATE void ImplDrawGrip(vcl::RenderContext& rRenderContext);
SAL_DLLPRIVATE void ImplDrawGradientBackground(vcl::RenderContext& rRenderContext, ImplDockingWindowWrapper *pWrapper);