summaryrefslogtreecommitdiffstats
path: root/src/tk.h
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-09-25 13:05:52 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-09-25 13:05:52 (EDT)
commitf1210cea09c85c5c972d691d38b3b59f2cdbb15f (patch)
tree3530b56bf41861ef5e62eeb54ebac0c486f7de7f /src/tk.h
parent3423586ef2741f797c392fcf70e3f0a61cf0b220 (diff)
downloadmazefight-f1210cea09c85c5c972d691d38b3b59f2cdbb15f.zip
mazefight-f1210cea09c85c5c972d691d38b3b59f2cdbb15f.tar.gz
mazefight-f1210cea09c85c5c972d691d38b3b59f2cdbb15f.tar.bz2
tk/text: Replace min_char, max_char with callback
Diffstat (limited to 'src/tk.h')
-rw-r--r--src/tk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tk.h b/src/tk.h
index c83ac9e..598b971 100644
--- a/src/tk.h
+++ b/src/tk.h
@@ -78,6 +78,7 @@ 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, int editable,
+ int (*allowed)(void *, char),
int (*action)(void *, const char *), int (*submit)(void *),
void *user_data);