imtk

diff src/draw.h @ 6:38609a9f7586

reorganizing ...
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 14 Apr 2011 14:22:42 +0300
parents
children 10604ff95527
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/draw.h	Thu Apr 14 14:22:42 2011 +0300
     1.3 @@ -0,0 +1,30 @@
     1.4 +#ifndef DRAW_H_
     1.5 +#define DRAW_H_
     1.6 +
     1.7 +#ifndef __APPLE__
     1.8 +#include <GL/glut.h>
     1.9 +#else
    1.10 +#include <GLUT/glut.h>
    1.11 +#endif
    1.12 +
    1.13 +enum {
    1.14 +	IMTK_TEXT_COLOR,
    1.15 +	IMTK_BASE_COLOR,
    1.16 +	IMTK_FOCUS_COLOR,
    1.17 +	IMTK_BEVEL_LIT_COLOR,
    1.18 +	IMTK_BEVEL_SHAD_COLOR
    1.19 +};
    1.20 +
    1.21 +
    1.22 +enum {
    1.23 +	FRAME_OUTSET,
    1.24 +	FRAME_INSET
    1.25 +};
    1.26 +
    1.27 +void imtk_set_color(int col, float r, float g, float b, float a);
    1.28 +float *imtk_get_color(int col);
    1.29 +void imtk_draw_frame(int x, int y, int w, int h, int style);
    1.30 +void imtk_draw_string(int x, int y, const char *str);
    1.31 +int imtk_string_size(const char *str);
    1.32 +
    1.33 +#endif	/* DRAW_H_ */