Mercurial
comparison infinite_canvas/dev_ui.h @ 276:b55c22cff335
Add interactive infinite canvas prototype
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 16:57:56 -0700 |
| parents | |
| children | 49e9e591c9bb |
comparison
equal
deleted
inserted
replaced
| 274:c9be578316a6 | 276:b55c22cff335 |
|---|---|
| 1 #ifndef INFINITE_CANVAS_DEV_UI_H | |
| 2 #define INFINITE_CANVAS_DEV_UI_H | |
| 3 | |
| 4 #include "infinite_canvas/canvas.h" | |
| 5 | |
| 6 typedef struct { | |
| 7 int32 selected_type; | |
| 8 boolean dropdown_open; | |
| 9 boolean context_open; | |
| 10 float context_scroll; | |
| 11 float context_content_height; | |
| 12 char context_buffer[CANVAS_CONTEXT_MAX_LENGTH]; | |
| 13 } Canvas_Dev_UI; | |
| 14 | |
| 15 void Canvas_Dev_UI_Init( | |
| 16 Canvas_Dev_UI *p_ui, | |
| 17 Font font, | |
| 18 const Canvas_Theme *p_theme); | |
| 19 boolean Canvas_Dev_UI_Contains_Pointer(const Canvas_Dev_UI *p_ui); | |
| 20 void Canvas_Dev_UI_Draw( | |
| 21 Canvas_Dev_UI *p_ui, | |
| 22 Canvas_Camera *p_camera, | |
| 23 Canvas_Scene *p_scene, | |
| 24 Font font, | |
| 25 Canvas_Theme *p_theme); | |
| 26 | |
| 27 #endif |