Source:NetHack 3.2.0/WindowP.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to WindowP.h from the source code of NetHack 3.2.0. To link to a particular line, write [[NetHack 3.2.0/WindowP.h#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1.    /*	SCCS Id: @(#)WindowP.h	3.2	92/03/07	*/
2.    /* Copyright (c) Dean Luick, 1992				  */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef _WindowP_h
6.    #define _WindowP_h
7.    
8.    #include "Window.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 /* _WindowP_h */