rayfract

annotate src/imtk/state.h @ 10:1496aae2e7d4

- simplified build by including dependences in the source tree - added make dep tracking - added mingw cross-build rules - added readme & licence
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 31 Jul 2023 18:58:56 +0300
parents
children
rev   line source
nuclear@10 1 #ifndef STATE_H_
nuclear@10 2 #define STATE_H_
nuclear@10 3
nuclear@10 4 struct imtk_state {
nuclear@10 5 int scr_width, scr_height;
nuclear@10 6 int mousex, mousey, prevx, prevy, mouse_bnmask;
nuclear@10 7 int active, hot, input, prev_active;
nuclear@10 8 };
nuclear@10 9
nuclear@10 10 void imtk_set_active(int id);
nuclear@10 11 int imtk_is_active(int id);
nuclear@10 12 int imtk_set_hot(int id);
nuclear@10 13 int imtk_is_hot(int id);
nuclear@10 14 void imtk_set_focus(int id);
nuclear@10 15 int imtk_has_focus(int id);
nuclear@10 16 int imtk_hit_test(int x, int y, int w, int h);
nuclear@10 17
nuclear@10 18 void imtk_get_mouse(int *xptr, int *yptr);
nuclear@10 19 void imtk_set_prev_mouse(int x, int y);
nuclear@10 20 void imtk_get_prev_mouse(int *xptr, int *yptr);
nuclear@10 21 int imtk_button_state(int bn);
nuclear@10 22
nuclear@10 23 int imtk_get_key(void);
nuclear@10 24
nuclear@10 25
nuclear@10 26 #endif /* STATE_H_ */