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_BASEWIDGET_IFWL_SCROLLBAR_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ |
8 #define XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ |
9 | 9 |
10 #include "xfa/fwl/core/fwl_widgetimp.h" | 10 #include "xfa/fwl/core/fwl_widgetimp.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 }; | 33 }; |
34 | 34 |
35 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; | 35 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; |
36 | 36 |
37 class IFWL_ScrollBar : public IFWL_Widget { | 37 class IFWL_ScrollBar : public IFWL_Widget { |
38 public: | 38 public: |
39 static IFWL_ScrollBar* Create(const CFWL_WidgetImpProperties& properties, | 39 static IFWL_ScrollBar* Create(const CFWL_WidgetImpProperties& properties, |
40 IFWL_Widget* pOuter); | 40 IFWL_Widget* pOuter); |
41 | 41 |
42 FX_BOOL IsVertical(); | 42 FX_BOOL IsVertical(); |
43 FWL_ERR GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); | 43 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); |
44 FWL_ERR SetRange(FX_FLOAT fMin, FX_FLOAT fMax); | 44 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); |
45 FX_FLOAT GetPageSize(); | 45 FX_FLOAT GetPageSize(); |
46 FWL_ERR SetPageSize(FX_FLOAT fPageSize); | 46 FWL_Error SetPageSize(FX_FLOAT fPageSize); |
47 FX_FLOAT GetStepSize(); | 47 FX_FLOAT GetStepSize(); |
48 FWL_ERR SetStepSize(FX_FLOAT fStepSize); | 48 FWL_Error SetStepSize(FX_FLOAT fStepSize); |
49 FX_FLOAT GetPos(); | 49 FX_FLOAT GetPos(); |
50 FWL_ERR SetPos(FX_FLOAT fPos); | 50 FWL_Error SetPos(FX_FLOAT fPos); |
51 FX_FLOAT GetTrackPos(); | 51 FX_FLOAT GetTrackPos(); |
52 FWL_ERR SetTrackPos(FX_FLOAT fTrackPos); | 52 FWL_Error SetTrackPos(FX_FLOAT fTrackPos); |
53 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f); | 53 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f); |
54 | 54 |
55 protected: | 55 protected: |
56 IFWL_ScrollBar(); | 56 IFWL_ScrollBar(); |
57 }; | 57 }; |
58 | 58 |
59 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ | 59 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ |
OLD | NEW |