Refactor UI code into an immediate mode style #1

Merged
abdelrahman merged 10 commits from immediate-mode-ui into main 2024-01-20 22:22:17 +00:00
Showing only changes of commit 93b79aa643 - Show all commits

View File

@ -2,6 +2,7 @@
#define NODES_H
#include "aliases/aliases.h"
#include "ui.h"
#include "window.h"
#define MAX_NODES 1024
@ -24,6 +25,8 @@ union node_data {
};
struct node {
rect_t rect;
ui_elem_colours_t colours;
node_type_t type;
node_data_t data;
};