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_CFWL_SCROLLBAR_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_SCROLLBAR_H_ |
8 #define XFA_FWL_CORE_CFWL_SCROLLBAR_H_ | 8 #define XFA_FWL_CORE_CFWL_SCROLLBAR_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void Layout(); | 82 void Layout(); |
83 void CalcButtonLen(); | 83 void CalcButtonLen(); |
84 void CalcMinButtonRect(CFX_RectF& rect); | 84 void CalcMinButtonRect(CFX_RectF& rect); |
85 void CalcMaxButtonRect(CFX_RectF& rect); | 85 void CalcMaxButtonRect(CFX_RectF& rect); |
86 void CalcThumbButtonRect(CFX_RectF& rect); | 86 void CalcThumbButtonRect(CFX_RectF& rect); |
87 void CalcMinTrackRect(CFX_RectF& rect); | 87 void CalcMinTrackRect(CFX_RectF& rect); |
88 void CalcMaxTrackRect(CFX_RectF& rect); | 88 void CalcMaxTrackRect(CFX_RectF& rect); |
89 FX_FLOAT GetTrackPointPos(FX_FLOAT fx, FX_FLOAT fy); | 89 FX_FLOAT GetTrackPointPos(FX_FLOAT fx, FX_FLOAT fy); |
90 void GetTrackRect(CFX_RectF& rect, bool bLower = true); | 90 void GetTrackRect(CFX_RectF& rect, bool bLower = true); |
91 bool SendEvent(); | 91 bool SendEvent(); |
92 bool OnScroll(FWL_SCBCODE dwCode, FX_FLOAT fPos); | 92 bool OnScroll(CFWL_EvtScroll::Code dwCode, FX_FLOAT fPos); |
93 void OnLButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 93 void OnLButtonDown(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
94 void OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 94 void OnLButtonUp(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
95 void OnMouseMove(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); | 95 void OnMouseMove(uint32_t dwFlags, FX_FLOAT fx, FX_FLOAT fy); |
96 void OnMouseLeave(); | 96 void OnMouseLeave(); |
97 void OnMouseWheel(FX_FLOAT fx, | 97 void OnMouseWheel(FX_FLOAT fx, |
98 FX_FLOAT fy, | 98 FX_FLOAT fy, |
99 uint32_t dwFlags, | 99 uint32_t dwFlags, |
100 FX_FLOAT fDeltaX, | 100 FX_FLOAT fDeltaX, |
101 FX_FLOAT fDeltaY); | 101 FX_FLOAT fDeltaY); |
102 bool DoScroll(FWL_SCBCODE dwCode, FX_FLOAT fPos = 0.0f); | 102 bool DoScroll(CFWL_EvtScroll::Code dwCode, FX_FLOAT fPos = 0.0f); |
103 void DoMouseDown(int32_t iItem, | 103 void DoMouseDown(int32_t iItem, |
104 const CFX_RectF& rtItem, | 104 const CFX_RectF& rtItem, |
105 int32_t& iState, | 105 int32_t& iState, |
106 FX_FLOAT fx, | 106 FX_FLOAT fx, |
107 FX_FLOAT fy); | 107 FX_FLOAT fy); |
108 void DoMouseUp(int32_t iItem, | 108 void DoMouseUp(int32_t iItem, |
109 const CFX_RectF& rtItem, | 109 const CFX_RectF& rtItem, |
110 int32_t& iState, | 110 int32_t& iState, |
111 FX_FLOAT fx, | 111 FX_FLOAT fx, |
112 FX_FLOAT fy); | 112 FX_FLOAT fy); |
(...skipping 28 matching lines...) Expand all 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 CFWL_ScrollBar::Timer m_Timer; | 147 CFWL_ScrollBar::Timer m_Timer; |
148 }; | 148 }; |
149 | 149 |
150 #endif // XFA_FWL_CORE_CFWL_SCROLLBAR_H_ | 150 #endif // XFA_FWL_CORE_CFWL_SCROLLBAR_H_ |
OLD | NEW |