aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-16 00:13:47 +0100
committerFederico Angelilli <code@fedang.net>2024-03-16 00:13:47 +0100
commit121415c252310fe449ab24640f9312a7971305fb (patch)
tree987aaa89451453ed882405e543336f56aa2e37ee /src/draw.h
parent6dab75636d1c30a6b22141d12a01eb7c09c2183f (diff)
Rewrite layout calculation
Diffstat (limited to 'src/draw.h')
-rw-r--r--src/draw.h8
1 files changed, 8 insertions, 0 deletions
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