#ifndef MGUI_BUTTON_H #define MGUI_BUTTON_H #include #include #include "widget.h" typedef struct { mgui_widget widget; mgl_rectangle background; mgl_text label; } mgui_button; mgui_button* mgui_button_create(); mgui_widget* mgui_button_to_widget(mgui_button *list); mgui_button* mgui_widget_to_button(mgui_widget *widget); void mgui_button_set_position(mgui_button *self, mgl_vec2i position); void mgui_button_on_event(mgui_button *self, mgl_window *window, mgl_event *event); void mgui_button_draw(mgui_button *self, mgl_window *window); #endif /* MGUI_BUTTON_H */