Difference between revisions of "Source:NetHack 3.1.0/WindowP.h"
Jump to navigation
Jump to search
m (Automated source code upload) |
Kernigh bot (talk | contribs) m (NetHack 3.1.0/WindowP.h moved to Source:NetHack 3.1.0/WindowP.h: Robot: moved page) |
(No difference)
|
Latest revision as of 05:56, 4 March 2008
Below is the full text to WindowP.h from the source code of NetHack 3.1.0. To link to a particular line, write [[NetHack 3.1.0/WindowP.h#line123]], for example.
Warning! This is the source code from an old release. For the latest release, see Source code
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. /* SCCS Id: @(#)WindowP.h 3.1 92/3/7 */ 2. /* Copyright (c) Dean Luick, 1992 */ 3. /* NetHack may be freely redistributed. See license for details. */ 4. 5. #ifndef _WindowP_h 6. #define _WindowP_h 7. 8. #include "Window.h" 9. /* include superclass private header file */ 10. #include <X11/CoreP.h> 11. 12. /* define unique representation types not found in <X11/StringDefs.h> */ 13. 14. #define XtRWindowResource "WindowResource" 15. 16. typedef struct { 17. int empty; 18. } WindowClassPart; 19. 20. typedef struct _WindowClassRec { 21. CoreClassPart core_class; 22. WindowClassPart window_class; 23. } WindowClassRec; 24. 25. extern WindowClassRec windowClassRec; 26. 27. typedef struct { 28. /* resources */ 29. Dimension rows; 30. Dimension columns; 31. Pixel foreground; 32. Pixel black; 33. Pixel red; 34. Pixel green; 35. Pixel brown; 36. Pixel blue; 37. Pixel magenta; 38. Pixel cyan; 39. Pixel gray; 40. Pixel orange; 41. Pixel bright_green; 42. Pixel yellow; 43. Pixel bright_blue; 44. Pixel bright_magenta; 45. Pixel bright_cyan; 46. Pixel white; 47. XFontStruct *font; 48. XtCallbackList expose_callback; 49. XtCallbackList input_callback; 50. XtCallbackList resize_callback; 51. /* private state */ 52. /* (none) */ 53. } WindowPart; 54. 55. typedef struct _WindowRec { 56. CorePart core; 57. WindowPart window; 58. } WindowRec; 59. 60. #endif /* _WindowP_h */