home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / Painting / XiPaint3.2-Aminet11.lzx / XiPaint / Developer / OutputLib / clib / xiwin_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-22  |  5.6 KB  |  139 lines

  1. /* Last Change: Herbert / 21. August 1995  19:20:46 */
  2.  
  3. /****  Verwaltung  ****/
  4.  
  5. VOID XW_SetLibParams(struct WinSet *NewSet);
  6. ULONG XW_SetReg(ULONG Tag, ULONG Data);
  7.  
  8.  
  9. /****  Window  ****/
  10.  
  11. struct Display *XW_OpenDisplay(struct xo_init *Hardware, BOOL BackPaint);
  12. VOID XW_CloseDisplay(struct Display *Display);
  13.  
  14. struct Box *XW_InitBox(SHORT X, SHORT Y, SHORT Width, SHORT Height, SHORT Depth, unsigned char *Title, LONG BoxID);
  15. SHORT XW_OpenBox(struct Display *Display, struct Box *NewBox);
  16. void XW_CloseBox(struct Box *Box);
  17. SHORT XW_BoxToFront(struct Box *Box);
  18. SHORT XW_BoxToBack(struct Box *Box);
  19. SHORT XW_ChangeBox(struct Box *Box, SHORT NewX, SHORT NewY, SHORT NewWidth, SHORT NewHeight);
  20. void XW_ActivateBox(struct Box *Box);
  21.  
  22. void XW_ClearBox(struct Box *Box);
  23. SHORT XW_RotateBox(struct Box *Box);
  24.  
  25. BOOL XW_AnyBoxOpen(struct Display *Display);
  26. BOOL XW_IsBoxOpen(struct Display *Display, struct Box *Box);
  27.  
  28. void XW_ActivateButton(struct Box *Box, struct Button *Button);
  29.  
  30.  
  31. /****  Button  ****/
  32.  
  33. struct Button *XW_AddNormal(struct Box *Box, struct NewButton *NewButton, SHORT ButtonMode);
  34. struct Button *XW_AddImage(struct Box *Box, struct NewButton *NewButton, SHORT ButtonMode);
  35. struct Button *XW_AddString(struct Box *Box, struct NewButton *NewButton);
  36. struct Button *XW_AddNumeric(struct Box *Box, struct NewButton *NewButton);
  37. struct Button *XW_AddDNumeric(struct Box *Box, struct NewButton *NewButton);
  38. struct Button *XW_AddScroll(struct Box *Box, struct NewButton *NewButton, SHORT ButtonMode);
  39. struct Button *XW_AddListView(struct Box *Box, struct NewButton *NewButton);
  40. struct Button *XW_AddCycle(struct Box *Box, struct NewButton *NewButton);
  41. struct Button *XW_AddCheck(struct Box *Box, struct NewButton *NewButton);
  42.  
  43. SHORT XW_AddKeep(struct Box *Box, struct Button *Button);
  44.  
  45. struct DropArea *XW_AddDropArea(struct Box *Box, LONG AreaID, SHORT X, SHORT Y, SHORT Width, SHORT Height);
  46. VOID XW_RemoveDropArea(struct Box *Box, struct DropArea *DropArea);
  47.  
  48. void XW_RemoveButton(struct Box *Box, struct Button *Button);
  49. void XW_FreeButton(struct Button *Button);
  50.  
  51. char *XW_GetLVResult(struct Button *ListView);
  52.  
  53. short XW_AddLVEntry(struct Box *Box, struct Button *Button, char *Text, UBYTE Color, UBYTE Pri);
  54. void XW_RemoveLVEntry(struct Box *Box, struct Button *Button, char *Text);
  55. void XW_RemoveAllLVEntry(struct Box *Box, struct Button *Button);
  56. void XW_SortLV(struct Box *Box, struct Button *Button);
  57.  
  58. void XW_SetNormal(struct Box *Box, struct Button *Button, BOOL Down);
  59. void XW_SetString(struct Box *Box, struct Button *Button, char *NewText);
  60. void XW_SetNumeric(struct Box *Box, struct Button *Button, LONG NewValue);
  61. void XW_SetDNumeric(struct Box *Box, struct Button *Button, double *NewValue);
  62. void XW_SetScroll(struct Box *Box, struct Button *Button, LONG NewValue);
  63. void XW_SetListView(struct Box *Box, struct Button *Button, SHORT NewPos, SHORT Mode);
  64. void XW_SetCycle(struct Box *Box, struct Button *Button, SHORT NewNum);
  65. void XW_SetCheck(struct Box *Box, struct Button *Button, BOOL Checked);
  66.  
  67. void XW_RefreshButtons(struct Box *Box);
  68.  
  69.  
  70. /****  Menu  ****/
  71.  
  72. struct BMenu *XW_AddMenu(struct Box *Box, char *MenuTitle);
  73. struct BItem *XW_AddItem(struct BMenu *Menu, char *ItemText, SHORT Mode, LONG ItemID, UBYTE ShortKey, USHORT ShortQual);
  74. struct BSubItem *XW_AddSubItem(struct BItem *Item, char *SubText, SHORT Mode, LONG SubID, UBYTE ShortKey, USHORT ShortQual);
  75. void XW_RemoveMenu(struct BMenu *Menu);
  76. void XW_RemoveItem(struct BItem *Item);
  77. void XW_RemoveSubItem(struct BSubItem *SubItem);
  78.  
  79. void XW_SetMenu(struct Box *Box);
  80. void XW_SetOtherMenu(struct Box *Box, struct Box *OtherBox);
  81. void XW_ClearMenu(struct Box *Box);
  82.  
  83. void XW_DisableAllMenus(struct Box *Box);
  84. void XW_DisableMenu(struct BMenu *Menu);
  85. void XW_DisableItem(struct BItem *Item);
  86. void XW_DisableSubItem(struct BSubItem *SubItem);
  87. void XW_EnableAllMenus(struct Box *Box);
  88. void XW_EnableMenu(struct BMenu *Menu);
  89. void XW_EnableItem(struct BItem *Item);
  90. void XW_EnableSubItem(struct BSubItem *SubItem);
  91.  
  92. void XW_CheckItem(struct BItem *Item, BOOL State);
  93. void XW_CheckSubItem(struct BSubItem *SubItem, BOOL State);
  94.  
  95.  
  96. /****  Update  ****/
  97.  
  98. void XW_UpdateBox(struct Box *Box, SHORT X, SHORT Y, SHORT Width, SHORT Height);
  99. void XW_UpdateFrame(struct Display *Display, SHORT X, SHORT Y, SHORT Width, SHORT Height);
  100.  
  101. void XW_CopyAreaBox(struct Box *Box, SHORT SrcX, SHORT SrcY, SHORT Width, SHORT Height, SHORT DestX, SHORT DestY);
  102.  
  103. SHORT XW_InitUpdateHook(struct Box *Box);
  104. VOID XW_DeleteUpdateHook(struct Box *Box);
  105. VOID XW_SetUpdateHook(SHORT HookNr, __far void (* __asm HookPtr)(register __a0 struct Box *, register __d0 SHORT, register __d1 SHORT, register __d2 SHORT, register __d3 SHORT));
  106.  
  107.  
  108. /****  Rubber  ****/
  109.  
  110. VOID XW_MoveMouse(struct Display *Display);
  111.  
  112. VOID XW_RefreshMouse(struct Display *Display);
  113.  
  114. VOID XW_DeleteMouse(struct Display *Display);
  115. VOID XW_DrawMouse(struct Display *Display);
  116.  
  117. VOID XW_OnMouse(struct Display *Display);
  118. VOID XW_OffMouse(struct Display *Display);
  119.  
  120. VOID XW_SetMouseBox(struct Box *Box, long MouseType, SHORT x1, SHORT y1, SHORT x2, SHORT y2);
  121. VOID XW_SetMouseDisplay(struct Display *Display, long MouseType, SHORT x1, SHORT y1, SHORT x2, SHORT y2);
  122. VOID XW_SetStdMouse(struct Box *Box, BOOL Mode);
  123.  
  124. VOID XW_WorkPointer(struct Display *Display);
  125. VOID XW_WaitPointer(struct Display *Display);
  126.  
  127. VOID XW_RectOn2(struct Display *Display, SHORT x1, SHORT y1, SHORT x2, SHORT y2);
  128.  
  129.  
  130. /****  Mouse  ****/
  131.  
  132. VOID XW_SetTicks(SHORT TicksPerSec);
  133.  
  134. VOID XW_GetEvent(struct Display *Display, struct Event *Event, UWORD ActionFlags);
  135. VOID XW_PeekEvent(struct Display *Display, struct Event *Event, UWORD ActionFlags);
  136. VOID XW_FlushEvents(struct Display *Display);
  137.  
  138. VOID XW_SetBoxCoord(struct Box *Box, SHORT MouseX, SHORT MouseY);
  139.