glamtk

diff src/imtk.h @ 1:dfbd12d1f566

finished the checkbox control, did some reorg as well.
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 30 Dec 2010 15:10:25 +0200
parents b04d49e4599c
children 3d661dd17af3
line diff
     1.1 --- a/src/imtk.h	Thu Dec 30 05:22:14 2010 +0200
     1.2 +++ b/src/imtk.h	Thu Dec 30 15:10:25 2010 +0200
     1.3 @@ -1,6 +1,16 @@
     1.4  #ifndef IMTK_H_
     1.5  #define IMTK_H_
     1.6  
     1.7 +#define IMUID	(65536 + __LINE__)
     1.8 +
     1.9 +enum {
    1.10 +	IMTK_TEXT_COLOR,
    1.11 +	IMTK_BASE_COLOR,
    1.12 +	IMTK_FOCUS_COLOR,
    1.13 +	IMTK_BEVEL_LIT_COLOR,
    1.14 +	IMTK_BEVEL_SHAD_COLOR
    1.15 +};
    1.16 +
    1.17  /* key/button state enum */
    1.18  enum {
    1.19  	IMTK_UP,
    1.20 @@ -13,6 +23,8 @@
    1.21  	IMTK_RIGHT_BUTTON
    1.22  };
    1.23  
    1.24 +void imtk_set_color(int col, float r, float g, float b);
    1.25 +
    1.26  void imtk_inp_key(int key, int state);
    1.27  void imtk_inp_mouse(int bn, int state);
    1.28  void imtk_inp_motion(int x, int y);
    1.29 @@ -22,5 +34,6 @@
    1.30  void imtk_end(void);
    1.31  
    1.32  int imtk_button(int id, const char *label, int x, int y);
    1.33 +int imtk_checkbox(int id, const char *label, int x, int y, int state);
    1.34  
    1.35  #endif	/* IMTK_H_ */