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