ui_tree_table
This commit is contained in:
@@ -12,6 +12,7 @@ struct ui_id_t {
|
||||
|
||||
typedef struct ui_box_flags_t ui_box_flags_t;
|
||||
struct ui_box_flags_t {
|
||||
// :ui_box_flags_t - change those places when modifying this
|
||||
b8 draw_rect: 1;
|
||||
b8 draw_border: 1;
|
||||
b8 draw_text: 1;
|
||||
@@ -79,7 +80,6 @@ struct ui_box_t {
|
||||
s8_t string;
|
||||
v2f32_t string_size;
|
||||
|
||||
ui_box_flags_t flags;
|
||||
b8 created_new;
|
||||
ui_custom_draw_t *custom_draw;
|
||||
ui_lop_t lop;
|
||||
@@ -160,6 +160,7 @@ fn b32 ui_is_focused_box(ui_box_t *box) { return !ui_is_null_box(box) && box->id
|
||||
|
||||
#define UILOC (ui_code_loc_t){.file = __FILE__, .line = __LINE__, .counter = __COUNTER__}
|
||||
#define ui_em(x) ((x) * rn->main_font->size)
|
||||
#define ui_dm(V) ((V) * rn->main_font->computed_xchar_size)
|
||||
#define ui_max 200000000.f
|
||||
#define ui_children_sum 0
|
||||
#define ui_box_flags(...) (ui_box_flag_t){__VA_ARGS__}
|
||||
|
||||
Reference in New Issue
Block a user