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" |
11 #include "xfa/fwl/core/ifwl_widget.h" | 11 #include "xfa/fwl/core/ifwl_widget.h" |
12 #include "xfa/fwl/core/ifwl_dataprovider.h" | 12 #include "xfa/fwl/core/ifwl_dataprovider.h" |
13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | 13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
14 #include "core/fxcrt/include/fx_system.h" | 14 #include "core/fxcrt/include/fx_system.h" |
15 #include "xfa/fwl/core/fwl_error.h" | 15 #include "xfa/fwl/core/fwl_error.h" |
16 | 16 |
17 #define FWL_CLASS_ScrollBar L"FWL_SCROLLBAR" | 17 #define FWL_CLASS_ScrollBar L"FWL_SCROLLBAR" |
18 #define FWL_CLASSHASH_ScrollBar 2826584844 | |
19 #define FWL_STYLEEXT_SCB_Horz (0L << 0) | 18 #define FWL_STYLEEXT_SCB_Horz (0L << 0) |
20 #define FWL_STYLEEXT_SCB_Vert (1L << 0) | 19 #define FWL_STYLEEXT_SCB_Vert (1L << 0) |
21 | 20 |
22 enum FWL_SCBCODE { | 21 enum FWL_SCBCODE { |
23 FWL_SCBCODE_None = 1, | 22 FWL_SCBCODE_None = 1, |
24 FWL_SCBCODE_Min, | 23 FWL_SCBCODE_Min, |
25 FWL_SCBCODE_Max, | 24 FWL_SCBCODE_Max, |
26 FWL_SCBCODE_PageBackward, | 25 FWL_SCBCODE_PageBackward, |
27 FWL_SCBCODE_PageForward, | 26 FWL_SCBCODE_PageForward, |
28 FWL_SCBCODE_StepBackward, | 27 FWL_SCBCODE_StepBackward, |
(...skipping 21 matching lines...) Expand all Loading... |
50 FWL_Error SetPos(FX_FLOAT fPos); | 49 FWL_Error SetPos(FX_FLOAT fPos); |
51 FX_FLOAT GetTrackPos(); | 50 FX_FLOAT GetTrackPos(); |
52 FWL_Error SetTrackPos(FX_FLOAT fTrackPos); | 51 FWL_Error SetTrackPos(FX_FLOAT fTrackPos); |
53 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f); | 52 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f); |
54 | 53 |
55 protected: | 54 protected: |
56 IFWL_ScrollBar(); | 55 IFWL_ScrollBar(); |
57 }; | 56 }; |
58 | 57 |
59 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ | 58 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ |
OLD | NEW |