diff options
author | Anselm R Garbe <anselm@garbe.us> | 2012-12-08 10:13:01 +0100 |
---|---|---|
committer | Anselm R Garbe <anselm@garbe.us> | 2012-12-08 10:13:01 +0100 |
commit | f21d46ea7def76221c4173f644eb2188ae9edbb1 (patch) | |
tree | e5b7ad6e3f9c5385544422cbaff7c30453611055 /draw.h | |
parent | c0ba635c50dc53f06e4fc96392415b3d19b25826 (diff) | |
download | dwm-f21d46ea7def76221c4173f644eb2188ae9edbb1.tar.gz |
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.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |