continued, distinction of Draw and DDC is bad, needs to be merged

This commit is contained in:
anselm@garbe.us
2012-11-18 17:26:12 +01:00
parent 3aabc08ede
commit 0a673ad7a3
2 changed files with 14 additions and 7 deletions

4
draw.h
View File

@ -7,6 +7,8 @@ typedef struct _XDraw Draw;
struct _XDraw {
unsigned int w, h;
Display *dpy;
int screen;
Window win;
Drawable drawable;
GC gc;
DDC *dc;
@ -46,7 +48,7 @@ typedef struct {
} TextExtents;
/* Drawable abstraction */
Draw *draw_create(Display *dpy, Window win, unsigned int w, unsigned int h);
Draw *draw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h);
void draw_resize(Draw *draw, unsigned int w, unsigned int h);
void draw_free(Draw *draw);