1 /* NetHack 3.6 mhmsg.h $NHDT-Date: 1432512811 2015/05/25 00:13:31 $ $NHDT-Branch: master $:$NHDT-Revision: 1.15 $ */ 2 /* Copyright (C) 2001 by Alex Kompel */ 3 /* NetHack may be freely redistributed. See license for details. */ 4 5 #ifndef MHNethackMessages_H 6 #define MHNethackMessages_H 7 8 /* nethack messages */ 9 #define WM_MSNH_COMMAND (WM_APP + 1) 10 11 #define MSNH_MSG_ADDWND 100 12 #define MSNH_MSG_PUTSTR 101 13 #define MSNH_MSG_PRINT_GLYPH 102 14 #define MSNH_MSG_CLEAR_WINDOW 103 15 #define MSNH_MSG_CLIPAROUND 104 16 #define MSNH_MSG_STARTMENU 105 17 #define MSNH_MSG_ADDMENU 106 18 #define MSNH_MSG_CURSOR 107 19 #define MSNH_MSG_ENDMENU 108 20 #define MSNH_MSG_DIED 109 21 #define MSNH_MSG_CARET 110 22 #define MSNH_MSG_GETTEXT 111 23 #define MSNH_MSG_UPDATE_STATUS 112 24 #define MSNH_MSG_RANDOM_INPUT 113 25 26 typedef struct mswin_nhmsg_add_wnd { 27 winid wid; 28 } MSNHMsgAddWnd, *PMSNHMsgAddWnd; 29 30 typedef struct mswin_nhmsg_putstr { 31 int attr; 32 const char *text; 33 int append; 34 } MSNHMsgPutstr, *PMSNHMsgPutstr; 35 36 typedef struct mswin_nhmsg_print_glyph { 37 XCHAR_P x; 38 XCHAR_P y; 39 int glyph; 40 int bkglyph; 41 } MSNHMsgPrintGlyph, *PMSNHMsgPrintGlyph; 42 43 typedef struct mswin_nhmsg_cliparound { 44 int x; 45 int y; 46 } MSNHMsgClipAround, *PMSNHMsgClipAround; 47 48 typedef struct mswin_nhmsg_add_menu { 49 int glyph; 50 const ANY_P *identifier; 51 CHAR_P accelerator; 52 CHAR_P group_accel; 53 int attr; 54 const char *str; 55 BOOLEAN_P presel; 56 } MSNHMsgAddMenu, *PMSNHMsgAddMenu; 57 58 typedef struct mswin_nhmsg_cursor { 59 int x; 60 int y; 61 } MSNHMsgCursor, *PMSNHMsgCursor; 62 63 typedef struct mswin_nhmsg_end_menu { 64 const char *text; 65 } MSNHMsgEndMenu, *PMSNHMsgEndMenu; 66 67 typedef struct mswin_nhmsg_get_text { 68 size_t max_size; 69 char buffer[]; 70 } MSNHMsgGetText, *PMSNHMsgGetText; 71 72 typedef struct mswin_nhmsg_update_status { 73 struct mswin_status_lines * status_lines; 74 } MSNHMsgUpdateStatus, *PMSNHMsgUpdateStatus; 75 76 #endif 77