diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-08-05 02:13:13 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-08-05 02:18:38 (EDT) |
commit | 9976dd05a2c5342d62313da1dc3950c521aa2d22 (patch) | |
tree | 670913136e0c067bf9d8abf638fbb30f1a8244f4 /src/tk/widget.h | |
parent | 910c8c55521abc3b8ed415b9d5678e85abb3a408 (diff) | |
download | mazefight-9976dd05a2c5342d62313da1dc3950c521aa2d22.zip mazefight-9976dd05a2c5342d62313da1dc3950c521aa2d22.tar.gz mazefight-9976dd05a2c5342d62313da1dc3950c521aa2d22.tar.bz2 |
tk: Add internal grid constructor
Diffstat (limited to 'src/tk/widget.h')
-rw-r--r-- | src/tk/widget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tk/widget.h b/src/tk/widget.h index 047dd6d..1ac5f46 100644 --- a/src/tk/widget.h +++ b/src/tk/widget.h @@ -21,6 +21,7 @@ #define MFTK_WIDGET_H_ #include <SDL.h> +#include <stdarg.h> struct mftk_widget { int w; @@ -49,6 +50,10 @@ mftk_widget_new(size_t size); t_w = (struct mftk_##name *) w; \ } while (0) +struct mftk_widget * +mftk_grid_new_a(int rows, int cols, int row_spacing, int col_spacing, + struct mftk_widget **children); + enum mftk_check_shape { MFTK_CHECK_SHAPE_BOX, MFTK_CHECK_SHAPE_CIR |