diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-19 00:00:44 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-19 00:00:44 +0100 |
| commit | 6dd4c979c40804756ef4d3ca5ac34671c3bcc7e2 (patch) | |
| tree | df72dcbcb435f618c109928e88fc36d887e5f220 /src/draw.h | |
| parent | bab8d5a6c2c6d56a97802bd23b2f5e03f0bec417 (diff) | |
Compute the layout for the buttons
Diffstat (limited to 'src/draw.h')
| -rw-r--r-- | src/draw.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -3,25 +3,24 @@ #include <glib.h> #include <pango/pango-font.h> -#include <pango/pango-types.h> #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); |
