aboutsummaryrefslogtreecommitdiff
path: root/src/state.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-02-11 00:21:05 +0100
committerFederico Angelilli <code@fedang.net>2024-02-11 00:21:05 +0100
commitf8b372787562aecb2a4a55b336c196f47b5c1b0c (patch)
tree08edce1bd88acdad6b9f2519fa901d359078e44d /src/state.h
parentf459a5088528ecd0a19716ce5a4432c8a86a994a (diff)
Use updated text in draw
There is a caveat: The text should always have the same size and layout as the original one for which the pango layout was calculated
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state.h b/src/state.h
index 5814415..1dedd8e 100644
--- a/src/state.h
+++ b/src/state.h
@@ -20,6 +20,8 @@ State *state_create(Window *win, Drawable *draw);
void state_add_button(State *state, Button *btn);
+void state_remove_button(State *state, Button *btn);
+
void state_redraw(State *state, bool changed_layout);
void state_destroy(State *state);