home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROS_m68k_bin.lha / AROS / include / defines / intuition.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-08  |  12.6 KB  |  334 lines

  1. #ifndef DEFINES_INTUITION_H
  2. #define DEFINES_INTUITION_H
  3.  
  4. #ifndef  EXEC_TYPES_H
  5. #   include <exec/types.h>
  6. #endif
  7. #ifndef AROS_LIBCALL_H
  8. #   include <aros/libcall.h>
  9. #endif
  10.  
  11. /*
  12.     Defines
  13. */
  14. #define ActivateWindow(window) \
  15.     AROS_LC1(void, ActivateWindow, \
  16.     AROS_LCA(struct Window *, window, A0), \
  17.     struct IntuitionBase *, IntuitionBase, 75, Intuition)
  18.  
  19. #define AddClass(classPtr) \
  20.     AROS_LC1(void, AddClass, \
  21.     AROS_LCA(struct IClass *, classPtr, A0), \
  22.     struct IntuitionBase *, IntuitionBase, 114, Intuition)
  23.  
  24. #define AutoRequest(window, body, posText, negText, pFlag, nFlag, width, height) \
  25.     AROS_LC8(BOOL, AutoRequest, \
  26.     AROS_LCA(struct Window    *, window, A0), \
  27.     AROS_LCA(struct IntuiText *, body, A1), \
  28.     AROS_LCA(struct IntuiText *, posText, A2), \
  29.     AROS_LCA(struct IntuiText *, negText, A3), \
  30.     AROS_LCA(ULONG             , pFlag, D0), \
  31.     AROS_LCA(ULONG             , nFlag, D1), \
  32.     AROS_LCA(ULONG             , width, D2), \
  33.     AROS_LCA(ULONG             , height, D3), \
  34.     struct IntuitionBase *, IntuitionBase, 58, Intuition)
  35.  
  36. #define BeginRefresh(window) \
  37.     AROS_LC1(void, BeginRefresh, \
  38.     AROS_LCA(struct Window *, window, A0), \
  39.     struct IntuitionBase *, IntuitionBase, 59, Intuition)
  40.  
  41. #define ClearMenuStrip(window) \
  42.     AROS_LC1(void, ClearMenuStrip, \
  43.     AROS_LCA(struct Window *, window, A0), \
  44.     struct IntuitionBase *, IntuitionBase, 9, Intuition)
  45.  
  46. #define CloseScreen(screen) \
  47.     AROS_LC1(BOOL, CloseScreen, \
  48.     AROS_LCA(struct Screen *, screen, A0), \
  49.     struct IntuitionBase *, IntuitionBase, 11, Intuition)
  50.  
  51. #define CloseWindow(window) \
  52.     AROS_LC1(void, CloseWindow, \
  53.     AROS_LCA(struct Window *, window, A0), \
  54.     struct IntuitionBase *, IntuitionBase, 12, Intuition)
  55.  
  56. #define DisposeObject(object) \
  57.     AROS_LC1(void, DisposeObject, \
  58.     AROS_LCA(APTR, object, A0), \
  59.     struct IntuitionBase *, IntuitionBase, 107, Intuition)
  60.  
  61. #define DoGadgetMethodA(gad, win, req, msg) \
  62.     AROS_LC4(IPTR, DoGadgetMethodA, \
  63.     AROS_LCA(struct Gadget    *, gad, A0), \
  64.     AROS_LCA(struct Window    *, win, A1), \
  65.     AROS_LCA(struct Requester *, req, A2), \
  66.     AROS_LCA(Msg               , msg, A3), \
  67.     struct IntuitionBase *, IntuitionBase, 135, Intuition)
  68.  
  69. #define DrawBorder(rp, border, leftOffset, topOffset) \
  70.     AROS_LC4(void, DrawBorder, \
  71.     AROS_LCA(struct RastPort *, rp, A0), \
  72.     AROS_LCA(struct Border   *, border, A1), \
  73.     AROS_LCA(LONG             , leftOffset, D0), \
  74.     AROS_LCA(LONG             , topOffset, D1), \
  75.     struct IntuitionBase *, IntuitionBase, 18, Intuition)
  76.  
  77. #define DrawImage(rp, image, leftOffset, topOffset) \
  78.     AROS_LC4(void, DrawImage, \
  79.     AROS_LCA(struct RastPort *, rp, A0), \
  80.     AROS_LCA(struct Image    *, image, A1), \
  81.     AROS_LCA(LONG             , leftOffset, D0), \
  82.     AROS_LCA(LONG             , topOffset, D1), \
  83.     struct IntuitionBase *, IntuitionBase, 19, Intuition)
  84.  
  85. #define DrawImageState(rp, image, leftOffset, topOffset, state, drawInfo) \
  86.     AROS_LC6(void, DrawImageState, \
  87.     AROS_LCA(struct RastPort *, rp,         A0), \
  88.     AROS_LCA(struct Image    *, image,      A1), \
  89.     AROS_LCA(LONG             , leftOffset, D0), \
  90.     AROS_LCA(LONG             , topOffset,  D1), \
  91.     AROS_LCA(ULONG            , state,      D2), \
  92.     AROS_LCA(struct DrawInfo *, drawInfo,   A2), \
  93.     struct IntuitionBase *, IntuitionBase, 103, Intuition)
  94.  
  95. #define EasyRequestArgs(window, easyStruct, idcmpPtr, args) \
  96.     AROS_LC4(LONG, EasyRequestArgs, \
  97.     AROS_LCA(struct Window     *, window, A0), \
  98.     AROS_LCA(struct EasyStruct *, easyStruct, A1), \
  99.     AROS_LCA(ULONG             *, idcmpPtr, A2), \
  100.     AROS_LCA(APTR               , args, A3), \
  101.     struct IntuitionBase *, IntuitionBase, 98, Intuition)
  102.  
  103. #define EndRefresh(window, complete) \
  104.     AROS_LC2(void, EndRefresh, \
  105.     AROS_LCA(struct Window *, window, A0), \
  106.     AROS_LCA(BOOL           , complete, D0), \
  107.     struct IntuitionBase *, IntuitionBase, 61, Intuition)
  108.  
  109. #define EraseImage(rp, image, leftOffset, topOffset) \
  110.     AROS_LC4(void, EraseImage, \
  111.     AROS_LCA(struct RastPort *, rp, A0), \
  112.     AROS_LCA(struct Image    *, image, A1), \
  113.     AROS_LCA(LONG             , leftOffset, D0), \
  114.     AROS_LCA(LONG             , topOffset, D1), \
  115.     struct IntuitionBase *, IntuitionBase, 105, Intuition)
  116.  
  117. #define FreeClass(classPtr) \
  118.     AROS_LC1(BOOL, FreeClass, \
  119.     AROS_LCA(struct IClass *, classPtr, A0), \
  120.     struct IntuitionBase *, IntuitionBase, 119, Intuition)
  121.  
  122. #define FreeScreenDrawInfo(screen, drawInfo) \
  123.     AROS_LC2(void, FreeScreenDrawInfo, \
  124.     AROS_LCA(struct Screen   *, screen, A0), \
  125.     AROS_LCA(struct DrawInfo *, drawInfo, A1), \
  126.     struct IntuitionBase *, IntuitionBase, 116, Intuition)
  127.  
  128. #define GetAttr(attrID, object, storagePtr) \
  129.     AROS_LC3(ULONG, GetAttr, \
  130.     AROS_LCA(ULONG   , attrID, D0), \
  131.     AROS_LCA(Object *, object, A0), \
  132.     AROS_LCA(IPTR *  , storagePtr, A1), \
  133.     struct IntuitionBase *, IntuitionBase, 109, Intuition)
  134.  
  135. #define GetDefaultPubScreen(nameBuffer) \
  136.     AROS_LC1(void, GetDefaultPubScreen, \
  137.     AROS_LCA(UBYTE *, nameBuffer, A0), \
  138.     struct IntuitionBase *, IntuitionBase, 97, Intuition)
  139.  
  140. #define GetScreenData(buffer, size, type, screen) \
  141.     AROS_LC4(LONG, GetScreenData, \
  142.     AROS_LCA(APTR           , buffer, A0), \
  143.     AROS_LCA(ULONG          , size, D0), \
  144.     AROS_LCA(ULONG          , type, D1), \
  145.     AROS_LCA(struct Screen *, screen, A1), \
  146.     struct IntuitionBase *, IntuitionBase, 71, Intuition)
  147.  
  148. #define GetScreenDrawInfo(screen) \
  149.     AROS_LC1(struct DrawInfo *, GetScreenDrawInfo, \
  150.     AROS_LCA(struct Screen *, screen, A0), \
  151.     struct IntuitionBase *, IntuitionBase, 115, Intuition)
  152.  
  153. #define IntuiTextLength(iText) \
  154.     AROS_LC1(LONG, IntuiTextLength, \
  155.     AROS_LCA(struct IntuiText *, iText, A0), \
  156.     struct IntuitionBase *, IntuitionBase, 55, Intuition)
  157.  
  158. #define LockIBase(What) \
  159.     AROS_LC1(ULONG, LockIBase, \
  160.     AROS_LCA(ULONG, What, D0), \
  161.     struct IntuitionBase *, IntuitionBase, 69, Intuition)
  162.  
  163. #define LockPubScreen(name) \
  164.     AROS_LC1(struct Screen *, LockPubScreen, \
  165.     AROS_LCA(UBYTE *, name, A0), \
  166.     struct IntuitionBase *, IntuitionBase, 85, Intuition)
  167.  
  168. #define MakeClass(classID, superClassID, superClassPtr, instanceSize, flags) \
  169.     AROS_LC5(struct IClass *, MakeClass, \
  170.     AROS_LCA(UBYTE         *, classID, A0), \
  171.     AROS_LCA(UBYTE         *, superClassID, A1), \
  172.     AROS_LCA(struct IClass *, superClassPtr, A2), \
  173.     AROS_LCA(ULONG          , instanceSize, D0), \
  174.     AROS_LCA(ULONG          , flags, D1), \
  175.     struct IntuitionBase *, IntuitionBase, 113, Intuition)
  176.  
  177. #define ModifyIDCMP(window, flags) \
  178.     AROS_LC2(BOOL, ModifyIDCMP, \
  179.     AROS_LCA(struct Window *, window, A0), \
  180.     AROS_LCA(ULONG          , flags, D0), \
  181.     struct IntuitionBase *, IntuitionBase, 25, Intuition)
  182.  
  183. #define ModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody) \
  184.     AROS_LC8(void, ModifyProp, \
  185.     AROS_LCA(struct Gadget    *, gadget, A0), \
  186.     AROS_LCA(struct Window    *, window, A1), \
  187.     AROS_LCA(struct Requester *, requester, A2), \
  188.     AROS_LCA(ULONG             , flags, D0), \
  189.     AROS_LCA(ULONG             , horizPot, D1), \
  190.     AROS_LCA(ULONG             , vertPot, D2), \
  191.     AROS_LCA(ULONG             , horizBody, D3), \
  192.     AROS_LCA(ULONG             , vertBody, D4), \
  193.     struct IntuitionBase *, IntuitionBase, 26, Intuition)
  194.  
  195. #define NewModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody, numGad) \
  196.     AROS_LC9(void, NewModifyProp, \
  197.     AROS_LCA(struct Gadget    *, gadget, A0), \
  198.     AROS_LCA(struct Window    *, window, A1), \
  199.     AROS_LCA(struct Requester *, requester, A2), \
  200.     AROS_LCA(ULONG             , flags, D0), \
  201.     AROS_LCA(ULONG             , horizPot, D1), \
  202.     AROS_LCA(ULONG             , vertPot, D2), \
  203.     AROS_LCA(ULONG             , horizBody, D3), \
  204.     AROS_LCA(ULONG             , vertBody, D4), \
  205.     AROS_LCA(LONG              , numGad, D5), \
  206.     struct IntuitionBase *, IntuitionBase, 78, Intuition)
  207.  
  208. #define NewObjectA(classPtr, classID, tagList) \
  209.     AROS_LC3(APTR, NewObjectA, \
  210.     AROS_LCA(struct IClass  *, classPtr, A0), \
  211.     AROS_LCA(UBYTE          *, classID, A1), \
  212.     AROS_LCA(struct TagItem *, tagList, A2), \
  213.     struct IntuitionBase *, IntuitionBase, 106, Intuition)
  214.  
  215. #define ObtainGIRPort(gInfo) \
  216.     AROS_LC1(struct RastPort *, ObtainGIRPort, \
  217.     AROS_LCA(struct GadgetInfo *, gInfo, A0), \
  218.     struct IntuitionBase *, IntuitionBase, 93, Intuition)
  219.  
  220. #define OpenScreen(newScreen) \
  221.     AROS_LC1(struct Screen *, OpenScreen, \
  222.     AROS_LCA(struct NewScreen *, newScreen, A0), \
  223.     struct IntuitionBase *, IntuitionBase, 33, Intuition)
  224.  
  225. #define OpenScreenTagList(newScreen, tagList) \
  226.     AROS_LC2(struct Screen *, OpenScreenTagList, \
  227.     AROS_LCA(struct NewScreen *, newScreen, A0), \
  228.     AROS_LCA(struct TagItem   *, tagList, A1), \
  229.     struct IntuitionBase *, IntuitionBase, 102, Intuition)
  230.  
  231. #define OpenWindow(newWindow) \
  232.     AROS_LC1(struct Window *, OpenWindow, \
  233.     AROS_LCA(struct NewWindow *, newWindow, A0), \
  234.     struct IntuitionBase *, IntuitionBase, 34, Intuition)
  235.  
  236. #define OpenWindowTagList(newWindow, tagList) \
  237.     AROS_LC2(struct Window *, OpenWindowTagList, \
  238.     AROS_LCA(struct NewWindow *, newWindow, A0), \
  239.     AROS_LCA(struct TagItem   *, tagList, A1), \
  240.     struct IntuitionBase *, IntuitionBase, 101, Intuition)
  241.  
  242. #define PointInImage(point, image) \
  243.     AROS_LC2(BOOL, PointInImage, \
  244.     AROS_LCA(ULONG,          point, D0), \
  245.     AROS_LCA(struct Image *, image, A0), \
  246.     struct IntuitionBase *, IntuitionBase, 104, Intuition)
  247.  
  248. #define PrintIText(rp, iText, leftOffset, topOffset) \
  249.     AROS_LC4(void, PrintIText, \
  250.     AROS_LCA(struct RastPort  *, rp, A0), \
  251.     AROS_LCA(struct IntuiText *, iText, A1), \
  252.     AROS_LCA(LONG              , leftOffset, D0), \
  253.     AROS_LCA(LONG              , topOffset, D1), \
  254.     struct IntuitionBase *, IntuitionBase, 36, Intuition)
  255.  
  256. #define RefreshGadgets(gadgets, window, requester) \
  257.     AROS_LC3(void, RefreshGadgets, \
  258.     AROS_LCA(struct Gadget    *, gadgets, A0), \
  259.     AROS_LCA(struct Window    *, window, A1), \
  260.     AROS_LCA(struct Requester *, requester, A2), \
  261.     struct IntuitionBase *, IntuitionBase, 37, Intuition)
  262.  
  263. #define RefreshGList(gadgets, window, requester, numGad) \
  264.     AROS_LC4(void, RefreshGList, \
  265.     AROS_LCA(struct Gadget    *, gadgets, A0), \
  266.     AROS_LCA(struct Window    *, window, A1), \
  267.     AROS_LCA(struct Requester *, requester, A2), \
  268.     AROS_LCA(LONG              , numGad, D0), \
  269.     struct IntuitionBase *, IntuitionBase, 72, Intuition)
  270.  
  271. #define RefreshWindowFrame(window) \
  272.     AROS_LC1(void, RefreshWindowFrame, \
  273.     AROS_LCA(struct Window *, window, A0), \
  274.     struct IntuitionBase *, IntuitionBase, 76, Intuition)
  275.  
  276. #define ReleaseGIRPort(rp) \
  277.     AROS_LC1(void, ReleaseGIRPort, \
  278.     AROS_LCA(struct RastPort *, rp, A0), \
  279.     struct IntuitionBase *, IntuitionBase, 94, Intuition)
  280.  
  281. #define RemoveClass(classPtr) \
  282.     AROS_LC1(void, RemoveClass, \
  283.     AROS_LCA(struct IClass *, classPtr, A0), \
  284.     struct IntuitionBase *, IntuitionBase, 118, Intuition)
  285.  
  286. #define SetAttrsA(object, tagList) \
  287.     AROS_LC2(ULONG, SetAttrsA, \
  288.     AROS_LCA(APTR            , object, A0), \
  289.     AROS_LCA(struct TagItem *, tagList, A1), \
  290.     struct IntuitionBase *, IntuitionBase, 108, Intuition)
  291.  
  292. #define SetDefaultPubScreen(name) \
  293.     AROS_LC1(void, SetDefaultPubScreen, \
  294.     AROS_LCA(UBYTE *, name, A0), \
  295.     struct IntuitionBase *, IntuitionBase, 90, Intuition)
  296.  
  297. #define SetWindowTitles(window, windowTitle, screenTitle) \
  298.     AROS_LC3(void, SetWindowTitles, \
  299.     AROS_LCA(struct Window *, window, A0), \
  300.     AROS_LCA(UBYTE         *, windowTitle, A1), \
  301.     AROS_LCA(UBYTE         *, screenTitle, A2), \
  302.     struct IntuitionBase *, IntuitionBase, 46, Intuition)
  303.  
  304. #define SizeWindow(window, dx, dy) \
  305.     AROS_LC3(void, SizeWindow, \
  306.     AROS_LCA(struct Window *, window, A0), \
  307.     AROS_LCA(LONG           , dx, D0), \
  308.     AROS_LCA(LONG           , dy, D1), \
  309.     struct IntuitionBase *, IntuitionBase, 48, Intuition)
  310.  
  311. #define UnlockIBase(ibLock) \
  312.     AROS_LC1(void, UnlockIBase, \
  313.     AROS_LCA(ULONG, ibLock, A0), \
  314.     struct IntuitionBase *, IntuitionBase, 70, Intuition)
  315.  
  316. #define UnlockPubScreen(name, screen) \
  317.     AROS_LC2(void, UnlockPubScreen, \
  318.     AROS_LCA(UBYTE         *, name, A0), \
  319.     AROS_LCA(struct Screen *, screen, A1), \
  320.     struct IntuitionBase *, IntuitionBase, 86, Intuition)
  321.  
  322. #define WindowToBack(window) \
  323.     AROS_LC1(void, WindowToBack, \
  324.     AROS_LCA(struct Window *, window, A0), \
  325.     struct IntuitionBase *, IntuitionBase, 51, Intuition)
  326.  
  327. #define WindowToFront(window) \
  328.     AROS_LC1(void, WindowToFront, \
  329.     AROS_LCA(struct Window *, window, A0), \
  330.     struct IntuitionBase *, IntuitionBase, 52, Intuition)
  331.  
  332.  
  333. #endif /* DEFINES_INTUITION_H */
  334.