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 <memory> | 10 #include <memory> |
11 | 11 |
12 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
13 #include "xfa/fwl/core/cfwl_evtscroll.h" | 13 #include "xfa/fwl/core/cfwl_evtscroll.h" |
14 #include "xfa/fwl/core/cfwl_timer.h" | 14 #include "xfa/fwl/core/cfwl_timer.h" |
15 #include "xfa/fwl/core/cfwl_widgetproperties.h" | 15 #include "xfa/fwl/core/cfwl_widgetproperties.h" |
16 #include "xfa/fwl/core/ifwl_widget.h" | 16 #include "xfa/fwl/core/ifwl_widget.h" |
17 | 17 |
18 class IFWL_Widget; | 18 class IFWL_Widget; |
19 | 19 |
20 #define FWL_STYLEEXT_SCB_Horz (0L << 0) | 20 #define FWL_STYLEEXT_SCB_Horz (0L << 0) |
21 #define FWL_STYLEEXT_SCB_Vert (1L << 0) | 21 #define FWL_STYLEEXT_SCB_Vert (1L << 0) |
22 | 22 |
23 class IFWL_ScrollBar : public IFWL_Widget { | 23 class IFWL_ScrollBar : public IFWL_Widget { |
24 public: | 24 public: |
25 IFWL_ScrollBar(const IFWL_App* app, | 25 IFWL_ScrollBar(const CFWL_App* app, |
26 std::unique_ptr<CFWL_WidgetProperties> properties, | 26 std::unique_ptr<CFWL_WidgetProperties> properties, |
27 IFWL_Widget* pOuter); | 27 IFWL_Widget* pOuter); |
28 ~IFWL_ScrollBar() override; | 28 ~IFWL_ScrollBar() override; |
29 | 29 |
30 // IFWL_Widget | 30 // IFWL_Widget |
31 FWL_Type GetClassID() const override; | 31 FWL_Type GetClassID() const override; |
32 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 32 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
33 void Update() override; | 33 void Update() override; |
34 void DrawWidget(CFX_Graphics* pGraphics, | 34 void DrawWidget(CFX_Graphics* pGraphics, |
35 const CFX_Matrix* pMatrix = nullptr) override; | 35 const CFX_Matrix* pMatrix = nullptr) override; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 CFX_RectF m_rtThumb; | 141 CFX_RectF m_rtThumb; |
142 CFX_RectF m_rtMinBtn; | 142 CFX_RectF m_rtMinBtn; |
143 CFX_RectF m_rtMaxBtn; | 143 CFX_RectF m_rtMaxBtn; |
144 CFX_RectF m_rtMinTrack; | 144 CFX_RectF m_rtMinTrack; |
145 CFX_RectF m_rtMaxTrack; | 145 CFX_RectF m_rtMaxTrack; |
146 FX_FLOAT m_fMinThumb; | 146 FX_FLOAT m_fMinThumb; |
147 IFWL_ScrollBar::Timer m_Timer; | 147 IFWL_ScrollBar::Timer m_Timer; |
148 }; | 148 }; |
149 | 149 |
150 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ | 150 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ |
OLD | NEW |