#ifndef ui_h #define ui_h #include "render.h" #include "rect.h" typedef struct { Font* font; } UI; Rectangle rectcut_left (Rectangle* l, int a); Rectangle rectcut_right (Rectangle* l, int a); Rectangle rectcut_top (Rectangle* l, int a); Rectangle rectcut_bottom(Rectangle* l, int a); Rectangle shrink_rect (const Rectangle* l, int a); Rectangle centre_rect ( const Rectangle* l, const Rectangle* t ); void init_ui(UI* u, Font* f); void ui_begin(UI* u, Rectangle* l); void ui_end(UI* u); int ui_button( UI* u, const Rectangle* l, const char* label ); void ui_label( UI* u, const Rectangle* l, const char* text ); void ui_container( UI* u, const Rectangle* l, Rectangle* r, const Rectangle* c ); #endif