home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / boopsi / screenmodeclass / include / screenmodeclass.h
C/C++ Source or Header  |  1977-12-31  |  3KB  |  95 lines

  1. #ifndef SCREENMODECLASS_H
  2. #define SCREENMODECLASS_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif
  7.  
  8. #ifndef EXEC_MEMORY_H
  9. #include <exec/memory.h>
  10. #endif
  11.  
  12. #ifndef INTUITION_CLASSES_H
  13. #include <intuition/classes.h>
  14. #endif
  15.  
  16. #ifndef INTUITION_GADGETCLASS_H
  17. #include <intuition/gadgetclass.h>
  18. #endif
  19.  
  20. #ifndef LIBRARIES_ASL_H
  21. #include <libraries/asl.h>
  22. #endif
  23.  
  24. #ifndef UTILITY_TAGITEM_H
  25. #include <libraries/utility.h>
  26. #endif
  27.  
  28. /*
  29. **      Methods
  30. **/
  31. #define SMC_MB                      (0x3000)
  32.  
  33. #define SMC_DOREQUEST               (SMC_MB+1)
  34.  
  35.  
  36.  
  37. /*
  38. **      Tags
  39. **/
  40. #define SMC_TB                      (TAG_USER+0x30000)
  41.  
  42.  
  43. #define SMC_InitialInfoPos          (SMC_TB+1)                  /* I---- */
  44.     /* SMC_INFOPOS_TopLeft, SMC_INFOPOS_TopRight */
  45.  
  46. #define SMC_InfoPosArround          (SMC_TB+2)                  /* I---- */
  47.  
  48. #define SMC_DisplayID               (SMC_TB+3)                  /* --G-- */
  49. #define SMC_DisplayWidth            (SMC_TB+4)                  /* --G-- */
  50. #define SMC_DisplayHeight           (SMC_TB+5)                  /* --G-- */
  51. #define SMC_DisplayDepth            (SMC_TB+6)                  /* --G-- */
  52. #define SMC_OverscanType            (SMC_TB+7)                  /* --G-- */
  53. #define SMC_AutoScroll              (SMC_TB+8)                  /* --G-- */
  54.  
  55. #define SMC_ReqLeftEdge             (SMC_TB+9)                  /* --G-- */
  56. #define SMC_ReqTopEdge              (SMC_TB+10)                  /* --G-- */
  57. #define SMC_ReqWidth                (SMC_TB+11)                 /* --G-- */
  58. #define SMC_ReqHeight               (SMC_TB+12)                 /* --G-- */
  59.  
  60. #define SMC_InfoLeftEdge            (SMC_TB+13)                 /* --G-- */
  61. #define SMC_InfoTopEdge             (SMC_TB+14)                 /* --G-- */
  62. #define SMC_InfoWidth               (SMC_TB+15)                 /* --G-- */
  63. #define SMC_InfoHeight              (SMC_TB+16)                 /* --G-- */
  64.  
  65. #define SMC_GUI_MODES               (SMC_TB+17)                 /* IS--- */
  66. #define SMC_ControlMinSize          (SMC_TB+18)                 /* IS--- */
  67.  
  68.  
  69. /* Value for SCRM_InitialInfoPos tag */
  70. /* Position relative from ScreenMode Requester */
  71. #define SMC_INFOPOS_TopLeft             (1)
  72. #define SMC_INFOPOS_TopRight            (2)
  73.  
  74.  
  75. /*
  76. **      Possible errors
  77. **/
  78. #define SMCERR_OUT_OF_MEMORY            (1L)
  79.  
  80.  
  81. /*
  82. **      Macros
  83. **/
  84. #define ScreenModeReq( Obj )      DoMethod( Obj, SMC_DOREQUEST )
  85.  
  86.  
  87. /*
  88. **      Class routine protos
  89. **/
  90. extern Class *InitScreenModeClass( void );
  91. extern BOOL FreeScreenModeClass( Class *cl );
  92.  
  93. #endif
  94.  
  95.