diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-08-07 14:20:39 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-08-07 14:20:39 (EDT) |
commit | d3783c83f614b3beded3d6a5c528005f480524e3 (patch) | |
tree | db34ff0fd328b53b6201aecc9fbc78a852189171 /src/tk.h | |
parent | a194b1e9ed5d9049a9786ca91340fbae75aa08f6 (diff) | |
download | mazefight-d3783c83f614b3beded3d6a5c528005f480524e3.zip mazefight-d3783c83f614b3beded3d6a5c528005f480524e3.tar.gz mazefight-d3783c83f614b3beded3d6a5c528005f480524e3.tar.bz2 |
tk: Add submit callback to check, radio, and text
Diffstat (limited to 'src/tk.h')
-rw-r--r-- | src/tk.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -64,20 +64,22 @@ struct mftk_widget * mftk_check_new(int butn_width, int butn_padding, SDL_Color *butn_color, SDL_Color *mark_color, int state, int label_padding, TTF_Font *font, const char *text, SDL_Color *text_color, - int (*action)(void *, int), void *user_data, - SDL_Renderer *renderer); + int (*action)(void *, int), int (*submit)(void *), + void *user_data, SDL_Renderer *renderer); struct mftk_widget * mftk_radio_new(int butn_width, int butn_padding, SDL_Color *butn_color, SDL_Color *mark_color, int label_padding, int item_padding, TTF_Font *font, SDL_Color *text_color, - int (*action)(void *, int), void *user_data, - SDL_Renderer *renderer, int state, int options, ...); + int (*action)(void *, int), int (*submit)(void *), + void *user_data, SDL_Renderer *renderer, int state, int options, + ...); struct mftk_widget * mftk_text_new(char min_char, char max_char, int len, const char *val, TTF_Font *font, SDL_Color *color, - int (*action)(void *, const char *), void *user_data); + int (*action)(void *, const char *), int (*submit)(void *), + void *user_data); struct mftk_widget * mftk_blank_new(void); |