From 1deadc4ac7901e1bc8f2047df580e1c14d7a0144 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 15 Mar 2024 20:38:34 +0100 Subject: Start reworking draw_paint and add per-button line width --- src/draw.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/draw.h') diff --git a/src/draw.h b/src/draw.h index db56946..f68b4ab 100644 --- a/src/draw.h +++ b/src/draw.h @@ -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); -- cgit v1.2.3