aboutsummaryrefslogtreecommitdiff
path: root/include/mgui/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgui/widget.h')
-rw-r--r--include/mgui/widget.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/mgui/widget.h b/include/mgui/widget.h
index d425c11..0e77fd2 100644
--- a/include/mgui/widget.h
+++ b/include/mgui/widget.h
@@ -40,10 +40,10 @@ typedef enum {
} mgui_widget_flags;
typedef struct {
- int left;
- int right;
- int top;
- int bottom;
+ uint16_t left;
+ uint16_t right;
+ uint16_t top;
+ uint16_t bottom;
} mgui_margin;
struct mgui_widget {
@@ -52,6 +52,7 @@ struct mgui_widget {
uint8_t alignment; /* mgui_alignment, MGUI_WIDGET_ALIGN_TOP_LEFT by default */
mgui_margin margin;
mgl_vec2i size;
+ void *userdata;
};
void mgui_widget_init(mgui_widget *self, mgui_widget_type type);