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 | 18 #define FWL_CLASSHASH_ScrollBar 2826584844 |
19 #define FWL_STYLEEXT_SCB_Horz (0L << 0) | 19 #define FWL_STYLEEXT_SCB_Horz (0L << 0) |
20 #define FWL_STYLEEXT_SCB_Vert (1L << 0) | 20 #define FWL_STYLEEXT_SCB_Vert (1L << 0) |
21 #define FWL_WGTHITTEST_SCB_ForeArrow FWL_WGTHITTEST_MAX + 1 | |
22 #define FWL_WGTHITTEST_SCB_BackArrow FWL_WGTHITTEST_MAX + 2 | |
23 #define FWL_WGTHITTEST_SCB_LowerTrack FWL_WGTHITTEST_MAX + 3 | |
24 #define FWL_WGTHITTEST_SCB_UpperTrack FWL_WGTHITTEST_MAX + 4 | |
25 #define FWL_WGTHITTEST_SCB_Thumb FWL_WGTHITTEST_MAX + 5 | |
26 | 21 |
27 enum FWL_SCBCODE { | 22 enum FWL_SCBCODE { |
28 FWL_SCBCODE_None = 1, | 23 FWL_SCBCODE_None = 1, |
29 FWL_SCBCODE_Min, | 24 FWL_SCBCODE_Min, |
30 FWL_SCBCODE_Max, | 25 FWL_SCBCODE_Max, |
31 FWL_SCBCODE_PageBackward, | 26 FWL_SCBCODE_PageBackward, |
32 FWL_SCBCODE_PageForward, | 27 FWL_SCBCODE_PageForward, |
33 FWL_SCBCODE_StepBackward, | 28 FWL_SCBCODE_StepBackward, |
34 FWL_SCBCODE_StepForward, | 29 FWL_SCBCODE_StepForward, |
35 FWL_SCBCODE_Pos, | 30 FWL_SCBCODE_Pos, |
(...skipping 19 matching lines...) Expand all Loading... |
55 FWL_ERR SetPos(FX_FLOAT fPos); | 50 FWL_ERR SetPos(FX_FLOAT fPos); |
56 FX_FLOAT GetTrackPos(); | 51 FX_FLOAT GetTrackPos(); |
57 FWL_ERR SetTrackPos(FX_FLOAT fTrackPos); | 52 FWL_ERR SetTrackPos(FX_FLOAT fTrackPos); |
58 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f); | 53 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f); |
59 | 54 |
60 protected: | 55 protected: |
61 IFWL_ScrollBar(); | 56 IFWL_ScrollBar(); |
62 }; | 57 }; |
63 | 58 |
64 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ | 59 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ |
OLD | NEW |