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
     1.1 --- a/src/ascension/ui.h	Wed Apr 10 19:31:26 2024 +0200
     1.2 +++ b/src/ascension/ui.h	Wed Apr 10 19:35:14 2024 +0200
     1.3 @@ -30,5 +30,8 @@
     1.4  
     1.5  #include "ui/text.h"
     1.6  
     1.7 +#define asc_add_ui_node(node) \
     1.8 +    asc_scene_node_link(asc_context.active_window->ui, node)
     1.9 +
    1.10  #endif /* ASCENSION_UI_H */
    1.11  

mercurial