annotate src/wsys.h @ 4:c31c4115d44a
test 2, open window, create queue, etc ...
author |
John Tsiombikas <nuclear@member.fsf.org> |
date |
Fri, 22 Sep 2017 15:26:29 +0300 |
parents |
|
children |
f8bd29f124a8 |
rev |
line source |
nuclear@4
|
1 #ifndef WSYS_H_
|
nuclear@4
|
2 #define WSYS_H_
|
nuclear@4
|
3
|
nuclear@4
|
4 /* pass to wsys_process_events */
|
nuclear@4
|
5 enum {
|
nuclear@4
|
6 WSYS_BLOCKING = 0,
|
nuclear@4
|
7 WSYS_NONBLOCK = 1
|
nuclear@4
|
8 };
|
nuclear@4
|
9
|
nuclear@4
|
10 int wsys_create_window(int xsz, int ysz);
|
nuclear@4
|
11 void wsys_destroy_window(void);
|
nuclear@4
|
12
|
nuclear@4
|
13 void wsys_set_window_title(const char *title);
|
nuclear@4
|
14 void wsys_get_window_size(int *xsz, int *ysz);
|
nuclear@4
|
15
|
nuclear@4
|
16 void wsys_display_callback(void (*func)(void));
|
nuclear@4
|
17 void wsys_reshape_callback(void (*func)(int, int));
|
nuclear@4
|
18 void wsys_keyboard_callback(void (*func)(int, int));
|
nuclear@4
|
19 void wsys_mouse_callback(void (*func)(int, int, int, int));
|
nuclear@4
|
20 void wsys_motion_callback(void (*func)(int, int));
|
nuclear@4
|
21 void wsys_passive_motion_callback(void (*func)(int, int));
|
nuclear@4
|
22
|
nuclear@4
|
23 void wsys_swap_buffers(void);
|
nuclear@4
|
24 void wsys_redisplay(void);
|
nuclear@4
|
25 void wsys_quit(void);
|
nuclear@4
|
26
|
nuclear@4
|
27 /* mode: WSYS_BLOCKING or WSYS_NONBLOCK */
|
nuclear@4
|
28 int wsys_process_events(int mode);
|
nuclear@4
|
29
|
nuclear@4
|
30
|
nuclear@4
|
31 #endif /* WSYS_H_ */
|