-
Notifications
You must be signed in to change notification settings - Fork 9
/
say_window.h
43 lines (29 loc) · 1.05 KB
/
say_window.h
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
#ifndef SAY_WINDOW_H_
#define SAY_WINDOW_H_
#include "say_target.h"
#include "say_event.h"
#include "say_image.h"
#define SAY_WINDOW_RESIZABLE 0x1
#define SAY_WINDOW_NO_FRAME 0x2
#define SAY_WINDOW_FULLSCREEN 0x4
typedef struct say_window {
say_target *target;
say_input input;
bool show_cursor;
say_imp_window win;
} say_window;
say_window *say_window_create();
void say_window_free(say_window *window);
int say_window_open(say_window *win, size_t w, size_t h, const char *title,
uint8_t style);
void say_window_close(say_window *win);
void say_window_update(say_window *win);
void say_window_hide_cursor(say_window *win);
void say_window_show_cursor(say_window *win);
bool say_window_set_icon(say_window *win, say_image *icon);
void say_window_set_title(say_window *win, const char *title);
bool say_window_resize(say_window *win, size_t w, size_t h);
int say_window_poll_event(say_window *win, say_event *ev);
void say_window_wait_event(say_window *win, say_event *ev);
say_input *say_window_get_input(say_window *win);
#endif