summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-04 15:09:14 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-04 15:09:14 +0000
commitae4e9076051a736e2bbbce91e7fd58cb27448f24 (patch)
tree13dc16f764fff92b5f47fd75ce135493fa6374dd /src/gui/gui.h
parentdd2d81690185e789d435d5b1839c04bd8e77dea4 (diff)
downloadmana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.gz
mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.bz2
mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.xz
mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.zip
Removed large parts of old GUI code and improved layout of a few dialogs.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index 6aa9be57..f1556898 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -111,32 +111,27 @@ extern gcn::Container* guiTop; // The top container
extern gcn::AllegroGraphics* guiGraphics; // Graphics driver
extern gcn::ImageFont* guiFont; // The gui font
-// Definition of the callback function prototypes
-typedef int (*gui_buttonCallback)(int id);
-typedef char *(*getfuncptr)(int, int *);
-
void init_gui(BITMAP *dest_bitmap, const char *skin);
void gui_exit();
-int gui_update(DIALOG_PLAYER *player);
-int gui_load_skin(const char* skinname);
+int gui_update(DIALOG_PLAYER *player);
+int gui_load_skin(const char* skinname);
void gui_shutdown(void);
-// Helper procedures used for GUI drawing
+/** Helper procedure to draw skinned rectangles */
void draw_skinned_rect(BITMAP*dst, LexSkinnedRect *skin,
int x, int y, int w, int h);
+
+/** Draw text for gui widgets */
int gui_text(BITMAP *bmp, AL_CONST char *s,
int x, int y, int color, int centre);
// Old Allegro GUI procs
int tmw_button_proc(int msg, DIALOG *d, int c);
-int tmw_radio_proc(int msg, DIALOG *d, int c);
-int tmw_list_proc(int msg, DIALOG *d, int c);
int tmw_text_proc(int msg, DIALOG *d, int c);
int tmw_dialog_proc(int msg, DIALOG *d, int c);
-int tmw_plus_proc(int msg, DIALOG *d, int c);
+// Last two remaining Allegro GUI dialogs
void ok(const char *title, const char *message);
unsigned int yes_no(const char *title, const char *message);
-
#endif