diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-17 13:30:38 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-17 13:30:38 +0100 |
| commit | 41729222431449a81535b28ad27ce2620cb5819b (patch) | |
| tree | 0cbbffb343bc1b942ea5527cd52f0cc53143b122 /draw.h | |
| parent | a88d3a4c61f482ffeafba89910b896a92830f95f (diff) | |
Move all the state required for rendering in a struct
Diffstat (limited to 'draw.h')
| -rw-r--r-- | draw.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |
