Source:NetHack 3.4.3/include/xwindow.h

From NetHackWiki
Jump to: navigation, search

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

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

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