blob: 249bac9c9fd36795cfd9cba73f4ee99329fffdba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* See LICENSE file for copyright and license details. */
#ifndef __CHERRY_EVENT_H__
#define __CHERRY_EVENT_H__
#include <X11/Xlib.h>
enum Events {
WINDOW_DELETED,
WINDOW_EXPOSED,
MOUSE_BUTTON_PRESSED,
KEY_PRESSED
};
typedef struct CherryEvent {
Display *display;
Window window;
int event_id;
int x, y;
XKeyEvent xkey;
};
#endif /* __CHERRY_EVENT_H__ */
|