home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC6.DMS / in.adf / incl.lha / INCLUDE / clib / rct_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-29  |  6.6 KB  |  154 lines

  1. #ifndef RCT_DEFS
  2. #include <rct/rctdef.h>
  3. #endif
  4. #ifndef RCT_PROTOS
  5. #define RCT_PROTOS
  6.  
  7. #ifdef __cplusplus
  8. #define CLIBCPLUSON
  9. #pragma -
  10. #endif
  11.  
  12. /* ************* Prototypen der RCT Library *********** */
  13. /* Die wichtigsten Funktionen im System */
  14.  
  15. APTR      R_InitAppl( struct TagItem *taglist); /* New for V 16 */
  16. APTR      R_InitApplTags( ULONG tag, ...); /* New for V 16 */
  17. SHORT  R_ExitAppl( APTR appladdr); /* New for V 16 */
  18.  
  19.  
  20. /* Allgemeine Ressource-Funktionen */
  21.  
  22. WORD R_ResLoad( APTR appladdr, struct TagItem *taglist);
  23. WORD R_ResLoadTags( APTR appladdr, ULONG tag, ...); 
  24. WORD R_ResFree( APTR appladdr);
  25.  
  26. SHORT R_ChangeAccess( APTR appladdr, struct TagItem *taglist); /* New for V 16 */
  27. SHORT R_ChangeAccessTags( APTR appladdr, ULONG tag, ...); /* New for V 16 */
  28.  
  29. /* Allgemeine Funktionen */
  30. UBYTE R_Raw2Asc( APTR appladdr, struct IntuiMessage *mess); /* New for V 16 */
  31.  
  32. /* Requester Funktionen */
  33.  
  34. WORD      R_ReqCenter( APTR appladdr, void *req, void *win);
  35. WORD      R_ReqDraw( APTR appladdr, void *req, void *win);
  36. WORD      R_ReqEnd( APTR appladdr, void *req, void *win);
  37. void     *R_GetReqStruct( APTR appladdr, void *req, LONG item);
  38. WORD      R_SetReqStruct( APTR appladdr, void *req, LONG item, LONG wert);
  39. WORD      R_SetReqText( APTR appladdr, void *req, LONG id, UBYTE *text);
  40. UBYTE *R_GetReqText( APTR appladdr, void *req, LONG id);
  41. void     *R_GetTextStruct( APTR appladdr, void *req, LONG id, LONG item);
  42. WORD      R_SetTextStruct( APTR appladdr, void *req, LONG id, LONG item, WORD wert);
  43. WORD      R_SetGadText( APTR appladdr, void *req, LONG id, UBYTE *text);
  44. UBYTE *R_GetGadText( APTR appladdr, void *req, LONG id);
  45. void     *R_GetGadStruct( APTR appladdr, void *req, LONG id, LONG item);
  46. WORD      R_SetGadStruct( APTR appladdr, void *req, LONG id, LONG item, LONG wert);
  47. WORD      R_RedrawGadgets( APTR appladdr, void *req, LONG id);
  48. WORD      R_RedrawGad( APTR appladdr, void *req, LONG id, LONG anzahl);
  49. WORD      R_ActiveGad( APTR appladdr, void *req, LONG id);
  50. WORD      R_SetStrGadText( APTR appladdr, void *req, LONG id, UBYTE *text);
  51. UBYTE *R_GetStrGadText( APTR appladdr, void *req, LONG id);
  52. void     *R_GetStrGadStruct( APTR appladdr, void *req, LONG id, LONG item);
  53. WORD      R_SetStrGadStruct( APTR appladdr, void *req, LONG id, LONG item, LONG wert);
  54. WORD      R_SetPropGadStruct( APTR appladdr, void *req, LONG id, LONG item, LONG wert);
  55. void     *R_GetPropGadStruct( APTR appladdr, void *req, LONG id, LONG item);
  56. struct Window     *R_ReqDrawWindow( APTR appladdr, void *req, ULONG scr, UBYTE *titel);
  57. struct Window     *R_GadDrawWindow( APTR appladdr, void *req, ULONG scr, UBYTE *titel, ULONG IDCMP, ULONG Flags);
  58.  
  59.  
  60. /* Menü-Funktionen */
  61.  
  62. WORD      R_OldMenuDraw( APTR appladdr, void *men, ULONG win); /* bitte die Funktion nicht mehr verwenden */
  63.  
  64. WORD      R_MenuDraw( APTR appladdr, void *men, ULONG win, struct TagItem *taglist); /* Besser diese */
  65. WORD      R_MenuDrawTags( APTR appladdr, void *men, ULONG win, ULONG tag1, ...);
  66.  
  67. WORD      R_MenuEnd( APTR appladdr, void *men, ULONG win);
  68. WORD      R_SetMenuTitle( APTR appladdr, void *men, LONG id, UBYTE *text);
  69. UBYTE *R_GetMenuTitle( APTR appladdr, void *men, LONG id);
  70. WORD      R_SetMenuStruct( APTR appladdr, void *men, LONG id, LONG item, void *wert);
  71. WORD      R_GetMenuStruct( APTR appladdr, void *men, LONG id, LONG item);
  72. WORD      R_SetMenuItext( APTR appladdr, void *men, LONG id, LONG nid, UBYTE *text);
  73. UBYTE *R_GetMenuItext( APTR appladdr, void *men, LONG id, LONG nid);
  74. WORD      R_SetMenuItemStruct( APTR appladdr, void *men, LONG id, LONG nid, LONG item, void *wert);
  75. void     *R_GetMenuItemStruct( APTR appladdr, void *men, LONG id, LONG nid, LONG item);
  76. WORD      R_SetMenuStext( APTR appladdr, void *men, LONG id, LONG nid, LONG sid, UBYTE *text);
  77. UBYTE *R_GetMenuStext( APTR appladdr, void *men, LONG id, LONG nid, LONG sid);
  78. WORD      R_SetMenuSubStruct( APTR appladdr, void *men, LONG id, LONG nid, LONG sid, LONG item, void *wert);
  79. void     *R_GetMenuSubStruct( APTR appladdr, void *men, LONG id, LONG nid, LONG sid, LONG item);
  80.  
  81. /* Screen-Funktionen */
  82.  
  83. struct Screen     *R_OldShowScreen( APTR appladdr, LONG mod, LONG depth, UBYTE *tit); /* Diese Funktion ebenfalls nicht mehr benutzen */
  84.  
  85. struct Screen     *R_ShowScreen( APTR parms, struct TagItem *taglist); /* New for V 16 besser diese */
  86. struct Screen     *R_ShowScreenTags( APTR parms, ULONG tag, ...); /* New for V 16 */
  87.  
  88. SHORT  R_RemScreen( APTR appladdr, void *screen);
  89.  
  90. /* Window Funktionen */
  91.  
  92. struct Window     *R_ShowWindow( APTR appladdr, struct TagItem *taglist); /* New for V 16 */
  93. struct Window     *R_ShowWindowTags( APTR appladdr, ULONG tag, ...); /* New for V 16 */
  94. SHORT  R_RemWindow( APTR appladdr, struct Window *window); /* New for V 16 */
  95.  
  96. SHORT  R_SetSysRequest( APTR appladdr, struct Window *wind); /* New for V 16 */
  97. SHORT  R_ResetSysRequest( APTR appladdr); /* New for V 16 */
  98.  
  99. /* Alarm und File-Requester */
  100.  
  101. SHORT  R_FormAlert( APTR appladdr, struct TagItem *taglist);
  102. SHORT  R_FormAlertTags( APTR appladdr, ULONG tag1, ...);
  103.  
  104. SHORT R_Filer( APTR appladdr, struct TagItem *taglist);
  105. SHORT R_FilerTags( APTR appladdr, ULONG tag1, ...);
  106.  
  107. void      R_FilerCacheFree( struct RCTFileRequester *filereq);
  108.  
  109. /* Kopierfunktionen */
  110.  
  111. void     *R_Create( APTR appladdr, ULONG type, struct TagItem *taglist);
  112. void     *R_CreateTags( APTR appladdr, ULONG type, ULONG tag1, ...);
  113. void      R_Destroy( APTR appladdr, APTR pointer);
  114.  
  115. /* Funktionen zur Filterung von Tastatur-Shortcuts */
  116. struct R_IMsg *R_GetMsg( APTR appladdr, struct MsgPort *port);
  117. SHORT R_FilterMsg( APTR appladdr, struct IntuiMessage *imsg, struct R_IMsg *result);
  118. SHORT R_ReplyMsg( APTR appladdr, struct R_IMsg *imsg);
  119.  
  120. /* Der ScreenMode Requester */
  121.  
  122. struct R_ScrModeReq *R_ModeIDReq( APTR appladdr,    struct TagItem *taglist);
  123.  
  124. /* Diese Funktionen bitte nicht mehr verwenden !!! */
  125.  
  126. LONG *R_OldRctLoad( UBYTE *pfad); /* bitte zukünftig nicht mehr verwenden! */
  127. void *R_ResAddr( APTR appladdr, LONG art, LONG id); /* Muß auch nicht mehr verwendet werden */
  128. void  R_WaitMsg(struct MsgPort *port, struct IntuiMessage *mess); /* Die ganze Struktur */
  129. UWORD     R_ReqWaitMsg( APTR appladdr, void *req, ULONG *cl);
  130. WORD      R_OldFormAlert( LONG md, UBYTE *str); /* Auch diese sollte nicht mehr verwendet werden */
  131. WORD      R_OldFiler( struct RCTFileRequester *filereq); /* Und diese auch nicht mehr */
  132.  
  133. /* FontRequester */
  134.  
  135. struct R_FontRequester *R_FontReq( APTR appladdr, struct TagItem *taglist);
  136. struct R_FontRequester *R_FontReqTags( APTR appladdr, ULONG tag1, ...);
  137.  
  138. /* Sonstige Funktionen */
  139.  
  140. void R_SetUserData( APTR appladdr, struct Window *win, APTR UserData);
  141. APTR R_GetUserData( APTR appladdr, struct Window *win);
  142. SHORT R_Localize( APTR appladdr);
  143.  
  144. #ifdef CLIBCPLUSON
  145. #undef CLIBCPLUSON
  146. #pragma +
  147. #endif
  148.  
  149. #ifndef _INCLUDE_PRAGMA_RCT_LIB_H
  150. #include <pragma/rct_lib.h>
  151. #endif
  152.  
  153. #endif
  154.