Start testing adding an immediate-mode node element

This commit is contained in:
2024-01-17 22:37:27 +00:00
parent 353409a5bf
commit fb1af03308
3 changed files with 63 additions and 1 deletions

View File

@@ -37,6 +37,8 @@ struct ui_ctx {
i64 active;
i64 mouse_x;
i64 mouse_y;
i64 rel_x;
i64 rel_y;
bool mouse_down;
bool mouse_up;
const window_t *wnd;
@@ -47,5 +49,6 @@ void reset_ui_ctx(ui_ctx_t *ctx);
void handle_ui_events(const window_t *wnd, ui_ctx_t *ctx,
const SDL_Event *event);
bool button(const window_t *wnd, ui_ctx_t *ctx, rect_t rect);
rect_t node(const window_t *wnd, ui_ctx_t *ctx, rect_t rect);
#endif // !UI_H