OSDN Git Service

shrink mine
[nethackexpress/trunk.git] / include / xwindowp.h
1 /*      SCCS Id: @(#)xwindowp.h 3.4     1992/03/07      */
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     XtCallbackList expose_callback;
61     XtCallbackList input_callback;
62     XtCallbackList resize_callback;
63     /* private state */
64     /* (none) */
65 } WindowPart;
66
67 typedef struct _WindowRec {
68     CorePart    core;
69     WindowPart  window;
70 } WindowRec;
71
72 #endif /* _xwindowp_h */