-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenternotifyxevents.h
More file actions
52 lines (38 loc) · 907 Bytes
/
enternotifyxevents.h
File metadata and controls
52 lines (38 loc) · 907 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
#ifndef ENTERNOTIFYXEVENTS_H
#define ENTERNOTIFYXEVENTS_H
#include "xeventstemplate.h"
#include <QPoint>
class EnterNotifyXEvents : public QEvent, public XEventsTemplate
{
protected:
QPoint root_pos; // root window pointer position
QPoint window_pos; // window local pointer position
xcb_window_t window;
xcb_window_t child;
xcb_window_t root;
public:
const static Type TYPE = static_cast<Type>(XEVENTS::ENTER_NOTIFY);
EnterNotifyXEvents(xcb_enter_notify_event_t *event);
EnterNotifyXEvents(xcb_generic_event_t *event);
xcb_window_t getWindow()
{
return window;
}
xcb_window_t getChild()
{
return child;
}
xcb_window_t getRoot()
{
return root;
}
QPoint globalPos()
{
return root_pos;
}
QPoint localPos()
{
return window_pos;
}
};
#endif // ENTERNOTIFYXEVENTS_H