summaryrefslogtreecommitdiffstats
path: root/src/tk.h
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-06 20:04:00 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-06 20:11:00 (EDT)
commit6a45a31b8b7e1a88dc5b6354f12ad40ea43e7dd3 (patch)
tree1f61d2c05336e8ef47f9458e786e64b9affa6d6d /src/tk.h
parenta88d71431d4a41a10df3c0a9baa4223688bbc50b (diff)
downloadmazefight-6a45a31b8b7e1a88dc5b6354f12ad40ea43e7dd3.zip
mazefight-6a45a31b8b7e1a88dc5b6354f12ad40ea43e7dd3.tar.gz
mazefight-6a45a31b8b7e1a88dc5b6354f12ad40ea43e7dd3.tar.bz2
tk: Add text widget event callback
Diffstat (limited to 'src/tk.h')
-rw-r--r--src/tk.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tk.h b/src/tk.h
index c7c5a51..28533e9 100644
--- a/src/tk.h
+++ b/src/tk.h
@@ -76,7 +76,8 @@ mftk_radio_new(int butn_width, int butn_padding, SDL_Color *butn_color,
struct mftk_widget *
mftk_text_new(char min_char, char max_char, int len, const char *val,
- TTF_Font *font, SDL_Color *color);
+ TTF_Font *font, SDL_Color *color,
+ int (*action)(void *, const char *), void *user_data);
struct mftk_widget *
mftk_blank_new(void);