From 6dd4c979c40804756ef4d3ca5ac34671c3bcc7e2 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 19 Nov 2023 00:00:44 +0100 Subject: Compute the layout for the buttons --- src/draw.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/draw.h') diff --git a/src/draw.h b/src/draw.h index 481c080..c4f88e6 100644 --- a/src/draw.h +++ b/src/draw.h @@ -3,25 +3,24 @@ #include #include -#include #include "window.h" typedef struct Drawable Drawable; struct Drawable { - PangoFontDescription *desc; int height; int left_pad; int right_pad; int top_pad; double alpha; - GList *btns; + GList *layouts; + PangoFontDescription *desc; }; Drawable *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, double alpha); -void draw_set_buttons(Drawable *draw, GList *btns); +void draw_compute_layout(Drawable *draw, GList *btns, cairo_t *cr); void draw_paint(Drawable *draw, Window *win); -- cgit v1.2.3