glamtk

diff src/imtk.h @ 0:b04d49e4599c

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 30 Dec 2010 05:22:14 +0200
parents
children dfbd12d1f566
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/imtk.h	Thu Dec 30 05:22:14 2010 +0200
     1.3 @@ -0,0 +1,26 @@
     1.4 +#ifndef IMTK_H_
     1.5 +#define IMTK_H_
     1.6 +
     1.7 +/* key/button state enum */
     1.8 +enum {
     1.9 +	IMTK_UP,
    1.10 +	IMTK_DOWN
    1.11 +};
    1.12 +
    1.13 +enum {
    1.14 +	IMTK_LEFT_BUTTON,
    1.15 +	IMTK_MIDDLE_BUTTON,
    1.16 +	IMTK_RIGHT_BUTTON
    1.17 +};
    1.18 +
    1.19 +void imtk_inp_key(int key, int state);
    1.20 +void imtk_inp_mouse(int bn, int state);
    1.21 +void imtk_inp_motion(int x, int y);
    1.22 +void imtk_inp_reshape(int x, int y);
    1.23 +
    1.24 +void imtk_begin(void);
    1.25 +void imtk_end(void);
    1.26 +
    1.27 +int imtk_button(int id, const char *label, int x, int y);
    1.28 +
    1.29 +#endif	/* IMTK_H_ */