UI: nested groups. not finished

This commit is contained in:
2026-02-20 15:19:52 +02:00
parent 48c2c5946d
commit 8c765191fb
8 changed files with 102 additions and 77 deletions
+6 -5
View File
@@ -16,12 +16,14 @@ typedef struct {
uint32_t is_default : 1;
} group_el_t;
typedef struct {
typedef struct group_el_init_t {
enum w_type type;
uint32_t is_default : 1;
uint32_t is_hidden_value : 1;
bool is_default;
bool is_hidden_value;
char label[DIALOGUE_TITLE];
uint32_t length;
enum g_direction direction;
struct group_el_init_t *children;
} group_el_init_t;
typedef struct {
@@ -38,8 +40,7 @@ typedef struct {
group_t *init_group(WINDOW **win, widget_t *w_parent, group_el_init_t *children,
enum g_direction dir);
void draw_group(WINDOW *win, group_t *group, int32_t active_id,
widget_t *dialog_w);
void draw_group(WINDOW *win, group_t *group, int32_t active_id);
void destroy_group(group_t *group);
void group_default_callback(callback_args_t *args);