#ifndef MGUI_IMAGE_H #define MGUI_IMAGE_H #include "widget.h" #include typedef struct { mgui_widget widget; mgl_sprite sprite; } mgui_image; mgui_image* mgui_image_create(const char *filepath); mgui_widget* mgui_image_to_widget(mgui_image *list); mgui_image* mgui_widget_to_image(mgui_widget *widget); void mgui_image_set_position(mgui_image *self, mgl_vec2i position); void mgui_image_set_width(mgui_image *self, int width); void mgui_image_on_event(mgui_image *self, mgl_window *window, mgl_event *event); /* Returns the size of the widget */ mgl_vec2i mgui_image_draw(mgui_image *self, mgl_window *window); #endif /* MGUI_IMAGE_H */