home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / clib / intuition_protos.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  12KB  |  249 lines

  1. #ifndef  CLIB_INTUITION_PROTOS_H
  2. #define  CLIB_INTUITION_PROTOS_H
  3.  
  4. /*
  5. **    $VER: intuition_protos.h 38.16 (28.8.92)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  INTUITION_INTUITION_H
  15. #include <intuition/intuition.h>
  16. #endif
  17. #ifndef  INTUITION_CLASSES_H
  18. #include <intuition/classes.h>
  19. #endif
  20. #ifndef  INTUITION_CGHOOKS_H
  21. #include <intuition/cghooks.h>
  22. #endif
  23. #ifndef  INTUITION_CLASSUSR_H
  24. #include <intuition/classusr.h>
  25. #endif
  26. /* Public functions OpenIntuition() and Intuition() are intentionally */
  27. /* not documented. */
  28. void OpenIntuition( void );
  29. void Intuition( struct InputEvent *iEvent );
  30. UWORD AddGadget( struct Window *window, struct Gadget *gadget,
  31.     unsigned long position );
  32. BOOL ClearDMRequest( struct Window *window );
  33. void ClearMenuStrip( struct Window *window );
  34. void ClearPointer( struct Window *window );
  35. BOOL CloseScreen( struct Screen *screen );
  36. void CloseWindow( struct Window *window );
  37. LONG CloseWorkBench( void );
  38. void CurrentTime( ULONG *seconds, ULONG *micros );
  39. BOOL DisplayAlert( unsigned long alertNumber, UBYTE *string,
  40.     unsigned long height );
  41. void DisplayBeep( struct Screen *screen );
  42. BOOL DoubleClick( unsigned long sSeconds, unsigned long sMicros,
  43.     unsigned long cSeconds, unsigned long cMicros );
  44. void DrawBorder( struct RastPort *rp, struct Border *border, long leftOffset,
  45.     long topOffset );
  46. void DrawImage( struct RastPort *rp, struct Image *image, long leftOffset,
  47.     long topOffset );
  48. void EndRequest( struct Requester *requester, struct Window *window );
  49. struct Preferences *GetDefPrefs( struct Preferences *preferences, long size );
  50. struct Preferences *GetPrefs( struct Preferences *preferences, long size );
  51. void InitRequester( struct Requester *requester );
  52. struct MenuItem *ItemAddress( struct Menu *menuStrip,
  53.     unsigned long menuNumber );
  54. BOOL ModifyIDCMP( struct Window *window, unsigned long flags );
  55. void ModifyProp( struct Gadget *gadget, struct Window *window,
  56.     struct Requester *requester, unsigned long flags,
  57.     unsigned long horizPot, unsigned long vertPot,
  58.     unsigned long horizBody, unsigned long vertBody );
  59. void MoveScreen( struct Screen *screen, long dx, long dy );
  60. void MoveWindow( struct Window *window, long dx, long dy );
  61. void OffGadget( struct Gadget *gadget, struct Window *window,
  62.     struct Requester *requester );
  63. void OffMenu( struct Window *window, unsigned long menuNumber );
  64. void OnGadget( struct Gadget *gadget, struct Window *window,
  65.     struct Requester *requester );
  66. void OnMenu( struct Window *window, unsigned long menuNumber );
  67. struct Screen *OpenScreen( struct NewScreen *newScreen );
  68. struct Window *OpenWindow( struct NewWindow *newWindow );
  69. ULONG OpenWorkBench( void );
  70. void PrintIText( struct RastPort *rp, struct IntuiText *iText, long left,
  71.     long top );
  72. void RefreshGadgets( struct Gadget *gadgets, struct Window *window,
  73.     struct Requester *requester );
  74. UWORD RemoveGadget( struct Window *window, struct Gadget *gadget );
  75. /* The official calling sequence for ReportMouse is given below. */
  76. /* Note the register order.  For the complete story, read the ReportMouse */
  77. /* autodoc. */
  78. void ReportMouse( long flag, struct Window *window );
  79. void ReportMouse1( struct Window *window, long flag );
  80. BOOL Request( struct Requester *requester, struct Window *window );
  81. void ScreenToBack( struct Screen *screen );
  82. void ScreenToFront( struct Screen *screen );
  83. BOOL SetDMRequest( struct Window *window, struct Requester *requester );
  84. BOOL SetMenuStrip( struct Window *window, struct Menu *menu );
  85. void SetPointer( struct Window *window, UWORD *pointer, long height,
  86.     long width, long xOffset, long yOffset );
  87. void SetWindowTitles( struct Window *window, UBYTE *windowTitle,
  88.     UBYTE *screenTitle );
  89. void ShowTitle( struct Screen *screen, long showIt );
  90. void SizeWindow( struct Window *window, long dx, long dy );
  91. struct View *ViewAddress( void );
  92. struct ViewPort *ViewPortAddress( struct Window *window );
  93. void WindowToBack( struct Window *window );
  94. void WindowToFront( struct Window *window );
  95. BOOL WindowLimits( struct Window *window, long widthMin, long heightMin,
  96.     unsigned long widthMax, unsigned long heightMax );
  97. /*--- start of next generation of names -------------------------------------*/
  98. struct Preferences *SetPrefs( struct Preferences *preferences, long size,
  99.     long inform );
  100. /*--- start of next next generation of names --------------------------------*/
  101. LONG IntuiTextLength( struct IntuiText *iText );
  102. BOOL WBenchToBack( void );
  103. BOOL WBenchToFront( void );
  104. /*--- start of next next next generation of names ---------------------------*/
  105. BOOL AutoRequest( struct Window *window, struct IntuiText *body,
  106.     struct IntuiText *posText, struct IntuiText *negText,
  107.     unsigned long pFlag, unsigned long nFlag, unsigned long width,
  108.     unsigned long height );
  109. void BeginRefresh( struct Window *window );
  110. struct Window *BuildSysRequest( struct Window *window, struct IntuiText *body,
  111.     struct IntuiText *posText, struct IntuiText *negText,
  112.     unsigned long flags, unsigned long width, unsigned long height );
  113. void EndRefresh( struct Window *window, long complete );
  114. void FreeSysRequest( struct Window *window );
  115. /* The return codes for MakeScreen(), RemakeDisplay(), and RethinkDisplay() */
  116. /* are only valid under V39 and greater.  Do not examine them when running */
  117. /* on pre-V39 systems! */
  118. LONG MakeScreen( struct Screen *screen );
  119. LONG RemakeDisplay( void );
  120. LONG RethinkDisplay( void );
  121. /*--- start of next next next next generation of names ----------------------*/
  122. APTR AllocRemember( struct Remember **rememberKey, unsigned long size,
  123.     unsigned long flags );
  124. /* Public function AlohaWorkbench() is intentionally not documented */
  125. void AlohaWorkbench( long wbport );
  126. void FreeRemember( struct Remember **rememberKey, long reallyForget );
  127. /*--- start of 15 Nov 85 names ------------------------*/
  128. ULONG LockIBase( unsigned long dontknow );
  129. void UnlockIBase( unsigned long ibLock );
  130. /*--- functions in V33 or higher (Release 1.2) ---*/
  131. LONG GetScreenData( APTR buffer, unsigned long size, unsigned long type,
  132.     struct Screen *screen );
  133. void RefreshGList( struct Gadget *gadgets, struct Window *window,
  134.     struct Requester *requester, long numGad );
  135. UWORD AddGList( struct Window *window, struct Gadget *gadget,
  136.     unsigned long position, long numGad, struct Requester *requester );
  137. UWORD RemoveGList( struct Window *remPtr, struct Gadget *gadget,
  138.     long numGad );
  139. void ActivateWindow( struct Window *window );
  140. void RefreshWindowFrame( struct Window *window );
  141. BOOL ActivateGadget( struct Gadget *gadgets, struct Window *window,
  142.     struct Requester *requester );
  143. void NewModifyProp( struct Gadget *gadget, struct Window *window,
  144.     struct Requester *requester, unsigned long flags,
  145.     unsigned long horizPot, unsigned long vertPot,
  146.     unsigned long horizBody, unsigned long vertBody, long numGad );
  147. /*--- functions in V36 or higher (Release 2.0) ---*/
  148. LONG QueryOverscan( unsigned long displayID, struct Rectangle *rect,
  149.     long oScanType );
  150. void MoveWindowInFrontOf( struct Window *window,
  151.     struct Window *behindWindow );
  152. void ChangeWindowBox( struct Window *window, long left, long top, long width,
  153.     long height );
  154. struct Hook *SetEditHook( struct Hook *hook );
  155. LONG SetMouseQueue( struct Window *window, unsigned long queueLength );
  156. void ZipWindow( struct Window *window );
  157. /*--- public screens ---*/
  158. struct Screen *LockPubScreen( UBYTE *name );
  159. void UnlockPubScreen( UBYTE *name, struct Screen *screen );
  160. struct List *LockPubScreenList( void );
  161. void UnlockPubScreenList( void );
  162. UBYTE *NextPubScreen( struct Screen *screen, UBYTE *namebuf );
  163. void SetDefaultPubScreen( UBYTE *name );
  164. UWORD SetPubScreenModes( unsigned long modes );
  165. UWORD PubScreenStatus( struct Screen *screen, unsigned long statusFlags );
  166.  
  167. struct RastPort *ObtainGIRPort( struct GadgetInfo *gInfo );
  168. void ReleaseGIRPort( struct RastPort *rp );
  169. void GadgetMouse( struct Gadget *gadget, struct GadgetInfo *gInfo,
  170.     WORD *mousePoint );
  171. void GetDefaultPubScreen( UBYTE *nameBuffer );
  172. LONG EasyRequestArgs( struct Window *window, struct EasyStruct *easyStruct,
  173.     ULONG *idcmpPtr, APTR args );
  174. LONG EasyRequest( struct Window *window, struct EasyStruct *easyStruct,
  175.     ULONG *idcmpPtr, ... );
  176. struct Window *BuildEasyRequestArgs( struct Window *window,
  177.     struct EasyStruct *easyStruct, unsigned long idcmp, APTR args );
  178. struct Window *BuildEasyRequest( struct Window *window,
  179.     struct EasyStruct *easyStruct, unsigned long idcmp, ... );
  180. LONG SysReqHandler( struct Window *window, ULONG *idcmpPtr, long waitInput );
  181. struct Window *OpenWindowTagList( struct NewWindow *newWindow,
  182.     struct TagItem *tagList );
  183. struct Window *OpenWindowTags( struct NewWindow *newWindow,
  184.     unsigned long tag1Type, ... );
  185. struct Screen *OpenScreenTagList( struct NewScreen *newScreen,
  186.     struct TagItem *tagList );
  187. struct Screen *OpenScreenTags( struct NewScreen *newScreen,
  188.     unsigned long tag1Type, ... );
  189.  
  190. /*    new Image functions */
  191. void DrawImageState( struct RastPort *rp, struct Image *image, long leftOffset,
  192.     long topOffset, unsigned long state, struct DrawInfo *drawInfo );
  193. BOOL PointInImage( unsigned long point, struct Image *image );
  194. void EraseImage( struct RastPort *rp, struct Image *image, long leftOffset,
  195.     long topOffset );
  196.  
  197. APTR NewObjectA( struct IClass *classPtr, UBYTE *classID,
  198.     struct TagItem *tagList );
  199. APTR NewObject( struct IClass *classPtr, UBYTE *classID, unsigned long tag1,
  200.     ... );
  201.  
  202. void DisposeObject( APTR object );
  203. ULONG SetAttrsA( APTR object, struct TagItem *tagList );
  204. ULONG SetAttrs( APTR object, unsigned long tag1, ... );
  205.  
  206. ULONG GetAttr( unsigned long attrID, APTR object, ULONG *storagePtr );
  207.  
  208. /*    special set attribute call for gadgets */
  209. ULONG SetGadgetAttrsA( struct Gadget *gadget, struct Window *window,
  210.     struct Requester *requester, struct TagItem *tagList );
  211. ULONG SetGadgetAttrs( struct Gadget *gadget, struct Window *window,
  212.     struct Requester *requester, unsigned long tag1, ... );
  213.  
  214. /*    for class implementors only */
  215. APTR NextObject( APTR objectPtrPtr );
  216. struct IClass *MakeClass( UBYTE *classID, UBYTE *superClassID,
  217.     struct IClass *superClassPtr, unsigned long instanceSize,
  218.     unsigned long flags );
  219. void AddClass( struct IClass *classPtr );
  220.  
  221.  
  222. struct DrawInfo *GetScreenDrawInfo( struct Screen *screen );
  223. void FreeScreenDrawInfo( struct Screen *screen, struct DrawInfo *drawInfo );
  224.  
  225. BOOL ResetMenuStrip( struct Window *window, struct Menu *menu );
  226. void RemoveClass( struct IClass *classPtr );
  227. BOOL FreeClass( struct IClass *classPtr );
  228. /*--- functions in V39 or higher (Release 3) ---*/
  229. struct ScreenBuffer *AllocScreenBuffer( struct Screen *sc, struct BitMap *bm,
  230.     unsigned long flags );
  231. void FreeScreenBuffer( struct Screen *sc, struct ScreenBuffer *sb );
  232. ULONG ChangeScreenBuffer( struct Screen *sc, struct ScreenBuffer *sb );
  233. void ScreenDepth( struct Screen *screen, unsigned long flags, APTR reserved );
  234. void ScreenPosition( struct Screen *screen, unsigned long flags, long x1,
  235.     long y1, long x2, long y2 );
  236. void ScrollWindowRaster( struct Window *win, long dx, long dy, long xMin,
  237.     long yMin, long xMax, long yMax );
  238. void LendMenus( struct Window *fromwindow, struct Window *towindow );
  239. ULONG DoGadgetMethodA( struct Gadget *gad, struct Window *win,
  240.     struct Requester *req, Msg message );
  241. ULONG DoGadgetMethod( struct Gadget *gad, struct Window *win,
  242.     struct Requester *req, unsigned long MethodID, ... );
  243. void SetWindowPointerA( struct Window *win, struct TagItem *taglist );
  244. void SetWindowPointer( struct Window *win, unsigned long tag1, ... );
  245. BOOL TimedDisplayAlert( unsigned long alertNumber, UBYTE *string,
  246.     unsigned long height, unsigned long time );
  247. void HelpControl( struct Window *win, unsigned long flags );
  248. #endif     /* CLIB_INTUITION_PROTOS_H */
  249.