home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 199.lha / GimmeLib / window.h < prev   
C/C++ Source or Header  |  1988-12-27  |  1KB  |  42 lines

  1. #ifndef GIMMELIB_WINDOW_H
  2. #define GIMMELIB_WINDOW_H
  3.  
  4. #ifdef I_AM_WINDOW
  5. #define GNW_DETAIL_PEN        -1        /* use default */
  6. #define GNW_BLOCK_PEN        -1        /* use default */
  7. #define GNW_MIN_WIDTH        30
  8. #define GNW_MIN_HEIGHT        20
  9. #endif I_AM_WINDOW
  10.  
  11.  
  12. /* these IDCMP flags can be or'd into the window types below */
  13. #define IDCMP_SYS_GADG    (CLOSEWINDOW | NEWSIZE)
  14. #define IDCMP_MOUSE    (MOUSEMOVE)
  15. #define IDCMP_GADGETS    (GADGETUP | GADGETDOWN)
  16.  
  17. /* mutually exclusive types of window IDCMP */
  18. #define IDCMP_SIMPLE    (IDCMP_SYS_GADG | ACTIVEWINDOW | REFRESHWINDOW)
  19. #define IDCMP_SMART    (IDCMP_SIMPLE)
  20. #define IDCMP_VSMART    ((IDCMP_SMART & ~REFRESHWINDOW))
  21. #define IDCMP_MENUWIN    (IDCMP_VSMART | MENUPICK)
  22.  
  23.  
  24. /* these flags can be or'd into the window types below */
  25. #define FLAGS_SYS_GADG    (WINDOWCLOSE | WINDOWDRAG | WINDOWDEPTH | WINDOWSIZING)
  26. #define FLAGS_MOUSE    (REPORTMOUSE)
  27. #define FLAGS_GADGETS    (SIZEBRIGHT | SIZEBBOTTOM)
  28.  
  29. /* mutually exclusive types of window flags */
  30. #define FLAGS_SIMPLE    (FLAGS_SYS_GADG | SIMPLE_REFRESH | RMBTRAP)
  31. #define FLAGS_SMART    ((FLAGS_SIMPLE & ~REFRESHBITS) | SMART_REFRESH)
  32. #define FLAGS_VSMART    (FLAGS_SMART | NOCAREREFRESH)
  33. #define FLAGS_MENUWIN    ((FLAGS_VSMART & ~RMBTRAP))
  34.  
  35.  
  36. /* defaults use by some gimme Window/Screen routines */
  37. #define IDCMP_DEFAULT    ((IDCMP_MENUWIN & ~NEWSIZE) | MENUPICK)
  38. #define FLAGS_DEFAULT    ((FLAGS_MENUWIN & ~FLAGS_SYS_GADG) | WINDOWCLOSE \
  39.                 | BACKDROP | BORDERLESS | ACTIVATE)
  40.  
  41. #endif !GIMMELIB_WINDOW_H
  42.