Source:NetHack 3.4.0/xwindow.h

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

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

1.   /*	SCCS Id: @(#)xwindow.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 _xwindow_h 6.   #define _xwindow_h 7.    8.    /****************************************************************  9.     *  10.    * Window widget 11.   *  12.    ****************************************************************/  13.    14.   /* Resources: 15.   16.    Name		     Class		RepType		Default Value 17.   		     -		---		-  18.    background	     Background		Pixel		XtDefaultBackground 19.   border		     BorderColor	Pixel		XtDefaultForeground 20.   borderWidth	     BorderWidth	Dimension	1 21.   destroyCallback     Callback		Pointer		NULL 22.   height		     Height		Dimension	0 23.   mappedWhenManaged   MappedWhenManaged	Boolean		True 24.   sensitive	     Sensitive		Boolean		True 25.   width		     Width		Dimension	0 26.   x		     Position		Position	0 27.   y		     Position		Position	0 28.   29.    rows		     Width		Dimension	21 30.   columns	     Height		Dimension	80 31.   foreground	     Color		Pixel		XtDefaultForeground 32.   33.    black		     Color		Pixel		"black" 34.   red		     Color		Pixel		"red" 35.   green		     Color		Pixel		"pale green" 36.   brown		     Color		Pixel		"brown" 37.   blue		     Color		Pixel		"blue" 38.   magenta	     Color		Pixel		"magenta" 39.   cyan		     Color		Pixel		"light cyan" 40.   gray		     Color		Pixel		"gray" 41.   //no color// 42.   orange		     Color		Pixel		"orange" 43.   bright_green	     Color		Pixel		"green" 44.   yellow		     Color		Pixel		"yellow" 45.   bright_blue	     Color		Pixel		"royal blue" 46.   bright_magenta      Color		Pixel		"violet" 47.   bright_cyan	     Color		Pixel		"cyan" 48.   white		     Color		Pixel		"white" 49.   50.    font		     Font		XFontStruct*	XtDefaultFont 51.   exposeCallback      Callback		Callback	NULL 52.   callback	     Callback		Callback	NULL 53.   resizeCallback      Callback		Callback	NULL 54.  */  55.    56.   /* define any special resource names here that are not in  */ 57.   58.   #define XtNrows			"rows" 59.  #define XtNcolumns		"columns" 60.  #define XtNblack		"black" 61.  #define XtNred			"red" 62.  #define XtNgreen		"green" 63.  #define XtNbrown		"brown" 64.  #define XtNblue			"blue" 65.  #define XtNmagenta		"magenta" 66.  #define XtNcyan			"cyan" 67.  #define XtNgray			"gray" 68.  #define XtNorange		"orange" 69.  #define XtNbright_green		"bright_green" 70.  #define XtNyellow		"yellow" 71.  #define XtNbright_blue		"bright_blue" 72.  #define XtNbright_magenta	"bright_magenta" 73.  #define XtNbright_cyan		"bright_cyan" 74.  #define XtNwhite		"white" 75.  #define XtNexposeCallback	"exposeCallback" 76.  #define XtNresizeCallback	"resizeCallback" 77.   78.    79.   extern XFontStruct *WindowFontStruct(/* Widget */); 80.  extern Font WindowFont(/* Widget */); 81.   82.   #define XtCWindowResource "WindowResource" 83.  #define XtCRows			"Rows" 84.  #define XtCColumns		"Columns" 85.   86.   /* declare specific WindowWidget class and instance datatypes */ 87.   88.   typedef struct _WindowClassRec	*WindowWidgetClass; 89.  typedef struct _WindowRec	*WindowWidget; 90.   91.   /* declare the class constant */ 92.   93.   extern WidgetClass windowWidgetClass; 94.   95.   #endif /* _xwindow_h */