OLD | NEW |
| (Empty) |
1 // Copyright 2016 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef XFA_FWL_CORE_CFWL_EVENT_H_ | |
8 #define XFA_FWL_CORE_CFWL_EVENT_H_ | |
9 | |
10 #include "core/fxcrt/fx_coordinates.h" | |
11 #include "core/fxcrt/fx_string.h" | |
12 #include "core/fxcrt/fx_system.h" | |
13 #include "xfa/fwl/core/cfwl_msgkey.h" | |
14 #include "xfa/fwl/core/cfwl_msgmouse.h" | |
15 #include "xfa/fwl/core/fwl_error.h" | |
16 | |
17 class CFX_Graphics; | |
18 class CFWL_Widget; | |
19 | |
20 class CFWL_Event { | |
21 public: | |
22 enum class Type { | |
23 CheckStateChanged, | |
24 CheckWord, | |
25 Click, | |
26 Close, | |
27 EditChanged, | |
28 Mouse, | |
29 PostDropDown, | |
30 PreDropDown, | |
31 Scroll, | |
32 SelectChanged, | |
33 TextChanged, | |
34 TextFull, | |
35 Validate | |
36 }; | |
37 | |
38 explicit CFWL_Event(Type type); | |
39 CFWL_Event(Type type, CFWL_Widget* pSrcTarget); | |
40 CFWL_Event(Type type, CFWL_Widget* pSrcTarget, CFWL_Widget* pDstTarget); | |
41 virtual ~CFWL_Event(); | |
42 | |
43 Type GetType() const { return m_type; } | |
44 | |
45 CFWL_Widget* m_pSrcTarget; | |
46 CFWL_Widget* m_pDstTarget; | |
47 | |
48 private: | |
49 Type m_type; | |
50 }; | |
51 | |
52 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ | |
OLD | NEW |