diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-16 00:13:47 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-16 00:13:47 +0100 |
| commit | 121415c252310fe449ab24640f9312a7971305fb (patch) | |
| tree | 987aaa89451453ed882405e543336f56aa2e37ee /src/draw.h | |
| parent | 6dab75636d1c30a6b22141d12a01eb7c09c2183f (diff) | |
Rewrite layout calculation
Diffstat (limited to 'src/draw.h')
| -rw-r--r-- | src/draw.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
