nuclear@0: #ifndef IMTK_H_ nuclear@0: #define IMTK_H_ nuclear@0: nuclear@1: #define IMUID (65536 + __LINE__) nuclear@1: nuclear@1: enum { nuclear@1: IMTK_TEXT_COLOR, nuclear@1: IMTK_BASE_COLOR, nuclear@1: IMTK_FOCUS_COLOR, nuclear@1: IMTK_BEVEL_LIT_COLOR, nuclear@1: IMTK_BEVEL_SHAD_COLOR nuclear@1: }; nuclear@1: nuclear@0: /* key/button state enum */ nuclear@0: enum { nuclear@0: IMTK_UP, nuclear@0: IMTK_DOWN nuclear@0: }; nuclear@0: nuclear@0: enum { nuclear@0: IMTK_LEFT_BUTTON, nuclear@0: IMTK_MIDDLE_BUTTON, nuclear@0: IMTK_RIGHT_BUTTON nuclear@0: }; nuclear@0: nuclear@1: void imtk_set_color(int col, float r, float g, float b); nuclear@1: nuclear@0: void imtk_inp_key(int key, int state); nuclear@0: void imtk_inp_mouse(int bn, int state); nuclear@0: void imtk_inp_motion(int x, int y); nuclear@0: void imtk_inp_reshape(int x, int y); nuclear@0: nuclear@0: void imtk_begin(void); nuclear@0: void imtk_end(void); nuclear@0: nuclear@0: int imtk_button(int id, const char *label, int x, int y); nuclear@1: int imtk_checkbox(int id, const char *label, int x, int y, int state); nuclear@2: void imtk_textbox(int id, char *textbuf, size_t buf_sz, int x, int y); nuclear@3: float imtk_slider(int id, float pos, float min, float max, int x, int y); nuclear@3: void imtk_progress(int id, float pos, int x, int y); nuclear@0: nuclear@0: #endif /* IMTK_H_ */