aboutsummarylogtreecommitdiffstats
path: root/draw.h
diff options
context:
space:
mode:
authoranselm@garbe.us2012-11-18 12:04:29 +0100
committeranselm@garbe.us2012-11-18 12:04:29 +0100
commite51db3e7bd27508c6de2405d7895679b00835280 (patch)
tree91eefaa20f7ffc79a1aaa14eb1be59ffc668996b /draw.h
parentf3347582d011a51b25de47d397395f2ef736cf41 (diff)
downloadaur-e51db3e7bd27508c6de2405d7895679b00835280.tar.gz
basic draw.c structure
Diffstat (limited to 'draw.h')
-rw-r--r--draw.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/draw.h b/draw.h
index 955067df54f0..9aec43d31739 100644
--- a/draw.h
+++ b/draw.h
@@ -1,13 +1,16 @@
/* See LICENSE file for copyright and license details. */
+typedef struct _DDC DDC;
+
/* X11 types - begin */
+typedef struct _XDraw Draw;
struct _XDraw {
unsigned int w, h;
Display *dpy;
Drawable drawable;
GC gc;
+ DDC *dc;
};
-typedef struct _XDraw Draw;
struct _XCol {
unsigned long rgb;
@@ -24,13 +27,14 @@ struct _XFont {
typedef struct _XFont Fnt;
/* X11 types - end */
-typedef struct {
+struct _DDC {
Draw *draw;
Col *fg;
Col *bg;
Fnt *font;
Bool fill;
-} DDC;
+ DDC *next;
+};
typedef struct {
unsigned int w;
@@ -60,8 +64,8 @@ void col_free(Col *col);
/* Drawing context manipulation */
void dc_setfont(DDC *dc, Fnt *font);
-void dc_setfg(DDC *dc, Col col);
-void dc_setbg(DDC *dc, Col col);
+void dc_setfg(DDC *dc, Col *col);
+void dc_setbg(DDC *dc, Col *col);
void dc_setfill(DDC *dc, Bool fill);
/* Drawing functions */