win32 drawing text

This commit is contained in:
Krzosa Karol
2025-01-08 09:34:53 +01:00
parent 7c282bacb2
commit 189902dae6
17 changed files with 11794 additions and 46 deletions

View File

@@ -72,7 +72,7 @@ ui_box_t *ui_alloc_box(ui_id_t id) {
void ui_init(ma_arena_t *arena) {
assert(ui->box_arena != tcx.temp);
assert(arena != tcx.temp);
ui = ma_push_type(arena, ui_t);
ui->box_arena = arena;
@@ -277,6 +277,7 @@ void ui_end_frame(void) {
}
}
#if 0
void ui_draw(gfx_t *gfx) {
// compute standalone sizes: (pixels, text_content)
for (ui_preorder_iter_t it = ui_iterate_preorder(ui->root); ui_preorder_iter_is_valid(it); ui_iter_advance_preorder(&it)) {
@@ -310,4 +311,5 @@ void ui_draw(gfx_t *gfx) {
ui_box_t *box = it.box;
}
}
}
#endif