DEADSOFTWARE

menu: draw menus without direct access to sutructures
[flatwaifu.git] / src / menu.h
index b0b292903565b2949b88a87f5eec6a6be84a9eb1..50e5e144717bbe1185625ec0bc96a466a4230bd0 100644 (file)
 #define GM_BEGIN  8 // textfield
 #define GM_END    9 // textfield
 #define GM_CANCEL 10 // textfield
+#define GM_QUERY  11 // menu
+#define GM_GETTITLE 12 // menu
+#define GM_GETENTRY 13 // entry
+#define GM_GETCAPTION 14 // entry
 
 typedef struct new_str_msg_t {
   byte type;
@@ -93,6 +97,9 @@ extern int imax;
 
 extern short lastkey;
 
+int GM_init_int (new_msg_t *msg, int i, int a, int b, int s);
+int GM_init_str (new_msg_t *msg, char *str, int maxlen);
+
 void GM_push (const new_menu_t *m);
 void GM_pop (void);
 void GM_popall (void);