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_CORE_IFWL_SCROLLBAR_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_SCROLLBAR_H_ |
8 #define XFA_FWL_CORE_IFWL_SCROLLBAR_H_ | 8 #define XFA_FWL_CORE_IFWL_SCROLLBAR_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_system.h" | 10 #include "core/fxcrt/fx_system.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 class IFWL_ScrollBar : public IFWL_Widget { | 37 class IFWL_ScrollBar : public IFWL_Widget { |
38 public: | 38 public: |
39 IFWL_ScrollBar(const IFWL_App* app, | 39 IFWL_ScrollBar(const IFWL_App* app, |
40 std::unique_ptr<CFWL_WidgetProperties> properties, | 40 std::unique_ptr<CFWL_WidgetProperties> properties, |
41 IFWL_Widget* pOuter); | 41 IFWL_Widget* pOuter); |
42 ~IFWL_ScrollBar() override; | 42 ~IFWL_ScrollBar() override; |
43 | 43 |
44 // IFWL_Widget | 44 // IFWL_Widget |
45 FWL_Type GetClassID() const override; | 45 FWL_Type GetClassID() const override; |
46 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 46 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
47 FWL_Error Update() override; | 47 void Update() override; |
48 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 48 void DrawWidget(CFX_Graphics* pGraphics, |
49 const CFX_Matrix* pMatrix = nullptr) override; | 49 const CFX_Matrix* pMatrix = nullptr) override; |
50 void OnProcessMessage(CFWL_Message* pMessage) override; | 50 void OnProcessMessage(CFWL_Message* pMessage) override; |
51 void OnDrawWidget(CFX_Graphics* pGraphics, | 51 void OnDrawWidget(CFX_Graphics* pGraphics, |
52 const CFX_Matrix* pMatrix) override; | 52 const CFX_Matrix* pMatrix) override; |
53 | 53 |
54 bool IsVertical(); | 54 bool IsVertical(); |
55 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); | 55 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); |
56 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); | 56 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); |
57 FX_FLOAT GetPageSize(); | 57 FX_FLOAT GetPageSize(); |
58 FWL_Error SetPageSize(FX_FLOAT fPageSize); | 58 FWL_Error SetPageSize(FX_FLOAT fPageSize); |
59 FX_FLOAT GetStepSize(); | 59 FX_FLOAT GetStepSize(); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void DoMouseMove(int32_t iItem, | 154 void DoMouseMove(int32_t iItem, |
155 const CFX_RectF& rtItem, | 155 const CFX_RectF& rtItem, |
156 int32_t& iState, | 156 int32_t& iState, |
157 FX_FLOAT fx, | 157 FX_FLOAT fx, |
158 FX_FLOAT fy); | 158 FX_FLOAT fy); |
159 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); | 159 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); |
160 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); | 160 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); |
161 }; | 161 }; |
162 | 162 |
163 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ | 163 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ |
OLD | NEW |