aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_ui.h
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-26 16:52:48 -0400
committeriamcheeseman <[email protected]>2026-05-26 16:52:48 -0400
commit9d18177b5cf6488d9591b069e441b0a6b2b9592a (patch)
tree338f395a4ff906443bec68ce873e515be3ce2dc5 /teensy/teensy_ui.h
parent9de6584a9327c7cb1c64f9064d21ef9c1012590e (diff)
add window flag functionality
Diffstat (limited to 'teensy/teensy_ui.h')
-rw-r--r--teensy/teensy_ui.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/teensy/teensy_ui.h b/teensy/teensy_ui.h
index abcf291..c1081d4 100644
--- a/teensy/teensy_ui.h
+++ b/teensy/teensy_ui.h
@@ -7,19 +7,22 @@
#define TYUI_MAX_LAYOUT_SIZE (16)
#define TYUI_DEFAULT_MIN_WINDOW_SIZE (ty_vec2i(32, 32))
-#define TYUI_WIN_NORESIZE (1 << 0)
-#define TYUI_WIN_NOCLOSE (1 << 1)
-#define TYUI_WIN_NOMOVE (1 << 2)
-#define TYUI_WIN_INVISIBLE (1 << 3)
+#define TYUI_WIN_NORESIZEX (1 << 0)
+#define TYUI_WIN_NORESIZEY (1 << 1)
+#define TYUI_WIN_NOCLOSE (1 << 2)
+#define TYUI_WIN_NOMOVE (1 << 3)
+#define TYUI_WIN_NOTITLE (1 << 4)
+#define TYUI_WIN_INVISIBLE (1 << 5)
+#define TYUI_WIN_ALWAYS_BELOW (1 << 6)
// Marks the beginning of a window, with sane defaults.
-#define tyui_begin_window(_title, _rect, _id) \
+#define tyui_begin_window(_title, _rect, _id, ...) \
tyui_begin_window_ex((tyui_Window_Conf){ \
.title = _title, \
.rect = _rect, \
- .min_size = TYUI_DEFAULT_MIN_WINDOW_SIZE, \
.id = _id, \
- .flags = 0, \
+ .min_size = TYUI_DEFAULT_MIN_WINDOW_SIZE, \
+ __VA_ARGS__ \
}, NULL)
// Displays left-aligned, formatted text.