OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_EVENT_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_EVENT_H_ |
8 #define XFA_FWL_CORE_CFWL_EVENT_H_ | 8 #define XFA_FWL_CORE_CFWL_EVENT_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_coordinates.h" | 10 #include "core/fxcrt/fx_coordinates.h" |
11 #include "core/fxcrt/fx_string.h" | 11 #include "core/fxcrt/fx_string.h" |
12 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
13 #include "xfa/fwl/core/cfwl_message.h" | 13 #include "xfa/fwl/core/cfwl_message.h" |
14 #include "xfa/fwl/core/fwl_error.h" | 14 #include "xfa/fwl/core/fwl_error.h" |
15 | 15 |
| 16 enum class FWL_SCBCODE { |
| 17 None = 1, |
| 18 Min, |
| 19 Max, |
| 20 PageBackward, |
| 21 PageForward, |
| 22 StepBackward, |
| 23 StepForward, |
| 24 Pos, |
| 25 TrackPos, |
| 26 EndScroll, |
| 27 }; |
| 28 |
16 enum class CFWL_EventType { | 29 enum class CFWL_EventType { |
17 None = 0, | 30 None = 0, |
18 | 31 |
19 CheckStateChanged, | 32 CheckStateChanged, |
20 CheckWord, | 33 CheckWord, |
21 Click, | 34 Click, |
22 Close, | 35 Close, |
23 CloseUp, | 36 CloseUp, |
24 ContextMenu, | 37 ContextMenu, |
25 DataSelected, | 38 DataSelected, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 143 |
131 FWL_EVENT_DEF(CFWL_EvtKillFocus, | 144 FWL_EVENT_DEF(CFWL_EvtKillFocus, |
132 CFWL_EventType::KillFocus, | 145 CFWL_EventType::KillFocus, |
133 IFWL_Widget* m_pKillFocus;) | 146 IFWL_Widget* m_pKillFocus;) |
134 | 147 |
135 FWL_EVENT_DEF(CFWL_EvtDraw, CFWL_EventType::Draw, CFX_Graphics* m_pGraphics; | 148 FWL_EVENT_DEF(CFWL_EvtDraw, CFWL_EventType::Draw, CFX_Graphics* m_pGraphics; |
136 IFWL_Widget * m_pWidget;) | 149 IFWL_Widget * m_pWidget;) |
137 | 150 |
138 FWL_EVENT_DEF(CFWL_EvtClick, CFWL_EventType::Click) | 151 FWL_EVENT_DEF(CFWL_EvtClick, CFWL_EventType::Click) |
139 | 152 |
140 FWL_EVENT_DEF(CFWL_EvtScroll, CFWL_EventType::Scroll, uint32_t m_iScrollCode; | 153 FWL_EVENT_DEF(CFWL_EvtScroll, CFWL_EventType::Scroll, FWL_SCBCODE m_iScrollCode; |
141 FX_FLOAT m_fPos; | 154 FX_FLOAT m_fPos; |
142 bool* m_pRet;) | 155 bool* m_pRet;) |
143 | 156 |
144 FWL_EVENT_DEF(CFWL_EvtClose, CFWL_EventType::Close) | 157 FWL_EVENT_DEF(CFWL_EvtClose, CFWL_EventType::Close) |
145 | 158 |
146 FWL_EVENT_DEF(CFWL_EvtContextMenu, | 159 FWL_EVENT_DEF(CFWL_EvtContextMenu, |
147 CFWL_EventType::ContextMenu, | 160 CFWL_EventType::ContextMenu, |
148 FX_FLOAT m_fPosX; | 161 FX_FLOAT m_fPosX; |
149 FX_FLOAT m_fPosY; | 162 FX_FLOAT m_fPosY; |
150 IFWL_Widget * m_pOwner;) | 163 IFWL_Widget * m_pOwner;) |
151 | 164 |
152 FWL_EVENT_DEF(CFWL_EvtMenuCommand, | 165 FWL_EVENT_DEF(CFWL_EvtMenuCommand, |
153 CFWL_EventType::MenuCommand, | 166 CFWL_EventType::MenuCommand, |
154 int32_t m_iCommand; | 167 int32_t m_iCommand; |
155 void* m_pData;) | 168 void* m_pData;) |
156 | 169 |
157 FWL_EVENT_DEF(CFWL_EvtSizeChanged, | 170 FWL_EVENT_DEF(CFWL_EvtSizeChanged, |
158 CFWL_EventType::SizeChanged, | 171 CFWL_EventType::SizeChanged, |
159 IFWL_Widget* m_pWidget; | 172 IFWL_Widget* m_pWidget; |
160 CFX_RectF m_rtOld; | 173 CFX_RectF m_rtOld; |
161 CFX_RectF m_rtNew;) | 174 CFX_RectF m_rtNew;) |
162 | 175 |
163 FWL_EVENT_DEF(CFWL_EvtIdle, CFWL_EventType::Idle) | 176 FWL_EVENT_DEF(CFWL_EvtIdle, CFWL_EventType::Idle) |
164 | 177 |
165 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ | 178 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ |
OLD | NEW |