home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / xgalaga-2_0_tar.gz / xgalaga-2_0_tar / xgalaga-2.0 / libsprite / struct.h < prev    next >
C/C++ Source or Header  |  1998-04-12  |  1KB  |  78 lines

  1. #ifndef _struct_h_
  2. #define _struct_h_
  3.  
  4. #include <X11/Xlib.h>
  5. #include <X11/Xutil.h>
  6. #include <X11/Xmu/CurUtil.h>
  7. #include <X11/cursorfont.h>
  8. #include <X11/keysym.h>
  9.  
  10. #include <assert.h>
  11. #include <string.h>
  12.  
  13. #ifdef XPM
  14. #ifdef HACKED_XPMLIB
  15. #include "xpmlib-3.4b/xpm.h"
  16. #else 
  17. #include <X11/xpm.h>
  18. #endif /*HACKED_XPMLIB*/
  19. #endif /*XPM [BDyess]*/
  20.  
  21. #include "defs.h"
  22.  
  23. struct fontInfo {
  24.     XFontStruct *fontstruct;
  25.     int     baseline;
  26. };
  27.  
  28. struct colors {
  29.     char   *name;
  30.     GC      contexts[FONTS + NONFONTS];
  31.     Pixmap  pixmap;
  32.     unsigned long pixelValue;
  33. };
  34.  
  35. struct window {
  36.     Window  window;
  37.     W_Window borderwin;
  38.     int     border;
  39.     W_Color border_color;
  40. #ifdef BUFFERING
  41.     Drawable drawable;
  42.     Pixmap  buffer;
  43.     int     isbuffered;
  44. #endif /*BUFFERING [BDyess]*/
  45.     int     type;
  46.     char   *data;
  47.     int     mapped;
  48.     unsigned int width, height;
  49.     char   *name;
  50.     Cursor  cursor;
  51.     int     insensitive;
  52. #if 0
  53.     W_Callback handle_keydown;
  54.     W_Callback handle_keyup;
  55.     W_Callback handle_button;
  56.     W_Callback handle_expose;
  57. #endif                /* 0 */
  58. };
  59.  
  60. struct stringList {
  61.     char   *string;
  62.     W_Color color;
  63.     struct stringList *next;
  64. };
  65.  
  66. struct menuItem {
  67.     char   *string;
  68.     W_Color color;
  69.     W_Font  font;
  70. };
  71.  
  72. struct windowlist {
  73.     struct window *window;
  74.     struct windowlist *next;
  75. };
  76.  
  77. #endif /* _struct_h_ */
  78.