Source:NetHack 3.6.1/include/xwindowp.h

From NetHackWiki
Revision as of 09:36, 12 May 2018 by DizzyBot (talk | contribs) (beep boop)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Below is the full text to xwindowp.h from the source code of NetHack 3.6.1. To link to a particular line, write [[Source:NetHack 3.6.1/include/xwindowp.h#line123]], for example.

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.

 /* NetHack 3.6	xwindowp.h	$NHDT-Date: 1432512779 2015/05/25 00:12:59 $  $NHDT-Branch: master $:$NHDT-Revision: 1.8 $ */
 /* Copyright (c) Dean Luick, 1992				  */
 /* NetHack may be freely redistributed.  See license for details. */
 
 #ifndef _xwindowp_h
 #define _xwindowp_h
 
 #include "xwindow.h"
 
 #ifndef SYSV
 #define PRESERVE_NO_SYSV /* X11 include files may define SYSV */
 #endif
 
 /* include superclass private header file */
 #include <X11/CoreP.h>
 
 #ifdef PRESERVE_NO_SYSV
 #ifdef SYSV
 #undef SYSV
 #endif
 #undef PRESERVE_NO_SYSV
 #endif
 
 /* define unique representation types not found in <X11/StringDefs.h> */
 
 #define XtRWindowResource "WindowResource"
 
 typedef struct {
     int empty;
 } WindowClassPart;
 
 typedef struct _WindowClassRec {
     CoreClassPart core_class;
     WindowClassPart window_class;
 } WindowClassRec;
 
 extern WindowClassRec windowClassRec;
 
 typedef struct {
     /* resources */
     Dimension rows;
     Dimension columns;
     Pixel foreground;
     Pixel black;
     Pixel red;
     Pixel green;
     Pixel brown;
     Pixel blue;
     Pixel magenta;
     Pixel cyan;
     Pixel gray;
     Pixel orange;
     Pixel bright_green;
     Pixel yellow;
     Pixel bright_blue;
     Pixel bright_magenta;
     Pixel bright_cyan;
     Pixel white;
     XFontStruct *font;
     XtCallbackList expose_callback;
     XtCallbackList input_callback;
     XtCallbackList resize_callback;
     /* private state */
     /* (none) */
 } WindowPart;
 
 typedef struct _WindowRec {
     CorePart core;
     WindowPart window;
 } WindowRec;
 
 #endif /* _xwindowp_h */