-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreleasekeyxevent.h
More file actions
60 lines (43 loc) · 889 Bytes
/
releasekeyxevent.h
File metadata and controls
60 lines (43 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef RELEASEKEYXEVENT_H
#define RELEASEKEYXEVENT_H
#include "xeventstemplate.h"
#include <QPoint>
class ReleaseKeyXEvent : public QEvent , public XEventsTemplate
{
protected:
xcb_window_t root;
xcb_window_t _event;
xcb_button_t keyCode;
uint16_t modifier;
QPoint root_pos;
QPoint local_pos;
public:
const static Type TYPE = static_cast<Type>(XEVENTS::KEY_RELEASE);
ReleaseKeyXEvent(xcb_key_release_event_t *event);
ReleaseKeyXEvent(xcb_generic_event_t *event);
uint16_t getMod()
{
return modifier;
}
xcb_window_t getRoot()
{
return root;
}
xcb_window_t getEvent()
{
return _event;
}
xcb_button_t getKey()
{
return keyCode;
}
QPoint GlobalPos()
{
return root_pos;
}
QPoint LocalPos()
{
return local_pos;
}
};
#endif // RELEASEKEYXEVENT_H