diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-17 15:07:14 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-17 15:07:14 +0100 |
| commit | f8363e89257e8b0a4ff71accbd7b6be22935274f (patch) | |
| tree | 62e6b17d11b174f6683bf090ed678dddd7a263d4 /draw.h | |
| parent | 41729222431449a81535b28ad27ce2620cb5819b (diff) | |
Attach state to the event loop
Diffstat (limited to 'draw.h')
| -rw-r--r-- | draw.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6,15 +6,16 @@ #include "window.h" -// TODO: Make opaque -typedef struct { +typedef struct Drawable Drawable; + +struct Drawable { PangoFontDescription *desc; int height; int left_pad; int right_pad; int top_pad; double alpha; -} Drawable; +}; Drawable *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, double alpha); |
