Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
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
8namespace dw {
9namespace 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{
33public:
34};
35
39class MouseEvent: public Event
40{
41public:
43};
44
49{
50public:
52};
53
58{
59public:
60 int numPressed; /* 1 for simple click, 2 for double click, etc. */
61 int button;
62};
63
68{
69};
70
75{
76public:
78};
79
80} // namespace core
81} // namespace dw
82
83#endif // __DW_EVENTS_HH__
Represents a button press or release event.
Definition events.hh:58
Represents a enter or leave notify event.
Definition events.hh:75
Represents a mouse motion event.
Definition events.hh:68
Base class for all events.
Definition events.hh:32
Base class for all mouse events.
Definition events.hh:40
ButtonState state
Definition events.hh:42
Base class for all mouse events related to a specific position.
Definition events.hh:49
The base class of all dillo widgets.
Definition widget.hh:44
This is the base class for many other classes, which defines very common virtual methods.
Definition object.hh:25
ButtonState
Platform independent representation.
Definition events.hh:15
@ SHIFT_MASK
Definition events.hh:17
@ BUTTON3_MASK
Definition events.hh:22
@ META_MASK
Definition events.hh:19
@ BUTTON1_MASK
Definition events.hh:20
@ CONTROL_MASK
Definition events.hh:18
@ BUTTON2_MASK
Definition events.hh:21
Dw is in this namespace, or sub namespaces of this one.