aboutsummaryrefslogtreecommitdiffstats
path: root/draw.h
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2012-12-08 10:13:01 +0100
committerAnselm R Garbe <anselm@garbe.us>2012-12-08 10:13:01 +0100
commitf21d46ea7def76221c4173f644eb2188ae9edbb1 (patch)
treee5b7ad6e3f9c5385544422cbaff7c30453611055 /draw.h
parentc0ba635c50dc53f06e4fc96392415b3d19b25826 (diff)
continued with draw.c abstraction, also started util.{h,c} implementation, that will be used by draw.c as well
Diffstat (limited to 'draw.h')
-rw-r--r--draw.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/draw.h b/draw.h
index d1a2f37..0c811ab 100644
--- a/draw.h
+++ b/draw.h
@@ -8,7 +8,7 @@ typedef struct _XCol Col;
struct _XFont {
int ascent;
int descent;
- unsigned int h, w;
+ unsigned int h;
XFontSet set;
XFontStruct *xfont;
};
@@ -45,12 +45,12 @@ void draw_resize(Draw *draw, unsigned int w, unsigned int h);
void draw_free(Draw *draw);
/* Fnt abstraction */
-Fnt *font_create(const char *fontname);
-void font_free(Fnt *font);
+Fnt *draw_font_create(Draw *draw, const char *fontname);
+void draw_font_free(Draw *draw, Fnt *font);
/* Colour abstraction */
-Col *col_create(const char *colname);
-void col_free(Col *col);
+Col *draw_col_create(Draw *draw, const char *colname);
+void draw_col_free(Draw *draw, Col *col);
/* Drawing context manipulation */
void draw_setfont(Draw *draw, Fnt *font);