OSDN Git Service

fix #37913
[jnethack/source.git] / include / xwindowp.h
1 /* NetHack 3.6  xwindowp.h      $NHDT-Date: 1432512779 2015/05/25 00:12:59 $  $NHDT-Branch: master $:$NHDT-Revision: 1.8 $ */
2 /* Copyright (c) Dean Luick, 1992                                 */
3 /* NetHack may be freely redistributed.  See license for details. */
4
5 #ifndef _xwindowp_h
6 #define _xwindowp_h
7
8 #include "xwindow.h"
9
10 #ifndef SYSV
11 #define PRESERVE_NO_SYSV /* X11 include files may define SYSV */
12 #endif
13
14 /* include superclass private header file */
15 #include <X11/CoreP.h>
16
17 #ifdef PRESERVE_NO_SYSV
18 #ifdef SYSV
19 #undef SYSV
20 #endif
21 #undef PRESERVE_NO_SYSV
22 #endif
23
24 /* define unique representation types not found in <X11/StringDefs.h> */
25
26 #define XtRWindowResource "WindowResource"
27
28 typedef struct {
29     int empty;
30 } WindowClassPart;
31
32 typedef struct _WindowClassRec {
33     CoreClassPart core_class;
34     WindowClassPart window_class;
35 } WindowClassRec;
36
37 extern WindowClassRec windowClassRec;
38
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 /* JP: this cannot work because winX11/Window.c does not include config.h */
61 /* #ifdef XI18N*/
62     XFontSet       fontset;
63 /* #endif */
64     XtCallbackList expose_callback;
65     XtCallbackList input_callback;
66     XtCallbackList resize_callback;
67     /* private state */
68     /* (none) */
69 } WindowPart;
70
71 typedef struct _WindowRec {
72     CorePart core;
73     WindowPart window;
74 } WindowRec;
75
76 #endif /* _xwindowp_h */