diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-15 20:38:34 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-15 20:38:34 +0100 |
| commit | 1deadc4ac7901e1bc8f2047df580e1c14d7a0144 (patch) | |
| tree | b176f5374f0be400df9c2fd7a1ceacee75aa6004 /src/draw.h | |
| parent | b84dd0ebddd7a40f7adc427ac85e3a65134e30be (diff) | |
Start reworking draw_paint and add per-button line width
Diffstat (limited to 'src/draw.h')
| -rw-r--r-- | src/draw.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -19,7 +19,6 @@ typedef struct { int left_pad; int right_pad; int top_pad; - int line_w; Color background; GList *layouts; } Drawer; @@ -30,10 +29,12 @@ typedef struct { int width, height; int text_w, text_h; int x_pad, y_pad; + int line_w; PangoLayout *pl; + GList *children; } Layout; -Drawer *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, int line_w); +Drawer *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad); void draw_compute_layout(Drawer *draw, Window *win, GList *btns); |
