imtk
view src/state.h @ 19:11da537aeba6
blah
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Tue, 26 Apr 2011 22:53:21 +0300 |
parents | |
children |
line source
1 #ifndef STATE_H_
2 #define STATE_H_
4 struct imtk_state {
5 int scr_width, scr_height;
6 int mousex, mousey, prevx, prevy, mouse_bnmask;
7 int active, hot, input, prev_active;
8 };
10 void imtk_set_active(int id);
11 int imtk_is_active(int id);
12 int imtk_set_hot(int id);
13 int imtk_is_hot(int id);
14 void imtk_set_focus(int id);
15 int imtk_has_focus(int id);
16 int imtk_hit_test(int x, int y, int w, int h);
18 void imtk_get_mouse(int *xptr, int *yptr);
19 void imtk_set_prev_mouse(int x, int y);
20 void imtk_get_prev_mouse(int *xptr, int *yptr);
21 int imtk_button_state(int bn);
23 int imtk_get_key(void);
26 #endif /* STATE_H_ */