imtk
diff src/draw.h @ 13:9c7987064bb0
- fixed the frame drawing a bit
- added global alpha value and various drawing parameters
- backported the checkbox check mark from glamtk
- fixed progress bar drawing so that the bevels of the trough and the bar won't overlap
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Mon, 18 Apr 2011 06:15:46 +0300 |
parents | 10604ff95527 |
children | df2bc9406561 |
line diff
1.1 --- a/src/draw.h Sun Apr 17 18:20:23 2011 +0300 1.2 +++ b/src/draw.h Mon Apr 18 06:15:46 2011 +0300 1.3 @@ -6,22 +6,14 @@ 1.4 #else 1.5 #include <GLUT/glut.h> 1.6 #endif 1.7 - 1.8 -enum { 1.9 - IMTK_TEXT_COLOR, 1.10 - IMTK_BASE_COLOR, 1.11 - IMTK_FOCUS_COLOR, 1.12 - IMTK_BEVEL_LIT_COLOR, 1.13 - IMTK_BEVEL_SHAD_COLOR 1.14 -}; 1.15 - 1.16 +#include "imtk.h" 1.17 1.18 enum { 1.19 FRAME_OUTSET, 1.20 FRAME_INSET 1.21 }; 1.22 1.23 -void imtk_set_color(int col, float r, float g, float b, float a); 1.24 +/*void imtk_set_color(int col, float r, float g, float b, float a); in imtk.h */ 1.25 float *imtk_get_color(int col); 1.26 void imtk_draw_rect(int x, int y, int w, int h, float *color_rgba); 1.27 void imtk_draw_frame(int x, int y, int w, int h, int style);