home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / os-include / clib / intuition_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-24  |  11.5 KB  |  247 lines

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