home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / clib / intuition_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  17.0 KB  |  308 lines

  1. #ifndef  CLIB_INTUITION_PROTOS_H
  2. #define  CLIB_INTUITION_PROTOS_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef  INTUITION_INTUITION_H
  9. #include <intuition/intuition.h>
  10. #endif
  11. #ifndef  INTUITION_CLASSES_H
  12. #include <intuition/classes.h>
  13. #endif
  14. #ifndef  INTUITION_CGHOOKS_H
  15. #include <intuition/cghooks.h>
  16. #endif
  17. #ifndef  INTUITION_CLASSUSR_H
  18. #include <intuition/classusr.h>
  19. #endif
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. void OpenIntuition( void );
  26. void Intuition( struct InputEvent *iEvent );
  27. UWORD AddGadget( struct Window *window, struct Gadget *gadget,ULONG position );
  28. void ClearMenuStrip( struct Window *window );
  29. BOOL CloseScreen( struct Screen *screen );
  30. void CloseWindow( struct Window *window );
  31. void CurrentTime( ULONG *seconds, ULONG *micros );
  32. void DisplayBeep( struct Screen *screen );
  33. BOOL DoubleClick(ULONG sSeconds,ULONG sMicros,ULONG cSeconds,ULONG cMicros );
  34. void DrawBorder(struct RastPort*,struct Border*,long leftOffset,long topOffset );
  35. void DrawImage(struct RastPort*,struct Image*, long leftOffset,    long topOffset );
  36. struct MenuItem *ItemAddress(struct Menu*,ULONG menuNumber );
  37. BOOL ModifyIDCMP( struct Window *window, unsigned long flags );
  38. void MoveWindow( struct Window *window, long dx, long dy );
  39. void OffGadget(struct Gadget*,struct Window*,struct Requester*);
  40. void OffMenu( struct Window *window, unsigned long menuNumber );
  41. void OnGadget(struct Gadget*, struct Window*,struct Requester*);
  42. void OnMenu( struct Window *window, unsigned long menuNumber );
  43. struct Window *OpenWindow( struct NewWindow *newWindow );
  44. void RefreshGadgets(struct Gadget*,struct Window*,struct Requester*);
  45. UWORD RemoveGadget( struct Window *window, struct Gadget *gadget );
  46. BOOL SetMenuStrip( struct Window *window, struct Menu *menu );
  47. void SetWindowTitles( struct Window *window, UBYTE *windowTitle,UBYTE*);
  48. void SizeWindow( struct Window *window, long dx, long dy );
  49. struct ViewPort *ViewPortAddress( struct Window *window );
  50. void WindowToBack( struct Window *window );
  51. void WindowToFront( struct Window *window );
  52. BOOL WindowLimits(struct Window*,long widthMin,long heightMin,ULONG widthMax,ULONG heightMax );
  53. void BeginRefresh( struct Window *window );
  54. void EndRefresh( struct Window *window, long complete );
  55. void FreeSysRequest( struct Window *window );
  56. void RefreshGList( struct Gadget*,struct Window*,struct Requester*,long numGad );
  57. UWORD AddGList(struct Window*,struct Gadget*,ULONG pos,ULONG numGad, struct Requester*);
  58. UWORD RemoveGList( struct Window *remPtr, struct Gadget *gadget,ULONG numGad );
  59. void ActivateWindow( struct Window *window );
  60. void RefreshWindowFrame( struct Window *window );
  61. BOOL ActivateGadget( struct Gadget*,struct Window*,struct Requester*);
  62. LONG QueryOverscan( unsigned long displayID, struct Rectangle*,long oScanType );
  63. void ChangeWindowBox( struct Window*,long left,long top,long width,long height );
  64. LONG SetMouseQueue( struct Window *window, unsigned long queueLength );
  65. void ZipWindow( struct Window *window );
  66. struct Screen *LockPubScreen( UBYTE *name );
  67. void UnlockPubScreen( UBYTE *name, struct Screen *screen );
  68. UWORD PubScreenStatus( struct Screen *screen, unsigned long statusFlags );
  69. LONG EasyRequestArgs(struct Window*,struct EasyStruct*,ULONG *idcmpPtr,APTR args);
  70. LONG EasyRequest(struct Window*,struct EasyStruct*,ULONG *idcmpPtr, ... );
  71. LONG SysReqHandler( struct Window *window, ULONG *idcmpPtr, long waitInput );
  72. struct Window *OpenWindowTagList( struct NewWindow*,struct TagItem *tagList );
  73. struct Window *OpenWindowTags(struct NewWindow*,unsigned long tag1Type, ... );
  74. struct Screen *OpenScreenTagList(struct NewScreen*,struct TagItem *tagList );
  75. struct Screen *OpenScreenTags(struct NewScreen *newScreen,unsigned long tag1Type, ... );
  76. APTR NewObjectA( struct IClass *classPtr, UBYTE *classID,struct TagItem *tagList );
  77. APTR NewObject( struct IClass *classPtr, UBYTE *classID,ULONG tag1,... );
  78. void DisposeObject( APTR object );
  79. ULONG SetAttrsA( APTR object, struct TagItem *tagList );
  80. ULONG SetAttrs( APTR object, unsigned long tag1, ... );
  81. ULONG GetAttr( unsigned long attrID, APTR object, ULONG *storagePtr );
  82. ULONG SetGadgetAttrsA(struct Gadget*,struct Window*,struct Requester*,struct TagItem*);
  83. ULONG SetGadgetAttrs(struct Gadget*,struct Window*,struct Requester*,ULONG tag1, ... );
  84. struct DrawInfo *GetScreenDrawInfo( struct Screen *screen );
  85. void FreeScreenDrawInfo( struct Screen *screen, struct DrawInfo *drawInfo );
  86. void ScrollWindowRaster(struct Window*,long dx,long dy,long xMin,long yMin,long xMax,long yMax);
  87. void ReportMouse( long flag, struct Window *window );
  88. void ReportMouse1( struct Window *window, long flag );
  89. APTR AllocRemember( struct Remember **rememberKey,ULONG size,ULONG flags );
  90. void FreeRemember( struct Remember **rememberKey, long reallyForget );
  91. void MoveScreen( struct Screen *screen, long dx, long dy );
  92. void ScreenToBack( struct Screen *screen );
  93. void ScreenToFront( struct Screen *screen );
  94.  
  95. /*MIC*/ void PrintIText(struct RastPort *rp, struct IntuiText *intuitext, LONG dx, LONG dy);
  96. /*MIC*/ LONG IntuiTextLength( struct IntuiText *intuitext );
  97.  
  98.  
  99.  
  100. #ifdef __IGNORE_NOT_SUPPORTED__
  101.  
  102.   BOOL ClearDMRequest( struct Window *window );
  103.   void ClearPointer( struct Window *window );
  104.   LONG CloseWorkBench( void );
  105.   BOOL DisplayAlert( unsigned long alertNumber, UBYTE *string,ULONG height );
  106.   void EndRequest( struct Requester *requester, struct Window *window );
  107.   struct Preferences *GetDefPrefs( struct Preferences *preferences, long size );
  108.   struct Preferences *GetPrefs( struct Preferences *preferences, long size );
  109.   void InitRequester( struct Requester *requester );
  110.   void ModifyProp(struct Gadget*,struct Window*,struct Requester*,ULONG,ULONG,ULONG,ULONG,ULONG);
  111.   struct Screen *OpenScreen( struct NewScreen *newScreen );
  112.   ULONG OpenWorkBench( void );
  113.   BOOL Request( struct Requester *requester, struct Window *window );
  114.   BOOL SetDMRequest( struct Window *window, struct Requester *requester );
  115.   void SetPointer(struct Window*,UWORD*,long,long,long,long);
  116.   void ShowTitle( struct Screen *screen, long showIt );
  117.   struct View *ViewAddress( void );
  118.   struct Preferences *SetPrefs(struct Preferences*,long,long);
  119.   BOOL WBenchToBack( void );
  120.   BOOL WBenchToFront( void );
  121.   BOOL AutoRequest(struct Window*,struct IntuiText*,struct IntuiText*,struct IntuiText*,ULONG,ULONG,ULONG,ULONG);
  122.   struct Window *BuildSysRequest(struct Window*,struct IntuiText*,struct IntuiText*,struct IntuiText*,ULONG,ULONG,ULONG);
  123.   LONG MakeScreen( struct Screen *screen );
  124.   LONG RemakeDisplay( void );
  125.   LONG RethinkDisplay( void );
  126.   ULONG LockIBase( unsigned long dontknow );
  127.   void UnlockIBase( unsigned long ibLock );
  128.   LONG GetScreenData(APTR,ULONG,ULONG,struct Screen*);
  129.   void NewModifyProp(struct Gadget*,struct Window*,struct Requester*,ULONG,ULONG,ULONG,ULONG,ULONG,SLONG);
  130.   void MoveWindowInFrontOf( struct Window*,struct Window*);
  131.   struct Hook *SetEditHook(struct Hook*);
  132.   struct List *LockPubScreenList( void );
  133.   void UnlockPubScreenList( void );
  134.   UBYTE *NextPubScreen( struct Screen *screen, UBYTE *namebuf );
  135.   void SetDefaultPubScreen( UBYTE *name );
  136.   UWORD SetPubScreenModes( unsigned long modes );
  137.   struct RastPort *ObtainGIRPort( struct GadgetInfo *gInfo );
  138.   void ReleaseGIRPort( struct RastPort *rp );
  139.   void GadgetMouse(struct Gadget*,struct GadgetInfo*,WORD*);
  140.   void GetDefaultPubScreen( UBYTE *nameBuffer );
  141.   struct Window *BuildEasyRequestArgs(struct Window*,struct EasyStruct*,ULONG,APTR);
  142.   struct Window *BuildEasyRequest(struct Window*,struct EasyStruct*,ULONG, ... );
  143.   void DrawImageState(struct RastPort*,struct Image*,long,long,ULONG,struct DrawInfo*);
  144.   BOOL PointInImage( unsigned long point, struct Image *image );
  145.   void EraseImage(struct RastPort*,struct Image*,long,long);
  146.   APTR NextObject( APTR objectPtrPtr );
  147.   struct IClass *MakeClass(UBYTE*,UBYTE*,struct IClass*,ULONG,ULONG);
  148.   void AddClass( struct IClass *classPtr );
  149.   BOOL ResetMenuStrip( struct Window *window, struct Menu *menu );
  150.   void RemoveClass( struct IClass *classPtr );
  151.   BOOL FreeClass( struct IClass *classPtr );
  152.   struct ScreenBuffer *AllocScreenBuffer(struct Screen*,struct BitMap*,ULONG);
  153.   void FreeScreenBuffer( struct Screen *sc, struct ScreenBuffer *sb );
  154.   ULONG ChangeScreenBuffer( struct Screen *sc, struct ScreenBuffer *sb );
  155.   void ScreenDepth( struct Screen *screen, unsigned long flags, APTR reserved );
  156.   void ScreenPosition(struct Screen*,ULONG,long,long,long,long);
  157.   void LendMenus( struct Window *fromwindow, struct Window *towindow );
  158.   ULONG DoGadgetMethodA(struct Gadget*,struct Window*,struct Requester*,APTR);
  159.   ULONG DoGadgetMethod(struct Gadget*,struct Window*,struct Requester*,ULONG, ... );
  160.   void SetWindowPointerA( struct Window *win, struct TagItem *taglist );
  161.   void SetWindowPointer( struct Window *win, unsigned long tag1, ... );
  162.   BOOL TimedDisplayAlert(ULONG,UBYTE*,ULONG,ULONG);
  163.   void HelpControl( struct Window *win, unsigned long flags );
  164.  
  165. #else  /** __IGNORE_NOT_SUPPORTED__ **/
  166.  
  167.  
  168. #define ClearDMRequest ClearDMRequest_NOT_SUPPORTED
  169.   BOOL ClearDMRequest(struct NOT_SUPPORTED*, struct Window *window );
  170. #define ClearPointer ClearPointer_NOT_SUPPORTED
  171.   void ClearPointer(struct NOT_SUPPORTED*, struct Window *window );
  172. #define CloseWorkBench CloseWorkBench_NOT_SUPPORTED
  173.   LONG CloseWorkBench(struct NOT_SUPPORTED*);
  174. #define DisplayAlert DisplayAlert_NOT_SUPPORTED
  175.   BOOL DisplayAlert(struct NOT_SUPPORTED*, unsigned long alertNumber, UBYTE *string,ULONG height );
  176. #define EndRequest EndRequest_NOT_SUPPORTED
  177.   void EndRequest(struct NOT_SUPPORTED*, struct Requester *requester, struct Window *window );
  178. #define GetDefPrefs GetDefPrefs_NOT_SUPPORTED
  179.   struct Preferences *GetDefPrefs(struct NOT_SUPPORTED*, struct Preferences *preferences, long size );
  180. #define GetPrefs GetPrefs_NOT_SUPPORTED
  181.   struct Preferences *GetPrefs(struct NOT_SUPPORTED*, struct Preferences *preferences, long size );
  182. #define InitRequester InitRequester_NOT_SUPPORTED
  183.   void InitRequester(struct NOT_SUPPORTED*, struct Requester *requester );
  184. #define ModifyProp ModifyProp_NOT_SUPPORTED
  185.   void ModifyProp(struct NOT_SUPPORTED*,struct Gadget*,struct Window*,struct Requester*,ULONG,ULONG,ULONG,ULONG,ULONG);
  186. #define OpenScreen OpenScreen_NOT_SUPPORTED
  187.   struct Screen *OpenScreen(struct NOT_SUPPORTED*, struct NewScreen *newScreen );
  188. #define OpenWorkBench OpenWorkBench_NOT_SUPPORTED
  189.   ULONG OpenWorkBench(struct NOT_SUPPORTED*);
  190. #define Request Request_NOT_SUPPORTED
  191.   BOOL Request(struct NOT_SUPPORTED*, struct Requester *requester, struct Window *window );
  192. #define SetDMRequest SetDMRequest_NOT_SUPPORTED
  193.   BOOL SetDMRequest(struct NOT_SUPPORTED*, struct Window *window, struct Requester *requester );
  194. #define SetPointer SetPointer_NOT_SUPPORTED
  195.   void SetPointer(struct NOT_SUPPORTED*,struct Window*,UWORD*,long,long,long,long);
  196. #define ShowTitle ShowTitle_NOT_SUPPORTED
  197.   void ShowTitle(struct NOT_SUPPORTED*, struct Screen *screen, long showIt );
  198. #define ViewAddress ViewAddress_NOT_SUPPORTED
  199.   struct View *ViewAddress(struct NOT_SUPPORTED*);
  200. #define SetPrefs SetPrefs_NOT_SUPPORTED
  201.   struct Preferences *SetPrefs(struct NOT_SUPPORTED*,struct Preferences*,long,long);
  202. #define WBenchToBack WBenchToBack_NOT_SUPPORTED
  203.   BOOL WBenchToBack(struct NOT_SUPPORTED*);
  204. #define WBenchToFront WBenchToFront_NOT_SUPPORTED
  205.   BOOL WBenchToFront(struct NOT_SUPPORTED*);
  206. #define AutoRequest AutoRequest_NOT_SUPPORTED
  207.   BOOL AutoRequest(struct NOT_SUPPORTED*,struct Window*,struct IntuiText*,struct IntuiText*,struct IntuiText*,ULONG,ULONG,ULONG,ULONG);
  208. #define BuildSysRequest BuildSysRequest_NOT_SUPPORTED
  209.   struct Window *BuildSysRequest(struct NOT_SUPPORTED*,struct Window*,struct IntuiText*,struct IntuiText*,struct IntuiText*,ULONG,ULONG,ULONG);
  210. #define MakeScreen MakeScreen_NOT_SUPPORTED
  211.   LONG MakeScreen(struct NOT_SUPPORTED*, struct Screen *screen );
  212. #define RemakeDisplay RemakeDisplay_NOT_SUPPORTED
  213.   LONG RemakeDisplay(struct NOT_SUPPORTED*);
  214. #define RethinkDisplay RethinkDisplay_NOT_SUPPORTED
  215.   LONG RethinkDisplay(struct NOT_SUPPORTED*);
  216. #define LockIBase LockIBase_NOT_SUPPORTED
  217.   ULONG LockIBase(struct NOT_SUPPORTED*, unsigned long dontknow );
  218. #define UnlockIBase UnlockIBase_NOT_SUPPORTED
  219.   void UnlockIBase(struct NOT_SUPPORTED*, unsigned long ibLock );
  220. #define GetScreenData GetScreenData_NOT_SUPPORTED
  221.   LONG GetScreenData(struct NOT_SUPPORTED*,APTR,ULONG,ULONG,struct Screen*);
  222. #define NewModifyProp NewModifyProp_NOT_SUPPORTED
  223.   void NewModifyProp(struct NOT_SUPPORTED*,struct Gadget*,struct Window*,struct Requester*,ULONG,ULONG,ULONG,ULONG,ULONG,SLONG);
  224. #define MoveWindowInFrontOf MoveWindowInFrontOf_NOT_SUPPORTED
  225.   void MoveWindowInFrontOf(struct NOT_SUPPORTED*, struct Window*,struct Window*);
  226. #define SetEditHook SetEditHook_NOT_SUPPORTED
  227.   struct Hook *SetEditHook(struct NOT_SUPPORTED*,struct Hook*);
  228. #define LockPubScreenList LockPubScreenList_NOT_SUPPORTED
  229.   struct List *LockPubScreenList(struct NOT_SUPPORTED*);
  230. #define UnlockPubScreenList UnlockPubScreenList_NOT_SUPPORTED
  231.   void UnlockPubScreenList(struct NOT_SUPPORTED*);
  232. #define NextPubScreen NextPubScreen_NOT_SUPPORTED
  233.   UBYTE *NextPubScreen(struct NOT_SUPPORTED*, struct Screen *screen, UBYTE *namebuf );
  234. #define SetDefaultPubScreen SetDefaultPubScreen_NOT_SUPPORTED
  235.   void SetDefaultPubScreen(struct NOT_SUPPORTED*, UBYTE *name );
  236. #define SetPubScreenModes SetPubScreenModes_NOT_SUPPORTED
  237.   UWORD SetPubScreenModes(struct NOT_SUPPORTED*, unsigned long modes );
  238. #define ObtainGIRPort ObtainGIRPort_NOT_SUPPORTED
  239.   struct RastPort *ObtainGIRPort(struct NOT_SUPPORTED*, struct GadgetInfo *gInfo );
  240. #define ReleaseGIRPort ReleaseGIRPort_NOT_SUPPORTED
  241.   void ReleaseGIRPort(struct NOT_SUPPORTED*, struct RastPort *rp );
  242. #define GadgetMouse GadgetMouse_NOT_SUPPORTED
  243.   void GadgetMouse(struct NOT_SUPPORTED*,struct Gadget*,struct GadgetInfo*,WORD*);
  244. #define GetDefaultPubScreen GetDefaultPubScreen_NOT_SUPPORTED
  245.   void GetDefaultPubScreen(struct NOT_SUPPORTED*, UBYTE *nameBuffer );
  246. #define BuildEasyRequestArgs BuildEasyRequestArgs_NOT_SUPPORTED
  247.   struct Window *BuildEasyRequestArgs(struct NOT_SUPPORTED*,struct Window*,struct EasyStruct*,ULONG,APTR);
  248. #define BuildEasyRequest BuildEasyRequest_NOT_SUPPORTED
  249.   struct Window *BuildEasyRequest(struct NOT_SUPPORTED*,struct Window*,struct EasyStruct*,ULONG, ... );
  250. #define DrawImageState DrawImageState_NOT_SUPPORTED
  251.   void DrawImageState(struct NOT_SUPPORTED*,struct RastPort*,struct Image*,long,long,ULONG,struct DrawInfo*);
  252. #define PointInImage PointInImage_NOT_SUPPORTED
  253.   BOOL PointInImage(struct NOT_SUPPORTED*, unsigned long point, struct Image *image );
  254. #define EraseImage EraseImage_NOT_SUPPORTED
  255.   void EraseImage(struct NOT_SUPPORTED*,struct RastPort*,struct Image*,long,long);
  256. #define NextObject NextObject_NOT_SUPPORTED
  257.   APTR NextObject(struct NOT_SUPPORTED*, APTR objectPtrPtr );
  258. #define MakeClass MakeClass_NOT_SUPPORTED
  259.   struct IClass *MakeClass(struct NOT_SUPPORTED*,UBYTE*,UBYTE*,struct IClass*,ULONG,ULONG);
  260. #define AddClass AddClass_NOT_SUPPORTED
  261.   void AddClass(struct NOT_SUPPORTED*, struct IClass *classPtr );
  262. #define ResetMenuStrip ResetMenuStrip_NOT_SUPPORTED
  263.   BOOL ResetMenuStrip(struct NOT_SUPPORTED*, struct Window *window, struct Menu *menu );
  264. #define RemoveClass RemoveClass_NOT_SUPPORTED
  265.   void RemoveClass(struct NOT_SUPPORTED*, struct IClass *classPtr );
  266. #define FreeClass FreeClass_NOT_SUPPORTED
  267.   BOOL FreeClass(struct NOT_SUPPORTED*, struct IClass *classPtr );
  268. #define AllocScreenBuffer AllocScreenBuffer_NOT_SUPPORTED
  269.   struct ScreenBuffer *AllocScreenBuffer(struct NOT_SUPPORTED*,struct Screen*,struct BitMap*,ULONG);
  270. #define FreeScreenBuffer FreeScreenBuffer_NOT_SUPPORTED
  271.   void FreeScreenBuffer(struct NOT_SUPPORTED*, struct Screen *sc, struct ScreenBuffer *sb );
  272. #define ChangeScreenBuffer ChangeScreenBuffer_NOT_SUPPORTED
  273.   ULONG ChangeScreenBuffer(struct NOT_SUPPORTED*, struct Screen *sc, struct ScreenBuffer *sb );
  274. #define ScreenDepth ScreenDepth_NOT_SUPPORTED
  275.   void ScreenDepth(struct NOT_SUPPORTED*, struct Screen *screen, unsigned long flags, APTR reserved );
  276. #define ScreenPosition ScreenPosition_NOT_SUPPORTED
  277.   void ScreenPosition(struct NOT_SUPPORTED*,struct Screen*,ULONG,long,long,long,long);
  278. #define LendMenus LendMenus_NOT_SUPPORTED
  279.   void LendMenus(struct NOT_SUPPORTED*, struct Window *fromwindow, struct Window *towindow );
  280. #define DoGadgetMethodA DoGadgetMethodA_NOT_SUPPORTED
  281.   ULONG DoGadgetMethodA(struct NOT_SUPPORTED*,struct Gadget*,struct Window*,struct Requester*,APTR);
  282. #define DoGadgetMethod DoGadgetMethod_NOT_SUPPORTED
  283.   ULONG DoGadgetMethod(struct NOT_SUPPORTED*,struct Gadget*,struct Window*,struct Requester*,ULONG, ... );
  284. #define SetWindowPointerA SetWindowPointerA_NOT_SUPPORTED
  285.   void SetWindowPointerA(struct NOT_SUPPORTED*, struct Window *win, struct TagItem *taglist );
  286. #define SetWindowPointer SetWindowPointer_NOT_SUPPORTED
  287.   void SetWindowPointer(struct NOT_SUPPORTED*, struct Window *win, unsigned long tag1, ... );
  288. #define TimedDisplayAlert TimedDisplayAlert_NOT_SUPPORTED
  289.   BOOL TimedDisplayAlert(struct NOT_SUPPORTED*,ULONG,UBYTE*,ULONG,ULONG);
  290. #define HelpControl HelpControl_NOT_SUPPORTED
  291.   void HelpControl(struct NOT_SUPPORTED*, struct Window *win, unsigned long flags );
  292.  
  293. #endif /** __IGNORE_NOT_SUPPORTED__ **/
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303. #ifdef __cplusplus
  304. }
  305. #endif
  306.  
  307. #endif     /* CLIB_INTUITION_PROTOS_H */
  308.