Source:NetHack 5.0.0/include/xwindow.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to xwindow.h from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/include/xwindow.h#line12]], 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 5.0	xwindow.h	$NHDT-Date: 1596498574 2020/08/03 23:49:34 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.9 $ */
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 <X11/StringDefs.h>
57.  */
58. 
59. #define XtNrows "rows"
60. #define XtNcolumns "columns"
61. #define XtNblack "black"
62. #define XtNred "red"
63. #define XtNgreen "green"
64. #define XtNbrown "brown"
65. #define XtNblue "blue"
66. #define XtNmagenta "magenta"
67. #define XtNcyan "cyan"
68. #define XtNgray "gray"
69. #define XtNorange "orange"
70. #define XtNbright_green "bright_green"
71. #define XtNyellow "yellow"
72. #define XtNbright_blue "bright_blue"
73. #define XtNbright_magenta "bright_magenta"
74. #define XtNbright_cyan "bright_cyan"
75. #define XtNwhite "white"
76. #define XtNexposeCallback "exposeCallback"
77. #define XtNresizeCallback "resizeCallback"
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 */