diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-16 16:13:44 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-16 16:14:25 +0100 |
| commit | 339f20abbe83da4ac094ae875fdaca9479d28ce6 (patch) | |
| tree | d8027d63c5bce21b5a092417e785b92e0668a4e1 /src/draw.h | |
| parent | 115a2b5d2fb0b8b4950c6daa897fbe012b9204b2 (diff) | |
Create a single pango context in draw_compute_layout
Diffstat (limited to 'src/draw.h')
| -rw-r--r-- | src/draw.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -15,6 +15,7 @@ typedef struct { typedef struct { PangoFontDescription *desc; + PangoContext *ctx; int height; int width; int left_pad; @@ -42,6 +43,7 @@ typedef struct { Drawer *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad); +// TODO: Rework the api so that we don't need to pass the window void draw_compute_layout(Drawer *draw, Window *win, GList *btns); void draw_paint(Drawer *draw, Window *win); |
