home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / programs / develop / galer / reqlibrary / reqlib.lha / ReqLib / include / clib / req_protos.h
C/C++ Source or Header  |  1990-12-18  |  2KB  |  70 lines

  1. /* Prototypes for the req.library for use with Lattice. */
  2.  
  3. /* If you aren't using a compiler that can handle pragmas, then define NOPRAGS */
  4.  
  5. #ifndef    REQLIBRARY_H
  6. #include    <libraries/reqbase.h>
  7. #endif
  8.  
  9. #ifndef __NOPROTO
  10. #ifndef __PROTO
  11. #define __PROTO(a) a
  12. #endif
  13. #else
  14. #ifndef __PROTO
  15. #define __PROTO(a) ()
  16. #endif
  17. #endif
  18.  
  19. #ifdef NOPRAGS
  20. #define PRAGSTATE __stdargs
  21. #else
  22. #define PRAGSTATE
  23. #endif
  24.  
  25.  
  26. /*        Requesters          */
  27.  
  28. int  PRAGSTATE  FileRequester __PROTO((struct ReqFileRequester *));
  29. void PRAGSTATE  PurgeFiles __PROTO((struct ReqFileRequester *));
  30.  
  31. int  PRAGSTATE  ColorRequester __PROTO((long));
  32. int  PRAGSTATE  ExtendedColorRequester __PROTO((struct ExtendedColorRequester *));
  33.  
  34. long PRAGSTATE  TextRequest __PROTO((struct TRStructure *));
  35. BOOL PRAGSTATE  GetLong __PROTO((struct GetLongStruct *));
  36. BOOL PRAGSTATE  NewGetString __PROTO((struct GetStringStruct *));
  37.  
  38. /*          Utility Functions        */
  39.  
  40. void PRAGSTATE  Center __PROTO((struct NewWindow *,int,int));
  41. char PRAGSTATE  RawKeyToAscii __PROTO((long,long,APTR));
  42. void PRAGSTATE  MakeScrollBar __PROTO((struct ScrollBlock *,long,long,long,long));
  43. void PRAGSTATE  MakeString __PROTO((char *,char *,char *,ULONG,ULONG,long,long));
  44. void PRAGSTATE  MakeProp  __PROTO((char *,ULONG,ULONG,ULONG));
  45. void PRAGSTATE  MakeGadget __PROTO((char *,char *,ULONG,ULONG));
  46.  
  47. void PRAGSTATE RealTimeScroll __PROTO((struct ReqScrollStruct *));
  48.  
  49. short PRAGSTATE SetSize __PROTO((long MaxVal, long ViewSize));
  50. short PRAGSTATE SetLocation __PROTO((long MaxVal, long ViewSize, long Value));
  51. short PRAGSTATE ReadLocation __PROTO((long MaxVal, long ViewSize, long PotValue));
  52.  
  53. long PRAGSTATE ReqFormat __PROTO((char *String, void *ControlList, char *ResultBuffer));
  54.  
  55. void PRAGSTATE LinkGadget __PROTO((char *Buffer,char *String,struct NewWindow *nw, ULONG X, ULONG Y));
  56. void PRAGSTATE LinkStringGadget __PROTO((char *Buffer,char *StringBuf,
  57.                                          char *UndoBuf,struct NewWindow *nw,
  58.                                          short WidthBits,short NumChars,
  59.                                          short X, short Y));
  60.  
  61. void PRAGSTATE LinkPropGadget __PROTO(( char *Buffer,struct NewWindow *nw,
  62.                                         short Width, short Height, short Flags,
  63.                                         short Leftedge, short TopEdge));
  64.  
  65. void PRAGSTATE DrawBox __PROTO((struct RastPort *rp,short MinX,short MinY,short MaxX,short MaxY));
  66.  
  67.  
  68. /*-------------------------------------------------------*/
  69.  
  70.