imtk

annotate 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
rev   line source
nuclear@0 1 #ifndef IMTK_H_
nuclear@0 2 #define IMTK_H_
nuclear@0 3
nuclear@1 4 #define IMUID (65536 + __LINE__)
nuclear@1 5
nuclear@1 6 enum {
nuclear@1 7 IMTK_TEXT_COLOR,
nuclear@1 8 IMTK_BASE_COLOR,
nuclear@1 9 IMTK_FOCUS_COLOR,
nuclear@1 10 IMTK_BEVEL_LIT_COLOR,
nuclear@1 11 IMTK_BEVEL_SHAD_COLOR
nuclear@1 12 };
nuclear@1 13
nuclear@0 14 /* key/button state enum */
nuclear@0 15 enum {
nuclear@0 16 IMTK_UP,
nuclear@0 17 IMTK_DOWN
nuclear@0 18 };
nuclear@0 19
nuclear@0 20 enum {
nuclear@0 21 IMTK_LEFT_BUTTON,
nuclear@0 22 IMTK_MIDDLE_BUTTON,
nuclear@0 23 IMTK_RIGHT_BUTTON
nuclear@0 24 };
nuclear@0 25
nuclear@1 26 void imtk_set_color(int col, float r, float g, float b);
nuclear@1 27
nuclear@0 28 void imtk_inp_key(int key, int state);
nuclear@0 29 void imtk_inp_mouse(int bn, int state);
nuclear@0 30 void imtk_inp_motion(int x, int y);
nuclear@0 31 void imtk_inp_reshape(int x, int y);
nuclear@0 32
nuclear@0 33 void imtk_begin(void);
nuclear@0 34 void imtk_end(void);
nuclear@0 35
nuclear@0 36 int imtk_button(int id, const char *label, int x, int y);
nuclear@1 37 int imtk_checkbox(int id, const char *label, int x, int y, int state);
nuclear@0 38
nuclear@0 39 #endif /* IMTK_H_ */