Source:NetHack 3.4.3/include/xwindowp.h

From NetHackWiki
Jump to: navigation, search

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

  1. /*	SCCS Id: @(#)xwindowp.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 _xwindowp_h
  2. #define _xwindowp_h
  3.  
  4. #include "xwindow.h"
  5.  
  6. #ifndef SYSV
  7. #define PRESERVE_NO_SYSV	/* X11 include files may define SYSV */
  8. #endif
  9.  
  10. /* include superclass private header file */
  11. #include <X11/CoreP.h>
  12.  
  13. #ifdef PRESERVE_NO_SYSV
  14. # ifdef SYSV
  15. #  undef SYSV
  16. # endif
  17. # undef PRESERVE_NO_SYSV
  18. #endif
  19.  
  20. /* define unique representation types not found in <X11/StringDefs.h> */
  21.  
  22. #define XtRWindowResource "WindowResource"
  23.  
  24. typedef struct {
  25. int empty;
  26. } WindowClassPart;
  27.  
  28. typedef struct _WindowClassRec {
  29. CoreClassPart	core_class;
  30. WindowClassPart	window_class;
  31. } WindowClassRec;
  32.  
  33. extern WindowClassRec windowClassRec;
  34.  
  35. typedef struct {
  36. /* resources */
  37. Dimension	   rows;
  38. Dimension	   columns;
  39. Pixel	   foreground;
  40. Pixel	   black;
  41. Pixel	   red;
  42. Pixel	   green;
  43. Pixel	   brown;
  44. Pixel	   blue;
  45. Pixel	   magenta;
  46. Pixel	   cyan;
  47. Pixel	   gray;
  48. Pixel	   orange;
  49. Pixel	   bright_green;
  50. Pixel	   yellow;
  51. Pixel	   bright_blue;
  52. Pixel	   bright_magenta;
  53. Pixel	   bright_cyan;
  54. Pixel	   white;
  55. XFontStruct    *font;
  56. XtCallbackList expose_callback;
  57. XtCallbackList input_callback;
  58. XtCallbackList resize_callback;
  59. /* private state */
  60. /* (none) */
  61. } WindowPart;
  62.  
  63. typedef struct _WindowRec {
  64. CorePart	core;
  65. WindowPart	window;
  66. } WindowRec;
  67.  
  68. #endif /* _xwindowp_h */