diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-16 21:10:58 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-16 21:10:58 +0100 |
| commit | 4794a57face4e6e521c8a60a120ebf00bbc8a94f (patch) | |
| tree | 8fe933c87ce176cf0b641e2d17efeda3ca0fa2d2 /src/draw.h | |
| parent | fe293d9503a57df0236be85cc82093074e7bbccb (diff) | |
Add draw_compute_text_size
Diffstat (limited to 'src/draw.h')
| -rw-r--r-- | src/draw.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
