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_MSGMOUSE_H_ | |
8 #define XFA_FWL_CORE_CFWL_MSGMOUSE_H_ | |
9 | |
10 #include <memory> | |
11 | |
12 #include "xfa/fwl/core/cfwl_message.h" | |
13 | |
14 enum class FWL_MouseCommand { | |
15 LeftButtonDown, | |
16 LeftButtonUp, | |
17 LeftButtonDblClk, | |
18 RightButtonDown, | |
19 RightButtonUp, | |
20 RightButtonDblClk, | |
21 Move, | |
22 Enter, | |
23 Leave, | |
24 Hover | |
25 }; | |
26 | |
27 class CFWL_MsgMouse : public CFWL_Message { | |
28 public: | |
29 CFWL_MsgMouse(CFWL_Widget* pSrcTarget, CFWL_Widget* pDstTarget); | |
30 ~CFWL_MsgMouse() override; | |
31 | |
32 // CFWL_Message | |
33 std::unique_ptr<CFWL_Message> Clone() override; | |
34 | |
35 FX_FLOAT m_fx; | |
36 FX_FLOAT m_fy; | |
37 uint32_t m_dwFlags; | |
38 FWL_MouseCommand m_dwCmd; | |
39 }; | |
40 | |
41 #endif // XFA_FWL_CORE_CFWL_MSGMOUSE_H_ | |
OLD | NEW |