about summary refs log tree commit diff
path: root/src/engine/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/interface.h')
-rw-r--r--src/engine/interface.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/engine/interface.h b/src/engine/interface.h
index 9f0ee144..1ca692d6 100644
--- a/src/engine/interface.h
+++ b/src/engine/interface.h
@@ -83,6 +83,22 @@ typedef struct
 	int player_scores[16];
 } SERVER_INFO;
 
+struct rect
+{
+    float x, y, w, h;
+
+};
+
+struct rect *ui_screen();
+typedef void (*rect_fun)(struct rect *r);
+void ui_foreach_rect(rect_fun fun);
+void ui_scale(float scale);
+void ui_hsplit_t(struct rect *original, int pixels, struct rect *top, struct rect *bottom);
+void ui_hsplit_b(struct rect *original, int pixels, struct rect *top, struct rect *bottom);
+void ui_vsplit_l(struct rect *original, int pixels, struct rect *left, struct rect *right);
+void ui_vsplit_r(struct rect *original, int pixels, struct rect *left, struct rect *right);
+void ui_margin(struct rect *original, int pixels, struct rect *new_rect);
+
 /* image loaders */
 int gfx_load_png(IMAGE_INFO *img, const char *filename);