home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 4 / CD_Magazyn_EXEC_nr_4.iso / Recent / dev / c / GSys.lha / gsys / ggraphics / GRequestDisplay.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-30  |  1.3 KB  |  56 lines

  1.  
  2. #ifndef GREQUESTDISPLAY_H
  3. #define GREQUESTDISPLAY_H
  4.  
  5. #ifdef GAMIGA
  6.  
  7. #include <exec/types.h>
  8.  
  9. #ifdef GAMIGA_PPC
  10. #include <powerup/ppcproto/exec.h>
  11. #include <powerup/ppcproto/asl.h>
  12. #else
  13. #include <proto/exec.h>
  14. #include <proto/asl.h>
  15. #endif
  16.  
  17. #endif
  18.  
  19. #define    RD_DESWIDTH    0x00000010    /* Most wanted Width, Height & BitsPerPixel */
  20. #define    RD_DESHEIGHT    0x00000011
  21. #define RD_DESDEPTH    0x00000012
  22. #define RD_MINWIDTH    0x00000020    /* Minumum Width, Height & BitsPerPixel */
  23. #define RD_MINHEIGHT    0x00000021
  24. #define RD_MINDEPTH    0x00000022
  25. #define RD_MAXWIDTH    0x00000030    /* Maximum Width, Height & BitsPerPixel */
  26. #define RD_MAXHEIGHT    0x00000031
  27. #define RD_MAXDEPTH    0x00000032
  28.  
  29. class GRequestDisplay : public GObject
  30. {
  31. public:
  32.     GRequestDisplay(GTagItem *TagList);    //GTagItem *TagList[]);
  33.     ~GRequestDisplay();
  34.     
  35.     BOOL RequestNewDisplayMode(GTagItem *TagList);
  36.  
  37.     class GRequestDisplay *NextGRequestDisplay;
  38.     ULONG Width, Height;    // last selected
  39.     UWORD Depth;
  40.     BOOL Status;    // Was it cancelled(FALSE) or accepted(TRUE) on the last pop-up?
  41. #ifdef GAMIGA
  42.     struct ScreenModeRequester *ScrModeRequester;
  43. #endif
  44. #ifdef GDIRECTX
  45. #endif
  46.  
  47. private:
  48.     ULONG DesWidth, DesHeight;    // these are also the DEFAULT settings, so be careful!
  49.     UWORD DesDepth;
  50.     ULONG MinWidth, MinHeight;
  51.     UWORD MinDepth;
  52.     ULONG MaxWidth, MaxHeight;
  53.     UWORD MaxDepth;
  54. };
  55.  
  56. #endif /* GREQUESTDISPLAY_H */