5 #include <linmath.h/linmath.h>
6 #include <dragonstd/bintree.h>
7 #include <dragonstd/list.h>
8 #include "client/font.h"
9 #include "client/texture.h"
29 GUIScaleType scale_type;
30 bool affect_parent_scale;
35 } GUIElementDefinition;
37 typedef struct GUIElement
39 GUIElementDefinition def;
44 mat4x4 text_transform;
46 struct GUIElement *parent;
52 void gui_on_resize(int width, int height);
54 GUIElement *gui_add(GUIElement *parent, GUIElementDefinition def);
55 void gui_set_text(GUIElement *element, char *text);
56 void gui_update_transform(GUIElement *element);
58 extern GUIElement gui_root;