Source:NetHack 3.6.0/include/xwindowp.h

From NetHackWiki
Jump to: navigation, search

Below is the full text to xwindowp.h from the source code of NetHack 3.6.0. To link to a particular line, write [[Source:NetHack 3.6.0/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.

  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.      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 */