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

  1. #ifndef GIMMELIB_FUNCTIONS_H
  2. #define GIMMELIB_FUNCTIONS_H
  3.  
  4. #include <exec/types.h>
  5. #include <intuition/intuition.h>
  6. #include <exec/memory.h>
  7. #ifdef AZTEC_C
  8. #include <functions.h>
  9. #endif AZTEC_C
  10.  
  11. /* short defines for system structs used below */
  12. #include "gimmelib/gimshortdefs.h"
  13.  
  14. /* these ones have custom structs */
  15. #include "gimmelib/sound.h"
  16. #include "gimmelib/picture.h"
  17. #include "gimmelib/graph.h"
  18. #include "gimmelib/communic.h"
  19.  
  20.  
  21. /* bitmap.c */
  22. BITMAP *    gimmeBitMap(/*  SHORT depth, SHORT width, SHORT height  */);
  23. short        getRidOfBitMap(/*  BITMAP*  */);
  24.  
  25. /* bitplane.c (bitplane.h) */
  26. ULONG        gimmeBitPlanes(/*  BITMAP*, ULONG myflags  */);
  27. short        getRidOfBitPlanes(/*  BITMAP*, ULONG myflags  */);
  28.  
  29. /* color.c (color.h) */
  30. USHORT *    getDefaultColors();
  31. short        setColors(/*  SCREEN*, USHORT* ctable, SHORT colors  */);
  32. short        checkColors(/*  SCREEN*, SHORT colors */);
  33.  
  34. /* communic.c (communic.h) */
  35. short        c_init();
  36. short        c_done();
  37. short        c_open(/*  SERPARMS*  */);
  38. short        c_setup(/*  SERPARMS*  */);
  39. short        c_close();
  40. short        c_emptyc();
  41. short        c_getc(/*  char*  */);
  42. short        c_gets(/*  char*, SHORT num  */);
  43. short        c_getline(/*  char*, SHORT num  */);
  44. short        c_setEOL(/*  char  */);
  45. short        c_putc(/*  char  */);
  46. short        c_puts(/*  char*, SHORT num  */);
  47.  
  48. /* copystuff.c (copystuff.h) */
  49. BORDER *    copyBorder(/*  void** memheadptr, BORDER*, SHORT numbord,
  50.                 ULONG myflags  */);
  51. IMAGE *     copyImage(/*  void** memheadptr, IMAGE*, SHORT numimage,
  52.                 ULONG myflags  */);
  53. short        copyDataImage(/*  USHORT* srcdata, IMAGE*  */);
  54. short        copyImageData(/*  IMAGE*, USHORT* destdata  */);
  55. ITEXT *     copyIntuiText(/*  void** memheadptr, ITEXT*, SHORT numitext,
  56.                 ULONG myflags  */);
  57. MENU *        copyMenu(/*  void** memheadptr, MENU*, SHORT nummenu, SHORT numitem,
  58.                 SHORT numsub, ULONG myflags  */);
  59. MENUITEM *  copyMenuItem(/*  void** memheadptr, MENU*, SHORT numitem,
  60.                 SHORT numsub, ULONG myflags  */);
  61.  
  62. /* dbuf.c (minterm.h) */
  63. short        makeDBuf(/*  SCREEN*, BITMAP** bmptr  */);
  64. short        unmakeDBuf(/*  SCREEN*, BITMAP** bmptr, BITMAP*  */);
  65. short        swapDBuf(/*  SCREEN*, SHORT minterm  */);
  66.  
  67. /* dbufquick.c (minterm.h) */
  68. short        makeDBufQuick(/*  SCREEN*, BITMAP** bmptr, CPRLIST** lcpr,
  69.                 CPRLIST** scpr    */);
  70. short        unmakeDBufQuick(/*  SCREEN*, BITMAP** bmptr, BITMAP*,
  71.                 CPRLIST** lcpr, CPRLIST** scpr    */);
  72. short        swapDBufQuick(/*  SCREEN*, SHORT minterm, CPRLIST** lcpr,
  73.                 CPRLIST** scpr    */);
  74.  
  75. /* dbufvquick.c (minterm.h) */
  76. short        makeDBufVQuick(/*  SCREEN*, BITMAP** bmptr  */);
  77. short        unmakeDBufVQuick(/*  SCREEN*, BITMAP** bmptr, BITMAP*  */);
  78. short        swapDBufVQuick(/*  SCREEN*, SHORT minterm  */);
  79.  
  80. /* dualpf.c */
  81. short        makeDualPlayfield(/*  SCREEN*, RASINFO*, SHORT depth  */);
  82. short        unmakeDualPlayfield(/*  SCREEN*  */);
  83.  
  84. /* font.c */
  85. TEXTFONT *  gimmeFont(/*  TEXTATTR*  */);
  86. TEXTFONT *  gimmeFontLazy(/*  UBYTE *name, UWORD size  */);
  87. short        getRidOfFont(/*  TEXTFONT*  */);
  88.  
  89. /* gadget.c (gadget.h) */
  90. GADGET *    gimmeBoolGadget(/*  WINDOW*, USHORT id, SHORT left, SHORT top,
  91.                 SHORT xsize, SHORT ysize, UBYTE* s, UBYTE* s2,
  92.                 TEXTATTR*, ULONG myflags  */);
  93. GADGET *    gimmeBoolImageGadget(/*  WINDOW*, USHORT id, SHORT left, SHORT top,
  94.                 SHORT depth, SHORT width, SHORT height,
  95.                 ULONG myflags, SHORT dep2, SHORT wid2,
  96.                 SHORT ht2  */);
  97. GADGET *    gimmePropGadget(/*  WINDOW*, USHORT id, SHORT left, SHORT top,
  98.                 SHORT xsize, SHORT ysize, UBYTE* label,
  99.                    TEXTATTR*, ULONG activflags, ULONG propflags  */);
  100. PROPINFO *  gimmePropInfo(/*  void** memheadptr, ULONG flags  */);
  101. GADGET *    gimmeStringGadget(/*  WINDOW*, USHORT id, SHORT left, SHORT top,
  102.                 SHORT width, SHORT maxbuf, UBYTE* initstr,
  103.                 UBYTE* label, TEXTATTR*, ULONG activflags  */);
  104. STRINGINFO *gimmeStringInfo(/*  void** memheadptr, SHORT bufsize, UBYTE *s,
  105.                 ULONG flags  */);
  106. short        getRidOfGadgets(/*  GADGET* firstgadget  */);
  107.  
  108. /* gadgstuff.c */
  109. short        clearGadgets(/*  GADGET* firstgadget, WINDOW*, REQUESTER*,
  110.                 SHORT numgad  */);
  111. short        toggleBoolGadget(/*  WINDOW*, GADGET*, REQUESTER*  */);
  112. GADGET *    findGadget(/*  GADGET*, USHORT id  */);
  113. GADGET *    findMyFirstGadget(/*  WINDOW*, USHORT id  */);
  114.  
  115. /* graph.c (graph.h) */
  116. GRAPH *     gimmeGraph(/*  NEWGRAPH*, BITMAP*, AREAINFO*, TMPRAS*  */);
  117. short        getRidOfGraph(/*  GRAPH*  */);
  118. VOID        clearGraph(/*  GRAPH*  */);
  119. VOID        resetGraph(/*  GRAPH*  */);
  120. VOID        drawGraphAxesOnly(/*  GRAPH*  */);
  121. SHORT        drawGraphAxes(/*  GRAPH*  */);
  122. VOID        drawGraphTitle(/*  GRAPH*, SHORT xoff, SHORT yoff,
  123.                 ULONG myflags  */);
  124. VOID        drawGraphXtitle(/*  GRAPH*, SHORT xoff, SHORT yoff,
  125.                 ULONG myflags  */);
  126. VOID        drawGraphYtitle(/*  GRAPH*, SHORT xoff, SHORT yoff,
  127.                 ULONG myflags  */);
  128. SHORT        graphWriteLabel(/*  GRAPH*, ULONG myflags, SHORT first, SHORT last,
  129.                 SHORT step  */);
  130. VOID        addToGraph(/*  GRAPH*, x, y  */);
  131.  
  132. /* inputhand.c */
  133. IOSTDREQ *  addInputHandler(/*  void (*handler)(), APTR data, BYTE pri,
  134.                 UBYTE* name  */);
  135. short        removeInputHandler(/*  IOSTDREQ*  */);
  136.  
  137. /* intuistuff.c */
  138. BORDER *    gimmeBorder(/*  void** memheadptr, SHORT xsize, SHORT ysize  */);
  139. IMAGE *     gimmeImage(/*  void** memheadptr, SHORT depth, SHORT width,
  140.                 SHORT height  */);
  141. ITEXT *     gimmeIntuiText(/*  void** memheadptr, UBYTE *s, TEXTATTR*,
  142.                 SHORT optwidth    */);
  143.  
  144. /* keyboard.c */
  145. SHORT        deadKeyConvert(/*  IMSG, UBYTE* buf, USHORT size, KEYMAP*  */);
  146.  
  147. /* menu.c */
  148. MENU *        gimmeMenu(/*  void** memheadptr, SHORT left, SHORT width,
  149.                 UBYTE* name, ULONG flags  */);
  150. MENUITEM *  gimmeMenuItem(/*  void** memheadptr, SHORT left, SHORT width,
  151.                 SHORT height, BYTE command, UBYTE* name,
  152.                 TEXTATTR* textattr, ULONG flags  */);
  153.  
  154. /* menustuff.c (menustuff.h) */
  155. ULONG        addMenuItem(/*  MENU*, MENUITEM*, SHORT positem, SHORT possub,
  156.                 SHORT numitem, ULONG myflags  */);
  157. MENUITEM *  removeMenuItem(/*  MENU *, MENUITEM*, SHORT positem, SHORT possub,
  158.                 SHORT numitem, ULONG myflags  */);
  159. ULONG        addMenu(/*  MENU** menuptr, MENU*, SHORT posmenu,
  160.                 SHORT nummenu, ULONG myflags  */);
  161. MENU *        removeMenu(/*  MENU** menuptr, MENU*, SHORT posmenu,
  162.                 SHORT nummenu, ULONG myflags  */);
  163. short        adjustMenuLefts(/*  MENU* menu, MENU* stop, SHORT leftedge,
  164.                 ULONG myflags  */);
  165. short        adjustMenuItems(/*  ITEM* item, ITEM* stop, SHORT topedge,
  166.                 SHORT meposition, ULONG myflags  */);
  167.  
  168. /* memchain.c */
  169. void *        chainAllocMem(/*  void** memheadptr, ULONG size, ULONG flags  */);
  170. VOID        chainFreeMem(/*  void* memhead  */);
  171. short        linkChainMem(/*  void** memheadptr, void* memhead  */);
  172. short        pluckChainMem(/*  void** memheadptr, void* memory  */);
  173.  
  174. /* message.c */
  175. MESSAGE *   gimmeMessage(/*  ULONG size, MSGPORT*  */);
  176. short        getRidOfMessage(/*  MESSAGE*  */);
  177.  
  178. /* picture.c (picture.h) */
  179. PICTURE *   gimmePicture(/*  UBYTE* filename, ULONG myflags  */);
  180. short        getRidOfPicture(/*  PICTURE*  */);
  181. short        positionPicture(/*  RASTPORT*, ULONG myflags, PICTURE*,
  182.                 SHORT minterm, SHORT x, SHORT y  */);
  183. short        usePictureColors(/*  PICTURE*, SCREEN*  */);
  184.  
  185. /* postext.c (postext.h) */
  186. SHORT        positionText(/*  RASTPORT*, ULONG myflags, UBYTE* s, LONG num,
  187.                 SHORT x, SHORT y  */);
  188.  
  189. /* requester.c (requester.h) */
  190. SHORT        gimmeAutoRequest(/*  WINDOW*, UBYTE* string, TEXTATTR*  */);
  191. REQUESTER * gimmeRequester(/*  void** memheadptr, SHORT left, SHORT top,
  192.             SHORT width, SHORT height, UBYTE backfill,
  193.             GADGET* gplist, UBYTE *s, TEXTATTR*, ULONG flags  */);
  194.  
  195. /* screen.c */
  196. NEWSCREEN * gimmeNewScreen(/*  ULONG modes, ULONG type, SHORT depth,
  197.                 UBYTE* title, TEXTATTR*  */);
  198. short        getRidOfNewScreen(/*  NEWSCREEN*  */);
  199. SCREEN *    gimmeScreen(/*  NEWWINDOW*, WINDOW** winptr, SHORT depth,
  200.                 ULONG IDCMPflags, ULONG winflags  */);
  201. SCREEN *    gimmeScreenLazy(/*  NEWWINDOW*, WINDOW** winptr, SHORT depth  */);
  202. short        getRidOfScreen(/*  SCREEN*, WINDOW*  */);
  203. short        lowerScreen(/*  SCREEN*, SHORT toheight  */);
  204. short        raiseScreen(/*  SCREEN*, SHORT toheight  */);
  205.  
  206. /* scrollbar.c (scrollbar.h) */
  207. GADGET *    gimmeFullScrollBar(/*  WINDOW*, USHORT id, ULONG propflags,
  208.                 ULONG myflags, USHORT id1, USHORT id2  */);
  209. GADGET *    gimmeScrollBar(/*  WINDOW*, USHORT id, ULONG propflags,
  210.                 ULONG myflags  */);
  211. GADGET *    gimmeOneScroll(/*  WINDOW*, USHORT id, ULONG dirflags,
  212.                 ULONG myflags  */);
  213.  
  214. /* sound.c (sound.h) */
  215. SOUND *     gimmeSound(/*  UBYTE* filename  */);
  216. short        getRidOfSound(/*  SOUND*  */);
  217.  
  218. /* stdstuff.c (stdstuff.h) */
  219. ULONG        gimmeStdStuff(/*  ULONG myflags, SHORT rev  */);
  220. ULONG        getRidOfStdStuff(/*  ULONG myflags  */);
  221.  
  222. /* subtinit.c */
  223. short        initSubTasker(/*  SHORT*, MSGPORT**  */);
  224. short        doneSubTasker(/*  SHORT*, MSGPORT**  */);
  225. SHORT        handleSpecialSubTaskMsg(/*  SHORT*, MSGPORT**  */);
  226. short        doPrintf(/*  MSGPORT* dosport, MSGPORT* replyport, UBYTE* s,
  227.                 LONG p1, LONG p2, double p3, double p4    */);
  228.  
  229. /* subtask.c */
  230. TASK *        gimmeSubTask(/*  SHORT*, MSGPORT**, LONG stacksize, LONG datasize,
  231.                 MSGPORT** myportptr  */);
  232. VOID        undoGimmeSubTask(/*  TASK*  */);
  233. short        startSubTask(/*  TASK*, char* name, BYTE pri,
  234.                 void (*initialpc)(), void (*finalpc)()  */);
  235. VOID        killSubTask(/*  SHORT*, MSGPORT**, TASK*  */);
  236.  
  237. /* timer.c */
  238. TIMEREQ *   accessTimer(/*  ULONG unit, MSGPORT** msgportptr  */);
  239. LONG        releaseTimer(/*  TIMEREQ* master, MSGPORT* saveport  */);
  240. TIMEREQ *   gimmeTimeRequest(/*  TIMEREQ* master  */);
  241. LONG        getRidOfTimeRequest(/*  TIMEREQ* slave  */);
  242.  
  243. /* timerstuff.c */
  244. LONG        timeDelay(/*  ULONG secs, ULONG micros, ULONG unit, TIMEREQ*  */);
  245. TIMEREQ *   timeDelayAsync(/*  ULONG secs, ULONG micros, ULONG unit,
  246.                 TIMEREQ*  */);
  247. LONG        waitTimer(/*  TIMEREQ*  */);
  248. LONG        killTimeDelay(/*  TIMEREQ*  */);
  249. short        getSysTime(/*  ULONG* secsptr, ULONG* microsptr, TIMEREQ*  */);
  250. short        setSysTime(/*  ULONG secs, ULONG micros, TIMEREQ*  */);
  251.  
  252. /* window.c (window.h) */
  253. NEWWINDOW * gimmeNewWindow(/*  UBYTE* title, SCREEN*, SHORT left, SHORT top,
  254.                 ULONG IDCMPflags, ULONG flags  */);
  255. short        getRidOfNewWindow(/*  NEWWINDOW*  */);
  256. WINDOW *    gimmeWindow(/*  NEWWINDOW*, SHORT depth, SHORT width,
  257.                 SHORT height  */);
  258. short        getRidOfWindow(/*  WINDOW*  */);
  259.  
  260. /* undefine the gimshortdefs.h defines to avoid possible redefined symbols */
  261. #include "gimmelib/gimNOshortdefs.h"
  262.  
  263. #endif !GIMMELIB_FUNCTIONS_H
  264.