summaryrefslogtreecommitdiff
path: root/drw.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2015-04-08 21:13:45 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2015-04-08 21:13:45 +0200
commitda9f788877f950752eca4b0b8cad6eb8817d5cfd (patch)
tree0bdfafd1769233d75954dd4a05f62f3a62defa7e /drw.h
parent62f5baf7d2cd12824333ecbcb2fb1d84b0f89720 (diff)
drw: fixup font_getexts
Diffstat (limited to 'drw.h')
-rw-r--r--drw.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/drw.h b/drw.h
index 536171b..28f7c61 100644
--- a/drw.h
+++ b/drw.h
@@ -37,11 +37,6 @@ typedef struct {
Fnt *fonts[DRW_FONT_CACHE_SIZE];
} Drw;
-typedef struct {
- unsigned int w;
- unsigned int h;
-} Extnts;
-
/* Drawable abstraction */
Drw *drw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h);
void drw_resize(Drw *drw, unsigned int w, unsigned int h);
@@ -51,8 +46,7 @@ void drw_free(Drw *drw);
Fnt *drw_font_create(Drw *drw, const char *fontname);
void drw_load_fonts(Drw* drw, const char *fonts[], size_t fontcount);
void drw_font_free(Fnt *font);
-void drw_font_getexts(Fnt *font, const char *text, unsigned int len, Extnts *extnts);
-unsigned int drw_font_getexts_width(Fnt *font, const char *text, unsigned int len);
+void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h);
/* Colour abstraction */
Clr *drw_clr_create(Drw *drw, const char *clrname);