SCENE C++ API  2.1.0
lsmouseevent.h
1 #pragma once
2 
3 #include <windows.h>
4 
5 #include <core_api/lsglobaldefinitions.h>
6 
7 #include <plugin_api/lsviewevent.h>
8 
9 namespace SCENE_API {
10 
14 class LSMouseEvent : public LSViewEvent
15 {
16 public:
17 
23  PLUGIN_API_EXPORT LSMouseEvent(ref_ptr<LSView> view, unsigned flags, POINT point);
24 
34  PLUGIN_API_EXPORT unsigned getFlags() const;
35 
39  PLUGIN_API_EXPORT POINT getPoint() const;
40 
41 protected:
42  // Indicates whether various virtual keys are down.
43  const unsigned m_flags;
44 
45  // Specifies the x- and y-coordinate of the cursor. These coordinates are
46  // always relative to the upper-left corner of the screen.
47  const POINT m_point;
48 };
49 
50 }