aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-16 16:13:44 +0100
committerFederico Angelilli <code@fedang.net>2024-03-16 16:14:25 +0100
commit339f20abbe83da4ac094ae875fdaca9479d28ce6 (patch)
treed8027d63c5bce21b5a092417e785b92e0668a4e1 /src/draw.h
parent115a2b5d2fb0b8b4950c6daa897fbe012b9204b2 (diff)
Create a single pango context in draw_compute_layout
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 0b1ac95..c9de967 100644
--- a/src/draw.h
+++ b/src/draw.h
@@ -15,6 +15,7 @@ typedef struct {
typedef struct {
PangoFontDescription *desc;
+ PangoContext *ctx;
int height;
int width;
int left_pad;
@@ -42,6 +43,7 @@ typedef struct {
Drawer *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad);
+// 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_paint(Drawer *draw, Window *win);