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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 PreDropDown, | 30 PreDropDown, |
31 Scroll, | 31 Scroll, |
32 SelectChanged, | 32 SelectChanged, |
33 SetFocus, | 33 SetFocus, |
34 SizeChanged, | 34 SizeChanged, |
35 TextChanged, | 35 TextChanged, |
36 TextFull, | 36 TextFull, |
37 Validate | 37 Validate |
38 }; | 38 }; |
39 | 39 |
40 enum FWLEventMask { | |
41 FWL_EVENT_MOUSE_MASK = 1 << 0, | |
42 FWL_EVENT_MOUSEWHEEL_MASK = 1 << 1, | |
43 FWL_EVENT_KEY_MASK = 1 << 2, | |
44 FWL_EVENT_FOCUSCHANGED_MASK = 1 << 3, | |
45 FWL_EVENT_DRAW_MASK = 1 << 4, | |
46 FWL_EVENT_CLOSE_MASK = 1 << 5, | |
47 FWL_EVENT_SIZECHANGED_MASK = 1 << 6, | |
48 FWL_EVENT_IDLE_MASK = 1 << 7, | |
49 FWL_EVENT_CONTROL_MASK = 1 << 8, | |
50 FWL_EVENT_ALL_MASK = 0xFF | |
51 }; | |
52 | |
53 class CFX_Graphics; | 40 class CFX_Graphics; |
54 class IFWL_Widget; | 41 class IFWL_Widget; |
55 | 42 |
56 class CFWL_Event { | 43 class CFWL_Event { |
57 public: | 44 public: |
58 CFWL_Event(); | 45 CFWL_Event(); |
59 virtual ~CFWL_Event(); | 46 virtual ~CFWL_Event(); |
60 | 47 |
61 virtual CFWL_EventType GetClassID() const; | 48 virtual CFWL_EventType GetClassID() const; |
62 | 49 |
63 IFWL_Widget* m_pSrcTarget; | 50 IFWL_Widget* m_pSrcTarget; |
64 IFWL_Widget* m_pDstTarget; | 51 IFWL_Widget* m_pDstTarget; |
65 }; | 52 }; |
66 | 53 |
67 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ | 54 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ |
OLD | NEW |