home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / clib / intuition_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  9.0 KB  |  215 lines

  1. #ifndef CLIB_INTUITION_PROTOS_H
  2. #define CLIB_INTUITION_PROTOS_H
  3. /*
  4. ** $VER: intuition_protos.h 36.9 (08.11.91)
  5. ** Includes Release 38.56
  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.  
  16.  
  17. void OpenIntuition( void );
  18. void Intuition( struct InputEvent *iEvent );
  19. UWORD AddGadget( struct Window *window, struct Gadget *gadget,
  20.  unsigned long position );
  21. BOOL ClearDMRequest( struct Window *window );
  22. void ClearMenuStrip( struct Window *window );
  23. void ClearPointer( struct Window *window );
  24. BOOL CloseScreen( struct Screen *screen );
  25. void CloseWindow( struct Window *window );
  26. LONG CloseWorkBench( void );
  27. void CurrentTime( ULONG *seconds, ULONG *micros );
  28. BOOL DisplayAlert( unsigned long alertNumber, UBYTE *string,
  29.  unsigned long height );
  30. void DisplayBeep( struct Screen *screen );
  31. BOOL DoubleClick( unsigned long sSeconds, unsigned long sMicros,
  32.  unsigned long cSeconds, unsigned long cMicros );
  33. void DrawBorder( struct RastPort *rp, struct Border *border, long leftOffset,
  34.  long topOffset );
  35. void DrawImage( struct RastPort *rp, struct Image *image, long leftOffset,
  36.  long topOffset );
  37. void EndRequest( struct Requester *requester, struct Window *window );
  38. struct Preferences *GetDefPrefs( struct Preferences *preferences, long size );
  39. struct Preferences *GetPrefs( struct Preferences *preferences, long size );
  40. void InitRequester( struct Requester *requester );
  41. struct MenuItem *ItemAddress( struct Menu *menuStrip,
  42.  unsigned long menuNumber );
  43. BOOL ModifyIDCMP( struct Window *window, unsigned long flags );
  44. void ModifyProp( struct Gadget *gadget, struct Window *window,
  45.  struct Requester *requester, unsigned long flags,
  46.  unsigned long horizPot, unsigned long vertPot,
  47.  unsigned long horizBody, unsigned long vertBody );
  48. void MoveScreen( struct Screen *screen, long dx, long dy );
  49. void MoveWindow( struct Window *window, long dx, long dy );
  50. void OffGadget( struct Gadget *gadget, struct Window *window,
  51.  struct Requester *requester );
  52. void OffMenu( struct Window *window, unsigned long menuNumber );
  53. void OnGadget( struct Gadget *gadget, struct Window *window,
  54.  struct Requester *requester );
  55. void OnMenu( struct Window *window, unsigned long menuNumber );
  56. struct Screen *OpenScreen( struct NewScreen *newScreen );
  57. struct Window *OpenWindow( struct NewWindow *newWindow );
  58. ULONG OpenWorkBench( void );
  59. void PrintIText( struct RastPort *rp, struct IntuiText *iText, long left,
  60.  long top );
  61. void RefreshGadgets( struct Gadget *gadgets, struct Window *window,
  62.  struct Requester *requester );
  63. UWORD RemoveGadget( struct Window *window, struct Gadget *gadget );
  64.  
  65.  
  66.  
  67. void ReportMouse( long flag, struct Window *window );
  68. void ReportMouse1( struct Window *window, long flag );
  69. BOOL Request( struct Requester *requester, struct Window *window );
  70. void ScreenToBack( struct Screen *screen );
  71. void ScreenToFront( struct Screen *screen );
  72. BOOL SetDMRequest( struct Window *window, struct Requester *requester );
  73. BOOL SetMenuStrip( struct Window *window, struct Menu *menu );
  74. void SetPointer( struct Window *window, UWORD *pointer, long height,
  75.  long width, long xOffset, long yOffset );
  76. void SetWindowTitles( struct Window *window, UBYTE *windowTitle,
  77.  UBYTE *screenTitle );
  78. void ShowTitle( struct Screen *screen, long showIt );
  79. void SizeWindow( struct Window *window, long dx, long dy );
  80. struct View *ViewAddress( void );
  81. struct ViewPort *ViewPortAddress( struct Window *window );
  82. void WindowToBack( struct Window *window );
  83. void WindowToFront( struct Window *window );
  84. BOOL WindowLimits( struct Window *window, long widthMin, long heightMin,
  85.  unsigned long widthMax, unsigned long heightMax );
  86.  
  87. struct Preferences *SetPrefs( struct Preferences *preferences, long size,
  88.  long inform );
  89.  
  90. LONG IntuiTextLength( struct IntuiText *iText );
  91. BOOL WBenchToBack( void );
  92. BOOL WBenchToFront( void );
  93.  
  94. BOOL AutoRequest( struct Window *window, struct IntuiText *body,
  95.  struct IntuiText *posText, struct IntuiText *negText,
  96.  unsigned long pFlag, unsigned long nFlag, unsigned long width,
  97.  unsigned long height );
  98. void BeginRefresh( struct Window *window );
  99. struct Window *BuildSysRequest( struct Window *window, struct IntuiText *body,
  100.  struct IntuiText *posText, struct IntuiText *negText,
  101.  unsigned long flags, unsigned long width, unsigned long height );
  102. void EndRefresh( struct Window *window, long complete );
  103. void FreeSysRequest( struct Window *window );
  104. void MakeScreen( struct Screen *screen );
  105. void RemakeDisplay( void );
  106. void RethinkDisplay( void );
  107.  
  108. APTR AllocRemember( struct Remember **rememberKey, unsigned long size,
  109.  unsigned long flags );
  110.  
  111. void AlohaWorkbench( long wbport );
  112. void FreeRemember( struct Remember **rememberKey, long reallyForget );
  113.  
  114. ULONG LockIBase( unsigned long dontknow );
  115. void UnlockIBase( unsigned long ibLock );
  116.  
  117. LONG GetScreenData( APTR buffer, unsigned long size, unsigned long type,
  118.  struct Screen *screen );
  119. void RefreshGList( struct Gadget *gadgets, struct Window *window,
  120.  struct Requester *requester, long numGad );
  121. UWORD AddGList( struct Window *window, struct Gadget *gadget,
  122.  unsigned long position, long numGad, struct Requester *requester );
  123. UWORD RemoveGList( struct Window *remPtr, struct Gadget *gadget,
  124.  long numGad );
  125. LONG ActivateWindow( struct Window *window );
  126. void RefreshWindowFrame( struct Window *window );
  127. BOOL ActivateGadget( struct Gadget *gadgets, struct Window *window,
  128.  struct Requester *requester );
  129. void NewModifyProp( struct Gadget *gadget, struct Window *window,
  130.  struct Requester *requester, unsigned long flags,
  131.  unsigned long horizPot, unsigned long vertPot,
  132.  unsigned long horizBody, unsigned long vertBody, long numGad );
  133.  
  134. LONG QueryOverscan( unsigned long displayID, struct Rectangle *rect,
  135.  long oScanType );
  136. void MoveWindowInFrontOf( struct Window *window,
  137.  struct Window *behindWindow );
  138. void ChangeWindowBox( struct Window *window, long left, long top, long width,
  139.  long height );
  140. struct Hook *SetEditHook( struct Hook *hook );
  141. LONG SetMouseQueue( struct Window *window, unsigned long queueLength );
  142. void ZipWindow( struct Window *window );
  143.  
  144. struct Screen *LockPubScreen( UBYTE *name );
  145. void UnlockPubScreen( UBYTE *name, struct Screen *screen );
  146. struct List *LockPubScreenList( void );
  147. void UnlockPubScreenList( void );
  148. UBYTE *NextPubScreen( struct Screen *screen, UBYTE *namebuf );
  149. void SetDefaultPubScreen( UBYTE *name );
  150. UWORD SetPubScreenModes( unsigned long modes );
  151. UWORD PubScreenStatus( struct Screen *screen, unsigned long statusFlags );
  152.  
  153. struct RastPort *ObtainGIRPort( struct GadgetInfo *gInfo );
  154. void ReleaseGIRPort( struct RastPort *rp );
  155. void GadgetMouse( struct Gadget *gadget, struct GadgetInfo *gInfo,
  156.  WORD *mousePoint );
  157. void GetDefaultPubScreen( UBYTE *nameBuffer );
  158. LONG EasyRequestArgs( struct Window *window, struct EasyStruct *easyStruct,
  159.  ULONG *idcmpPtr, APTR args );
  160. LONG EasyRequest( struct Window *window, struct EasyStruct *easyStruct,
  161.  ULONG *idcmpPtr, ... );
  162. struct Window *BuildEasyRequestArgs( struct Window *window,
  163.  struct EasyStruct *easyStruct, unsigned long idcmp, APTR args );
  164. struct Window *BuildEasyRequest( struct Window *window,
  165.  struct EasyStruct *easyStruct, unsigned long idcmp, ... );
  166. LONG SysReqHandler( struct Window *window, ULONG *idcmpPtr, long waitInput );
  167. struct Window *OpenWindowTagList( struct NewWindow *newWindow,
  168.  struct TagItem *tagList );
  169. struct Window *OpenWindowTags( struct NewWindow *newWindow,
  170.  unsigned long tag1Type, ... );
  171. struct Screen *OpenScreenTagList( struct NewScreen *newScreen,
  172.  struct TagItem *tagList );
  173. struct Screen *OpenScreenTags( struct NewScreen *newScreen,
  174.  unsigned long tag1Type, ... );
  175.  
  176.  
  177. void DrawImageState( struct RastPort *rp, struct Image *image, long leftOffset,
  178.  long topOffset, unsigned long state, struct DrawInfo *drawInfo );
  179. BOOL PointInImage( unsigned long point, struct Image *image );
  180. void EraseImage( struct RastPort *rp, struct Image *image, long leftOffset,
  181.  long topOffset );
  182.  
  183. APTR NewObjectA( struct IClass *classPtr, UBYTE *classID,
  184.  struct TagItem *tagList );
  185. APTR NewObject( struct IClass *classPtr, UBYTE *classID, unsigned long tag1,
  186.  ... );
  187.  
  188. void DisposeObject( APTR object );
  189. ULONG SetAttrsA( APTR object, struct TagItem *tagList );
  190. ULONG SetAttrs( APTR object, unsigned long tag1, ... );
  191.  
  192. ULONG GetAttr( unsigned long attrID, APTR object, ULONG *storagePtr );
  193.  
  194.  
  195. ULONG SetGadgetAttrsA( struct Gadget *gadget, struct Window *window,
  196.  struct Requester *requester, struct TagItem *tagList );
  197. ULONG SetGadgetAttrs( struct Gadget *gadget, struct Window *window,
  198.  struct Requester *requester, unsigned long tag1, ... );
  199.  
  200.  
  201. APTR NextObject( APTR objectPtrPtr );
  202. struct IClass *MakeClass( UBYTE *classID, UBYTE *superClassID,
  203.  struct IClass *superClassPtr, unsigned long instanceSize,
  204.  unsigned long flags );
  205. void AddClass( struct IClass *classPtr );
  206.  
  207.  
  208. struct DrawInfo *GetScreenDrawInfo( struct Screen *screen );
  209. void FreeScreenDrawInfo( struct Screen *screen, struct DrawInfo *drawInfo );
  210.  
  211. BOOL ResetMenuStrip( struct Window *window, struct Menu *menu );
  212. void RemoveClass( struct IClass *classPtr );
  213. BOOL FreeClass( struct IClass *classPtr );
  214. #endif 
  215.