From 121415c252310fe449ab24640f9312a7971305fb Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sat, 16 Mar 2024 00:13:47 +0100 Subject: Rewrite layout calculation --- src/draw.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/draw.h') diff --git a/src/draw.h b/src/draw.h index f68b4ab..0b1ac95 100644 --- a/src/draw.h +++ b/src/draw.h @@ -16,11 +16,17 @@ typedef struct { typedef struct { PangoFontDescription *desc; int height; + int width; int left_pad; int right_pad; int top_pad; + int sep; Color background; GList *layouts; + // Calculated by draw_compute_layout + GList *layout_end[3]; + int layout_bx[3]; + int layout_width[3]; } Drawer; typedef struct { @@ -42,6 +48,8 @@ void draw_paint(Drawer *draw, Window *win); void draw_set_background(Drawer *draw, Color background); +void draw_set_separator(Drawer *draw, int sep); + void draw_destroy(Drawer *draw); #endif -- cgit v1.2.3