diff options
author | Marvin Borner | 2020-11-22 12:51:10 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-22 12:51:10 +0100 |
commit | 11568b08115cd0a7fe17608599abdc8a80a4ec50 (patch) | |
tree | 82df8168992fe1f938ff41dcbc661981b398ff6a /libgui/inc | |
parent | c0decce503f945ac5883b811443ddca44a7525b9 (diff) |
Added percentage-based GUI system
Diffstat (limited to 'libgui/inc')
-rw-r--r-- | libgui/inc/gui.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgui/inc/gui.h b/libgui/inc/gui.h index ec5da95..8e925d6 100644 --- a/libgui/inc/gui.h +++ b/libgui/inc/gui.h @@ -32,6 +32,8 @@ struct element_event { }; struct element_container { + u32 width; + u32 height; u32 color_bg; enum container_flags flags; }; @@ -52,6 +54,8 @@ struct element_label { struct element_text_box { char *text; + u32 width; + u32 height; u32 color_fg; u32 color_bg; enum font_type font_type; @@ -59,6 +63,7 @@ struct element_text_box { struct element_text_input { char text[MAX_INPUT_LENGTH]; + u32 width; u32 color_fg; u32 color_bg; enum font_type font_type; @@ -70,6 +75,7 @@ struct element { struct context *ctx; // Coordinates are relative to container struct element_event event; void *attributes; + struct element *parent; struct list *childs; void *data; // Who needs static types anyways :) }; |