OSDN Git Service

import nethack-3.6.0
[jnethack/source.git] / sys / wince / mhmsg.h
1 /* NetHack 3.6  mhmsg.h $NHDT-Date: 1432512800 2015/05/25 00:13:20 $  $NHDT-Branch: master $:$NHDT-Revision: 1.12 $ */
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
21 typedef struct mswin_nhmsg_add_wnd {
22     winid wid;
23 } MSNHMsgAddWnd, *PMSNHMsgAddWnd;
24
25 typedef struct mswin_nhmsg_putstr {
26     int attr;
27     const char *text;
28     boolean append;
29 } MSNHMsgPutstr, *PMSNHMsgPutstr;
30
31 typedef struct mswin_nhmsg_print_glyph {
32     XCHAR_P x;
33     XCHAR_P y;
34     int glyph;
35 } MSNHMsgPrintGlyph, *PMSNHMsgPrintGlyph;
36
37 typedef struct mswin_nhmsg_cliparound {
38     int x;
39     int y;
40 } MSNHMsgClipAround, *PMSNHMsgClipAround;
41
42 typedef struct mswin_nhmsg_add_menu {
43     int glyph;
44     const ANY_P *identifier;
45     CHAR_P accelerator;
46     CHAR_P group_accel;
47     int attr;
48     const char *str;
49     BOOLEAN_P presel;
50 } MSNHMsgAddMenu, *PMSNHMsgAddMenu;
51
52 typedef struct mswin_nhmsg_cursor {
53     int x;
54     int y;
55 } MSNHMsgCursor, *PMSNHMsgCursor;
56
57 typedef struct mswin_nhmsg_end_menu {
58     const char *text;
59 } MSNHMsgEndMenu, *PMSNHMsgEndMenu;
60
61 #endif