NHDT->ANH, nethack->anethack, nhdat->anhdat
[aNetHack.git] / include / xwindowp.h
blob26805c94c4d0617e2725669530829dd7db47b4bc
1 /* aNetHack 0.0.1 xwindowp.h $ANH-Date: 1432512779 2015/05/25 00:12:59 $ $ANH-Branch: master $:$ANH-Revision: 1.8 $ */
2 /* Copyright (c) Dean Luick, 1992 */
3 /* aNetHack may be freely redistributed. See license for details. */
5 #ifndef _xwindowp_h
6 #define _xwindowp_h
8 #include "xwindow.h"
10 #ifndef SYSV
11 #define PRESERVE_NO_SYSV /* X11 include files may define SYSV */
12 #endif
14 /* include superclass private header file */
15 #include <X11/CoreP.h>
17 #ifdef PRESERVE_NO_SYSV
18 #ifdef SYSV
19 #undef SYSV
20 #endif
21 #undef PRESERVE_NO_SYSV
22 #endif
24 /* define unique representation types not found in <X11/StringDefs.h> */
26 #define XtRWindowResource "WindowResource"
28 typedef struct {
29 int empty;
30 } WindowClassPart;
32 typedef struct _WindowClassRec {
33 CoreClassPart core_class;
34 WindowClassPart window_class;
35 } WindowClassRec;
37 extern WindowClassRec windowClassRec;
39 typedef struct {
40 /* resources */
41 Dimension rows;
42 Dimension columns;
43 Pixel foreground;
44 Pixel black;
45 Pixel red;
46 Pixel green;
47 Pixel brown;
48 Pixel blue;
49 Pixel magenta;
50 Pixel cyan;
51 Pixel gray;
52 Pixel orange;
53 Pixel bright_green;
54 Pixel yellow;
55 Pixel bright_blue;
56 Pixel bright_magenta;
57 Pixel bright_cyan;
58 Pixel white;
59 XFontStruct *font;
60 XtCallbackList expose_callback;
61 XtCallbackList input_callback;
62 XtCallbackList resize_callback;
63 /* private state */
64 /* (none) */
65 } WindowPart;
67 typedef struct _WindowRec {
68 CorePart core;
69 WindowPart window;
70 } WindowRec;
72 #endif /* _xwindowp_h */