aboutsummaryrefslogtreecommitdiff
path: root/draw.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-17 13:30:38 +0100
committerFederico Angelilli <code@fedang.net>2023-11-17 13:30:38 +0100
commit41729222431449a81535b28ad27ce2620cb5819b (patch)
tree0cbbffb343bc1b942ea5527cd52f0cc53143b122 /draw.h
parenta88d3a4c61f482ffeafba89910b896a92830f95f (diff)
Move all the state required for rendering in a struct
Diffstat (limited to 'draw.h')
-rw-r--r--draw.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/draw.h b/draw.h
index 1d299ce..2bbb3c2 100644
--- a/draw.h
+++ b/draw.h
@@ -8,7 +8,6 @@
// TODO: Make opaque
typedef struct {
- Window *win;
PangoFontDescription *desc;
int height;
int left_pad;
@@ -17,9 +16,9 @@ typedef struct {
double alpha;
} Drawable;
-Drawable *draw_create(Window *win, const char *font, int height, int left_pad, int right_pad, int top_pad, double alpha);
+Drawable *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, double alpha);
-void draw_paint(Drawable *draw);
+void draw_paint(Drawable *draw, Window *win);
void draw_destroy(Drawable *draw);