aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-16 21:10:58 +0100
committerFederico Angelilli <code@fedang.net>2024-03-16 21:10:58 +0100
commit4794a57face4e6e521c8a60a120ebf00bbc8a94f (patch)
tree8fe933c87ce176cf0b641e2d17efeda3ca0fa2d2 /src/draw.h
parentfe293d9503a57df0236be85cc82093074e7bbccb (diff)
Add draw_compute_text_size
Diffstat (limited to 'src/draw.h')
-rw-r--r--src/draw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/draw.h b/src/draw.h
index 6851e87..6a14ad1 100644
--- a/src/draw.h
+++ b/src/draw.h
@@ -48,6 +48,8 @@ void draw_paint(Drawer *draw, Window *win);
// TODO: Rework the api so that we don't need to pass the window
void draw_compute_layout(Drawer *draw, Window *win, GList *btns);
+void draw_compute_text_size(Drawer *draw, const char *text, int *text_w, int *text_h);
+
void draw_set_background(Drawer *draw, Color background);
void draw_set_separator(Drawer *draw, int sep);