| 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 26 matching lines...) Expand all Loading... |
| 37 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; | 37 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; |
| 38 | 38 |
| 39 class IFWL_ScrollBar : public IFWL_Widget { | 39 class IFWL_ScrollBar : public IFWL_Widget { |
| 40 public: | 40 public: |
| 41 IFWL_ScrollBar(const IFWL_App* app, | 41 IFWL_ScrollBar(const IFWL_App* app, |
| 42 const CFWL_WidgetImpProperties& properties, | 42 const CFWL_WidgetImpProperties& properties, |
| 43 IFWL_Widget* pOuter); | 43 IFWL_Widget* pOuter); |
| 44 ~IFWL_ScrollBar() override; | 44 ~IFWL_ScrollBar() override; |
| 45 | 45 |
| 46 // IFWL_Widget | 46 // IFWL_Widget |
| 47 void Initialize() override; | |
| 48 void Finalize() override; | |
| 49 FWL_Type GetClassID() const override; | 47 FWL_Type GetClassID() const override; |
| 50 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 48 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 51 FWL_Error Update() override; | 49 FWL_Error Update() override; |
| 52 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 50 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
| 53 const CFX_Matrix* pMatrix = nullptr) override; | 51 const CFX_Matrix* pMatrix = nullptr) override; |
| 54 | 52 |
| 55 FX_BOOL IsVertical(); | 53 FX_BOOL IsVertical(); |
| 56 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); | 54 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); |
| 57 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); | 55 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax); |
| 58 FX_FLOAT GetPageSize(); | 56 FX_FLOAT GetPageSize(); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 int32_t& iState, | 165 int32_t& iState, |
| 168 FX_FLOAT fx, | 166 FX_FLOAT fx, |
| 169 FX_FLOAT fy); | 167 FX_FLOAT fy); |
| 170 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); | 168 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); |
| 171 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); | 169 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); |
| 172 | 170 |
| 173 IFWL_ScrollBar* m_pOwner; | 171 IFWL_ScrollBar* m_pOwner; |
| 174 }; | 172 }; |
| 175 | 173 |
| 176 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ | 174 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ |
| OLD | NEW |