OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_SCROLLBAR_H_ | 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_SCROLLBAR_H_ |
8 #define XFA_FWL_LIGHTWIDGET_CFWL_SCROLLBAR_H_ | 8 #define XFA_FWL_LIGHTWIDGET_CFWL_SCROLLBAR_H_ |
9 | 9 |
10 #include "xfa/fwl/lightwidget/cfwl_widget.h" | 10 #include "xfa/fwl/lightwidget/cfwl_widget.h" |
11 | 11 |
12 class CFWL_ScrollBar : public CFWL_Widget { | 12 class CFWL_ScrollBar : public CFWL_Widget { |
13 public: | 13 public: |
| 14 CFWL_ScrollBar(); |
| 15 ~CFWL_ScrollBar() override; |
| 16 |
14 static CFWL_ScrollBar* Create(); | 17 static CFWL_ScrollBar* Create(); |
| 18 |
15 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = NULL); | 19 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = NULL); |
16 FX_BOOL IsVertical(); | 20 FX_BOOL IsVertical(); |
17 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); | 21 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); |
18 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); | 22 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); |
19 FX_FLOAT GetPageSize(); | 23 FX_FLOAT GetPageSize(); |
20 FWL_Error SetPageSize(FX_FLOAT fPageSize); | 24 FWL_Error SetPageSize(FX_FLOAT fPageSize); |
21 FX_FLOAT GetStepSize(); | 25 FX_FLOAT GetStepSize(); |
22 FWL_Error SetStepSize(FX_FLOAT fStepSize); | 26 FWL_Error SetStepSize(FX_FLOAT fStepSize); |
23 FX_FLOAT GetPos(); | 27 FX_FLOAT GetPos(); |
24 FWL_Error SetPos(FX_FLOAT fPos); | 28 FWL_Error SetPos(FX_FLOAT fPos); |
25 FX_FLOAT GetTrackPos(); | 29 FX_FLOAT GetTrackPos(); |
26 FWL_Error SetTrackPos(FX_FLOAT fTrackPos); | 30 FWL_Error SetTrackPos(FX_FLOAT fTrackPos); |
27 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f); | 31 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f); |
28 CFWL_ScrollBar(); | |
29 virtual ~CFWL_ScrollBar(); | |
30 }; | 32 }; |
31 | 33 |
32 #endif // XFA_FWL_LIGHTWIDGET_CFWL_SCROLLBAR_H_ | 34 #endif // XFA_FWL_LIGHTWIDGET_CFWL_SCROLLBAR_H_ |
OLD | NEW |