Dillo
events.hh
Go to the documentation of this file.
1 #ifndef __DW_EVENTS_HH__
2 #define __DW_EVENTS_HH__
3 
4 #ifndef __INCLUDED_FROM_DW_CORE_HH__
5 # error Do not include this file directly, use "core.hh" instead.
6 #endif
7 
8 namespace dw {
9 namespace core {
10 
15 {
16  /* We won't use more than these ones. */
17  SHIFT_MASK = 1 << 0,
18  CONTROL_MASK = 1 << 1,
19  META_MASK = 1 << 2,
20  BUTTON1_MASK = 1 << 3,
21  BUTTON2_MASK = 1 << 4,
22  BUTTON3_MASK = 1 << 5
23 };
24 
32 {
33 public:
34 };
35 
39 class MouseEvent: public Event
40 {
41 public:
43 };
44 
49 {
50 public:
52 };
53 
58 {
59 public:
60  int numPressed; /* 1 for simple click, 2 for double click, etc. */
61  int button;
62 };
63 
68 {
69 };
70 
75 {
76 public:
78 };
79 
80 } // namespace dw
81 } // namespace core
82 
83 #endif // __DW_EVENTS_HH__