| 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_INCLUDE_FWL_BASEWIDGET_FWL_SCROLLBAR_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ |
| 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_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" |
| 11 #include "xfa/fwl/core/ifwl_widget.h" |
| 12 #include "xfa/fwl/core/ifwl_dataprovider.h" |
| 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
| 14 #include "core/fxcrt/include/fx_system.h" |
| 15 #include "xfa/fwl/core/fwl_error.h" |
| 11 | 16 |
| 12 #define FWL_CLASS_ScrollBar L"FWL_SCROLLBAR" | 17 #define FWL_CLASS_ScrollBar L"FWL_SCROLLBAR" |
| 13 #define FWL_CLASSHASH_ScrollBar 2826584844 | 18 #define FWL_CLASSHASH_ScrollBar 2826584844 |
| 14 #define FWL_STYLEEXT_SCB_Horz (0L << 0) | 19 #define FWL_STYLEEXT_SCB_Horz (0L << 0) |
| 15 #define FWL_STYLEEXT_SCB_Vert (1L << 0) | 20 #define FWL_STYLEEXT_SCB_Vert (1L << 0) |
| 16 #define FWL_PART_SCB_Border 1 | 21 #define FWL_PART_SCB_Border 1 |
| 17 #define FWL_PART_SCB_Edge 2 | 22 #define FWL_PART_SCB_Edge 2 |
| 18 #define FWL_PART_SCB_Background 3 | 23 #define FWL_PART_SCB_Background 3 |
| 19 #define FWL_PART_SCB_ForeArrow 4 | 24 #define FWL_PART_SCB_ForeArrow 4 |
| 20 #define FWL_PART_SCB_BackArrow 5 | 25 #define FWL_PART_SCB_BackArrow 5 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 FX_FLOAT GetPos(); | 67 FX_FLOAT GetPos(); |
| 63 FWL_ERR SetPos(FX_FLOAT fPos); | 68 FWL_ERR SetPos(FX_FLOAT fPos); |
| 64 FX_FLOAT GetTrackPos(); | 69 FX_FLOAT GetTrackPos(); |
| 65 FWL_ERR SetTrackPos(FX_FLOAT fTrackPos); | 70 FWL_ERR SetTrackPos(FX_FLOAT fTrackPos); |
| 66 FX_BOOL DoScroll(FX_DWORD dwCode, FX_FLOAT fPos = 0.0f); | 71 FX_BOOL DoScroll(FX_DWORD dwCode, FX_FLOAT fPos = 0.0f); |
| 67 | 72 |
| 68 protected: | 73 protected: |
| 69 IFWL_ScrollBar(); | 74 IFWL_ScrollBar(); |
| 70 }; | 75 }; |
| 71 | 76 |
| 72 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_SCROLLBAR_H_ | 77 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ |
| OLD | NEW |