00001 /* SCCS Id: @(#)xwindowp.h 3.4 1992/03/07 */ 00002 /* Copyright (c) Dean Luick, 1992 */ 00003 /* NetHack may be freely redistributed. See license for details. */ 00004 00005 #ifndef _xwindowp_h 00006 #define _xwindowp_h 00007 00008 #include "xwindow.h" 00009 00010 #ifndef SYSV 00011 #define PRESERVE_NO_SYSV /* X11 include files may define SYSV */ 00012 #endif 00013 00014 /* include superclass private header file */ 00015 #include <X11/CoreP.h> 00016 00017 #ifdef PRESERVE_NO_SYSV 00018 # ifdef SYSV 00019 # undef SYSV 00020 # endif 00021 # undef PRESERVE_NO_SYSV 00022 #endif 00023 00024 /* define unique representation types not found in <X11/StringDefs.h> */ 00025 00026 #define XtRWindowResource "WindowResource" 00027 00028 typedef struct { 00029 int empty; 00030 } WindowClassPart; 00031 00032 typedef struct _WindowClassRec { 00033 CoreClassPart core_class; 00034 WindowClassPart window_class; 00035 } WindowClassRec; 00036 00037 extern WindowClassRec windowClassRec; 00038 00039 typedef struct { 00040 /* resources */ 00041 Dimension rows; 00042 Dimension columns; 00043 Pixel foreground; 00044 Pixel black; 00045 Pixel red; 00046 Pixel green; 00047 Pixel brown; 00048 Pixel blue; 00049 Pixel magenta; 00050 Pixel cyan; 00051 Pixel gray; 00052 Pixel orange; 00053 Pixel bright_green; 00054 Pixel yellow; 00055 Pixel bright_blue; 00056 Pixel bright_magenta; 00057 Pixel bright_cyan; 00058 Pixel white; 00059 XFontStruct *font; 00060 XtCallbackList expose_callback; 00061 XtCallbackList input_callback; 00062 XtCallbackList resize_callback; 00063 /* private state */ 00064 /* (none) */ 00065 } WindowPart; 00066 00067 typedef struct _WindowRec { 00068 CorePart core; 00069 WindowPart window; 00070 } WindowRec; 00071 00072 #endif /* _xwindowp_h */