add convenience function to add nodes to the UI of the active window

Wed, 10 Apr 2024 19:35:14 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 10 Apr 2024 19:35:14 +0200
changeset 56
428fbb8355eb
parent 55
6b61b4899587
child 57
7daec2f067a9

add convenience function to add nodes to the UI of the active window

src/ascension/ui.h file | annotate | diff | comparison | revisions
--- a/src/ascension/ui.h	Wed Apr 10 19:31:26 2024 +0200
+++ b/src/ascension/ui.h	Wed Apr 10 19:35:14 2024 +0200
@@ -30,5 +30,8 @@
 
 #include "ui/text.h"
 
+#define asc_add_ui_node(node) \
+    asc_scene_node_link(asc_context.active_window->ui, node)
+
 #endif /* ASCENSION_UI_H */
 

mercurial