summaryrefslogtreecommitdiffstats
path: root/src/tk.h
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-05 14:18:09 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-05 14:18:09 (EDT)
commitfa7a4af184162fabb03e90998b0388672fc354d9 (patch)
treea0ffc753c796f9dc38e5fdb5326573e6b89716a8 /src/tk.h
parent9976dd05a2c5342d62313da1dc3950c521aa2d22 (diff)
downloadmazefight-fa7a4af184162fabb03e90998b0388672fc354d9.zip
mazefight-fa7a4af184162fabb03e90998b0388672fc354d9.tar.gz
mazefight-fa7a4af184162fabb03e90998b0388672fc354d9.tar.bz2
tk: Add radio widget
Also fix an #include directive in the grid widget.
Diffstat (limited to 'src/tk.h')
-rw-r--r--src/tk.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tk.h b/src/tk.h
index 31589f8..fa782b2 100644
--- a/src/tk.h
+++ b/src/tk.h
@@ -67,4 +67,11 @@ mftk_check_new(int butn_width, int butn_padding, SDL_Color *butn_color,
int (*action)(void *, int), 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, ...);
+
#endif /* MFTK_H_ */