From 76484b9c2fc16f9defc76f7c18b29bc644e14d40 Mon Sep 17 00:00:00 2001 From: Jakob Fries Date: Sun, 7 Oct 2007 20:05:55 +0000 Subject: nice gui --- src/engine/interface.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/engine/interface.h') 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); -- cgit 1.4.1