home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / IncPOS.lzx / proto / pIntui2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-18  |  11.0 KB  |  192 lines

  1. #ifndef __INC_POS_PROTO_PINTUI_H
  2. #define __INC_POS_PROTO_PINTUI_H
  3. /*******************************************************************
  4.  Includes Release 24
  5.  (C) Copyright 1995-1997 proDAD
  6.      All Rights Reserved
  7.  
  8.  $AUT Holger Burkarth
  9.  $DAT >>pIntui2.h<<   29 Jan 1997    15:55:09 - (C) ProDAD
  10. *******************************************************************/
  11. #ifndef __INC_POS_PEXEC_LIST_H
  12. #include <pExec/List.h>
  13. #endif
  14.  
  15.  
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. /*------ IntuBase  -------------------------------------------------------*/
  22. struct pOS_Process* pOS_InitIntuiIOReq(_R_A0 struct pOS_IntuiStdReq*);
  23. VOID pOS_SendInputEvent(_R_A0 const struct pOS_InputEvent*);
  24. BOOL pOS_CmpDoubleClick(_R_A0 const struct pOS_DoubleClick* just,_R_A1 const struct pOS_DoubleClick*);
  25. BOOL pOS_CheckDoubleClick(_R_A0 const struct pOS_IntuiMessage*);
  26. BOOL pOS_SysIMessage(_R_A0 struct pOS_IntuiMessage*);
  27. struct pOS_IntuiMessage* pOS_CreateIMessage(_R_A0 struct pOS_MsgPort *replyPort,_R_D0 size_t dataSize);
  28. VOID pOS_DeleteIMessage(_R_A0 __ARID__ struct pOS_IntuiMessage*);
  29. VOID pOS_DisplayBeep(_R_A0 struct pOS_Screen*,_R_D0 ULONG type);
  30. VOID pOS_LockIntuiBase(_R_A0 struct pOS_IntuiUnit*);
  31. VOID pOS_UnlockIntuiBase(_R_A0 struct pOS_IntuiUnit*);
  32. VOID pOS_LockIntuiGadgets(_R_A0 struct pOS_Screen*);
  33. VOID pOS_UnlockIntuiGadgets(_R_A0 struct pOS_Screen*);
  34. VOID pOS_LockIntuiGadget(_R_A0 struct pOS_Window*);
  35. VOID pOS_UnlockIntuiGadget(_R_A0 struct pOS_Window*);
  36. VOID pOS_CurrentTime(_R_A0 ULONG* sec,_R_A1 ULONG* mic);
  37.  
  38.  
  39.  
  40. /*------ IntuScr  --------------------------------------------------------*/
  41. __ARID__ struct pOS_Screen* pOS_OpenScreenA(_R_A0 const struct pOS_TagItem*);
  42. BOOL pOS_CloseScreen(_R_A0 __ARID__ struct pOS_Screen*);
  43. struct pOS_Screen* pOS_LockPubScreen(_R_A0 const CHAR*);
  44. BOOL pOS_UnlockPubScreen(_R_A0 struct pOS_Screen*);
  45. ULONG pOS_PubScreenStatus(_R_A0 struct pOS_Screen*,_R_D0 ULONG);
  46. struct pOS_ColorMap* pOS_GetIColorMap(_R_A0 const struct pOS_Screen*,_R_A1 const struct pOS_Window*);
  47. BOOL pOS_GetWindowBorder(_R_A0 struct pOS_Screen*,_R_A1 struct pOS_WBox*,_R_D0 ULONG winFlags,_R_D1 ULONG gadFlags,_R_D2 ULONG gadAct);
  48. BOOL pOS_SetScreenPosition(_R_A0 struct pOS_Screen*,_R_D0 SLONG x,_R_D1 SLONG y);
  49. BOOL pOS_ScreenToFront(_R_A0 struct pOS_Screen*);
  50. BOOL pOS_ScreenToBack(_R_A0 struct pOS_Screen*);
  51.  
  52.  
  53.  
  54. /*------ IntuWin  --------------------------------------------------------*/
  55. __ARID__ struct pOS_Window* pOS_OpenWindowA(_R_A0 const struct pOS_TagItem*);
  56. BOOL pOS_CloseWindow(_R_A0 __ARID__ struct pOS_Window*);
  57. BOOL pOS_ChangeWindowBox(_R_A0 struct pOS_Window*,_R_D0 SLONG x,_R_D1 SLONG y,_R_D2 SLONG width,_R_D3 SLONG height);
  58. BOOL pOS_ModifyIDCMP(_R_A0 struct pOS_Window*,_R_D0 ULONG idcmp);
  59. BOOL pOS_ModifySharedIDCMP(_R_A0 struct pOS_Window*,_R_D0 ULONG idcmp,_R_D1 ULONG mask);
  60. BOOL pOS_WindowToFront(_R_A0 struct pOS_Window*);
  61. BOOL pOS_WindowToBack(_R_A0 struct pOS_Window*);
  62. BOOL pOS_BeginRefresh(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_List*);
  63. BOOL pOS_EndRefresh(_R_A0 struct pOS_Window*,_R_D0 ULONG);
  64. VOID pOS_RefreshWindowFrame(_R_A0 struct pOS_Window*);
  65. VOID pOS_InvalidWindowRect(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_Rectangle*,_R_D0 ULONG mode);
  66. VOID pOS_ActivateWindow(_R_A0 struct pOS_Window*);
  67. BOOL pOS_ZipWindow(_R_A0 struct pOS_Window*);
  68. VOID pOS_SetWindowMenu(_R_A0 struct pOS_Window*,_R_A1 struct pOS_ExList* mList,_R_A2 struct pOS_ExList* oldMenu);
  69. VOID pOS_GetWindowIBox(_R_A0 struct pOS_Window*,_R_A1 struct pOS_IBox*,_R_A2 const struct pOS_Layer*);
  70. BOOL pOS_CheckVisibleIBox(_R_A0 const struct pOS_Window*,_R_A1 const struct pOS_IBox*,_R_A2 const struct pOS_Layer*);
  71. BOOL pOS_CheckVisibleIRect(_R_A0 const struct pOS_Window*,_R_A1 const struct pOS_Rectangle*,_R_A2 const struct pOS_Layer*);
  72. BOOL pOS_SetWindowLimits(_R_A0 struct pOS_Window*,_R_D0 ULONG minWidth,_R_D1 ULONG minHeight,
  73.                          _R_D2 ULONG maxWidth,_R_D3 ULONG maxHeight);
  74. VOID pOS_SetWindowTitles(_R_A0 struct pOS_Window*,_R_A1 const CHAR* winTitle,_R_A2 const CHAR* scrTitle);
  75. VOID  pOS_InactivateWindow(_R_A0 struct pOS_Window* win);
  76. ULONG pOS_SetWindowBusy(_R_A0 struct pOS_Window* win,_R_D0 ULONG busyState);
  77. struct pOS_Task* pOS_SetWindowTask(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Task*,_R_D0 SLONG priAct,_R_D1 SLONG priDeact);
  78. struct pOS_MenuList* pOS_SetMenuStrip(_R_A0 struct pOS_Window*,_R_A1 struct pOS_MenuList*);
  79. ULONG pOS_SetMouseQueue(_R_A0 struct pOS_Window*,_R_D0 ULONG cnt);
  80. ULONG pOS_SetKeyQueue(_R_A0 struct pOS_Window*,_R_D0 ULONG cnt);
  81. ULONG pOS_SetUpdateGadQueue(_R_A0 struct pOS_Window*,_R_D0 ULONG cnt);
  82. struct pOS_GfxMap* pOS_SetWinBgFill(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_GfxMap*,_R_D0 SLONG x,_R_D1 SLONG y);
  83. VOID pOS_AddWindowTickHandler(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Callback*);
  84. VOID pOS_RemWindowTickHandler(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Callback*);
  85. BOOL pOS_GetVisibleIRect(_R_A0 const struct pOS_Window*,_R_A1 struct pOS_Rectangle*,_R_A2 const struct pOS_Layer*);
  86.  
  87.  
  88.  
  89. /*------ IntuGad  --------------------------------------------------------*/
  90. VOID  pOS_AddGadgets(_R_A0 struct pOS_Window*,_R_A1 struct pOS_List*);
  91. VOID  pOS_RemGadgets(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_Gadget*,_R_A2 struct pOS_List*,_R_D0 ULONG,_R_D1 ULONG);
  92. VOID  pOS_AddGadget(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Gadget*);
  93. VOID  pOS_RemGadget(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Gadget*);
  94. VOID  pOS_RefreshGadgets(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_Gadget*,_R_D0 ULONG anz);
  95. VOID  pOS_RefreshLayerGadgets(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_Layer*);
  96. __ARID__ APTR pOS_NewIObjectA(_R_A0 struct pOS_NClass*,_R_A1 const CHAR*,_R_D0 ULONG ver,_R_A2 const struct pOS_TagItem*);
  97. VOID  pOS_DisposeIObject(_R_A0 __ARID__ APTR);
  98. ULONG pOS_SetGadgetAttrsA(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Gadget*,_R_A2 const struct pOS_TagItem*);
  99. BOOL  pOS_ActivateGadget(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Gadget*);
  100. VOID  pOS_EnableGadget(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Gadget*,_R_D0 ULONG enable);
  101. VOID  pOS_RefreshGadgetsMd(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_Gadget*,_R_D0 ULONG anz,_R_D1 ULONG mode);
  102. VOID  pOS_LayoutGadgets(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_IBox*,_R_D0 ULONG flags);
  103. BOOL  pOS_GetGadgetAttr(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Gadget*,_R_D0 ULONG id,_R_A2 ULONG*);
  104. BOOL  pOS_InactivateGadget(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Gadget*);
  105. BOOL  pOS_IsGadgetActive(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_Gadget*);
  106.  
  107.  
  108. /*------ IObj  --------------------------------------------------------*/
  109. VOID pOS_DrawIObj(_R_D0 SLONG x,_R_D1 SLONG y,
  110.                   _R_A0 const struct pOS_IntuiObj*,_R_A1 struct pOS_RastPort*,
  111.                   _R_A2 const struct pOS_DrawInfo*,_R_D2 ULONG mode,_R_A3 const struct pOS_Rectangle* clip);
  112. VOID pOS_IObjDisposeList(_R_A0 struct pOS_IntuiObj*);
  113. VOID pOS_IObjGetBoxList(_R_A0 const struct pOS_IntuiObj*,
  114.                   _R_A1 struct pOS_IObjectMethod*,_R_A2 struct pOS_Rectangle*);
  115. VOID pOS_IObjDrawList(_R_A0 const struct pOS_IntuiObj*,_R_A1 struct pOS_IObjectMethod*,
  116.                       _R_A2 const struct pOS_Rectangle* lay,_R_D0 ULONG mode,_R_D1 ULONG layout,
  117.                       _R_D2 ULONG nT,_R_D3 ULONG oT,_R_A3 const struct pOS_Rectangle* clip);
  118.  
  119.  
  120.  
  121.  
  122. /*------ Menu  --------------------------------------------------------*/
  123. ULONG pOS_PreLayoutMenu(_R_A0 struct pOS_MenuList*,_R_A1 const struct pOS_DrawInfo*);
  124. BOOL  pOS_LayoutMenu(_R_A0 struct pOS_ExList*,_R_A1 const struct pOS_DrawInfo*,_R_D0 SLONG,_R_D1 SLONG);
  125. __ARID__
  126. struct pOS_MenuList* pOS_CreateMenuTagA(_R_A0 const struct pOS_DrawInfo*,_R_A1 const struct pOS_MenuTag*,_R_A2 ULONG*);
  127. VOID  pOS_DeleteMenu(__ARID__ _R_A0 struct pOS_MenuList*);
  128. ULONG pOS_SetMenuHighLight(_R_A0 struct pOS_MenuDraw*,_R_A1 struct pOS_MenuItem*);
  129. ULONG pOS_MenuHandleIEvent(_R_A0 struct pOS_MenuDraw*,_R_A1 const struct pOS_InputEvent*);
  130. BOOL  pOS_OpenHandleMenuIEvent(_R_A0 struct pOS_MenuDraw*);
  131. VOID  pOS_CloseHandleMenuIEvent(_R_A0 struct pOS_MenuDraw*);
  132. struct pOS_MenuItem* pOS_GetMenuItemFromNum(_R_A0 const struct pOS_ExList*,_R_A1 const struct pOS_MenuNum*);
  133. VOID  pOS_GetMenuNumFromItem(_R_A0 const struct pOS_MenuItem*,_R_A1 struct pOS_MenuNum*);
  134. BOOL  pOS_SetWindowMenuChecker(_R_A0 const struct pOS_Window*,_R_A1 const struct pOS_MenuNum* menuNum,_R_D0 BOOL set);
  135. SLONG pOS_GetWindowMenuChecker(_R_A0 const struct pOS_Window*,_R_A1 const struct pOS_MenuNum* menuNum);
  136. BOOL  pOS_EnableWindowMenu(_R_A0 const struct pOS_Window*,_R_A1 const struct pOS_MenuNum* menuNum,_R_D0 BOOL enable);
  137. struct pOS_MenuItem* pOS_GetMenuVKey(_R_A0 const struct pOS_MenuList*,_R_D0 ULONG key);
  138. BOOL pOS_HandleMenuItemEvent(_R_A0 struct pOS_MenuList*,_R_A1 struct pOS_MenuItem*);
  139.  
  140.  
  141. /*------ Help  --------------------------------------------------------*/
  142. __ARID__ struct pOS_BubbleHelp *pOS_CreateBubbleHelpA(_R_A0 const struct pOS_TagItem*);
  143. VOID pOS_DeleteBubbleHelp(_R_A0 __ARID__ struct pOS_BubbleHelp*);
  144.  
  145.  
  146. /*------ Easy  --------------------------------------------------------*/
  147. struct pOS_Window* pOS_CreateRequestWinA(_R_A0 const struct pOS_TagItem*);
  148. VOID pOS_DeleteRequestWin(_R_A0 struct pOS_Window*);
  149. SLONG pOS_EasyRequestArgs(_R_A0 struct pOS_Window*,_R_A1 const struct pOS_EasyStruct*,_R_A2 ULONG* idcmp,_R_A3 const ULONG* argv);
  150. SLONG pOS_RequestWinHandler(_R_A0 struct pOS_Window*,_R_A1 ULONG* idcmp,_R_D0 BOOL wait);
  151.  
  152.  
  153.  
  154.  
  155. /*------ Drag  --------------------------------------------------------*/
  156. VOID pOS_AddDrag(_R_A0 struct pOS_IntuiUnit*,_R_A1 struct pOS_Drag*);
  157. VOID pOS_RemDrag(_R_A0 struct pOS_IntuiUnit*,_R_A1 struct pOS_Drag*);
  158. __ARID__ struct pOS_Drag* pOS_CreateDragA(_R_A0 const struct pOS_TagItem*);
  159. VOID pOS_DeleteDrag(_R_A0 __ARID__ struct pOS_Drag*);
  160. BOOL pOS_CreateDragGfx(_R_A0 struct pOS_RastPort*,_R_A1 struct pOS_Drag*);
  161. VOID pOS_DeleteDragGfx(_R_A0 struct pOS_Drag*);
  162. VOID pOS_ConstructDragList(_R_A0 struct pOS_DragList*);
  163. VOID pOS_DestructDragList(_R_A0 struct pOS_DragList*);
  164. BOOL pOS_LayoutDragList(_R_A0 struct pOS_DragList*,_R_A1 struct pOS_RastPort*);
  165. BOOL pOS_CreateDragListGfx(_R_A0 struct pOS_DragList*,_R_A1 struct pOS_RastPort*);
  166. VOID pOS_DeleteDragListGfx(_R_A0 struct pOS_DragList*);
  167. VOID pOS_RenderDragList(_R_A0 struct pOS_DragList*,_R_D0 ULONG drMode);
  168. VOID pOS_MoveDragList(_R_A0 struct pOS_DragList*,_R_D0 SLONG dx,_R_D1 SLONG dy,_R_D2 ULONG rdMode);
  169. VOID pOS_RestoreDragList(_R_A0 struct pOS_DragList*);
  170. VOID pOS_SaveDragList(_R_A0 struct pOS_DragList*);
  171. const struct pOS_DropAttribute* pOS_GetDropAttFromDragList(_R_A0 struct pOS_DragList*,
  172.                     _R_A1 const struct pOS_GadgetDrop*,_R_A2 const struct pOS_DropAttribute*);
  173.  
  174.  
  175.  
  176.  
  177.  
  178. __ARID__ struct pOS_Screen* pOS_OpenScreen(ULONG tag,...);
  179. __ARID__ struct pOS_Window* pOS_OpenWindow(ULONG tag,...);
  180. __ARID__ APTR pOS_NewIObject(_R_A0 struct pOS_NClass*,_R_A1 const CHAR*,_R_D0 ULONG ver,ULONG tag,...);
  181. ULONG pOS_SetGadgetAttrs(_R_A0 struct pOS_Window*,_R_A1 struct pOS_Gadget*,ULONG tag,...);
  182. struct pOS_BubbleHelp *pOS_CreateBubbleHelp(ULONG tag,...);
  183. struct pOS_Window* pOS_CreateRequestWin(ULONG tag,...);
  184. __ARID__ struct pOS_Drag* pOS_CreateDrag(ULONG tag,...);
  185.  
  186.  
  187. #ifdef __cplusplus
  188. }
  189. #endif
  190.  
  191. #endif
  192.