diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-06 11:57:31 +0900 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-05-07 09:57:49 +0200 |
commit | 8df18ef063e6de2cbc701b1f932bf8e872fcea22 (patch) | |
tree | e0296bce3ff9c8237e6f0a010eac2ee12a620ca4 /include/vcl | |
parent | 5485ef70cee1e3a743047f95ce94533024004b7c (diff) |
Refactor "Slider" - use RenderContext & Invalidate
Change-Id: I3c733ac46b89b0a6b413eadf2796b80ec033c2c9
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/slider.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx index 4f3677677e3b..a3d3fdbea427 100644 --- a/include/vcl/slider.hxx +++ b/include/vcl/slider.hxx @@ -45,8 +45,9 @@ private: long mnLineSize; long mnPageSize; long mnDelta; - sal_uInt16 mnDragDraw; - sal_uInt16 mnStateFlags; + sal_uInt16 mnDragDraw; + sal_uInt16 mnDrawFlags; + sal_uInt16 mnStateFlags; ScrollType meScrollType; bool mbCalcSize; bool mbFullDrag; @@ -61,7 +62,7 @@ private: SAL_DLLPRIVATE long ImplCalcThumbPos( long nPixPos ); SAL_DLLPRIVATE long ImplCalcThumbPosPix( long nPos ); SAL_DLLPRIVATE void ImplCalc( bool bUpdate = true ); - SAL_DLLPRIVATE void ImplDraw( sal_uInt16 nDrawFlags ); + SAL_DLLPRIVATE void ImplDraw(vcl::RenderContext& rRenderContext, sal_uInt16 nDrawFlags); SAL_DLLPRIVATE bool ImplIsPageUp( const Point& rPos ); SAL_DLLPRIVATE bool ImplIsPageDown( const Point& rPos ); SAL_DLLPRIVATE long ImplSlide( long nNewPos, bool bCallEndSlide ); @@ -77,7 +78,7 @@ public: virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE; virtual void Tracking( const TrackingEvent& rTEvt ) SAL_OVERRIDE; virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE; - virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE; + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; virtual void Resize() SAL_OVERRIDE; virtual void RequestHelp( const HelpEvent& rHEvt ) SAL_OVERRIDE; virtual void StateChanged( StateChangedType nType ) SAL_OVERRIDE; |