home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / biblioteki / c_library / gadtools34 / nl_gadtools.h < prev    next >
C/C++ Source or Header  |  1998-09-26  |  6KB  |  129 lines

  1.  
  2.  
  3. #ifndef HEADERS_NL_GADTOOLS_H
  4. #define HEADERS_NL_GADTOOLS_H
  5.  
  6.  
  7. /*  New.lib/gadtools.h  $ 27/01/93 MT $  */
  8. /*                                       */
  9. /*  File header per l'uso di GTE.lib.    */
  10. /*  Per usare queste funzioni devono     */
  11. /*  essere aperte la graphics.library,   */
  12. /*  la intuition.library e (solo sotto   */
  13. /*  2.x+) anche la gadtools.library.     */
  14.  
  15.  
  16. #include "exec/types.h"
  17. #include "intuition/intuition.h"
  18. #include "libraries/gadtools.h"
  19. #include "utility/tagitem.h"
  20.  
  21.  
  22. /* Sinonimi per alcune funzioni:          */
  23. /*                                        */
  24. /* usare i nomi originali se si predilige */
  25. /* la coerenza, oppure i sinonimi se      */
  26. /* si predilige la velocità di battitura  */
  27.  
  28. #define NL_GetIMsg         NL_GT_GetIMsg
  29. #define NL_ReplyIMsg       NL_GT_ReplyIMsg
  30. #define NL_FilterIMsg      NL_GT_FilterIMsg
  31. #define NL_PostFilterIMsg  NL_GT_PostFilterIMsg
  32. #define NL_RefreshWindow   NL_GT_RefreshWindow
  33. #define NL_BeginRefresh    NL_GT_BeginRefresh
  34. #define NL_EndRefresh      NL_GT_EndRefresh
  35. #define NL_SetGadgetAttrsA NL_GT_SetGadgetAttrsA
  36. #define NL_SetGadgetAttrs  NL_GT_SetGadgetAttrs
  37. #define EF_GetIMsg         EF_GT_GetIMsg
  38. #define EF_ReplyIMsg       EF_GT_ReplyIMsg
  39. #define EF_FilterIMsg      EF_GT_FilterIMsg
  40. #define EF_PostFilterIMsg  EF_GT_PostFilterIMsg
  41. #define EF_RefreshWindow   EF_GT_RefreshWindow
  42. #define EF_BeginRefresh    EF_GT_BeginRefresh
  43. #define EF_EndRefresh      EF_GT_EndRefresh
  44. #define EF_SetGadgetAttrsA EF_GT_SetGadgetAttrsA
  45. #define EF_SetGadgetAttrs  EF_GT_SetGadgetAttrs
  46.  
  47.  
  48. /* ---------------------- Funzioni di interfaccia ---------------------- */
  49.  
  50. /* Funzioni relative ai gadget */
  51.  
  52. struct Gadget *NL_CreateContext(struct Gadget **glistptr);
  53. struct Gadget *NL_CreateGadgetA(ULONG kind, struct Gadget *gad, struct NewGadget *ng, struct TagItem *taglist);
  54. struct Gadget *NL_CreateGadget(ULONG kind, struct Gadget *gad, struct NewGadget *ng, Tag tag1, ...);
  55. void NL_FreeGadgets(struct Gadget *gad);
  56. void NL_GT_SetGadgetAttrsA(struct Gadget *gad, struct Window *win, struct Requester *req, struct TagItem *taglist);
  57. void NL_GT_SetGadgetAttrs(struct Gadget *gad, struct Window *win, struct Requester *req, Tag tag1, ...);
  58.  
  59. /* Funzioni relative ai menu */
  60.  
  61. struct Menu *NL_CreateMenusA(struct NewMenu *newmenulist, struct TagItem *taglist);
  62. struct Menu *NL_CreateMenus(struct NewMenu *newmenulist, Tag tag1, ...);
  63. void NL_FreeMenus(struct Menu *menustrip);
  64. BOOL NL_LayoutMenuItemsA(struct MenuItem *firstitem, APTR vinfo, struct TagItem *taglist);
  65. BOOL NL_LayoutMenuItems(struct MenuItem *firstitem, APTR vinfo, Tag tag1, ...);
  66. BOOL NL_LayoutMenusA(struct Menu *firstmenu, APTR vinfo, struct TagItem *taglist);
  67. BOOL NL_LayoutMenus(struct Menu *firstmenu, APTR vinfo, Tag tag1, ...);
  68.  
  69. /* Funzioni di uso generale */
  70.  
  71. struct IntuiMessage *NL_GT_GetIMsg(struct MsgPort *userport);
  72. void NL_GT_ReplyIMsg(struct IntuiMessage *imsg);
  73. struct IntuiMessage *NL_GT_FilterIMsg(struct IntuiMessage *imsg);
  74. struct IntuiMessage *NL_GT_PostFilterIMsg(struct IntuiMessage *imsg);
  75. APTR NL_GetVisualInfoA(struct Screen *screen, struct TagItem *taglist);
  76. APTR NL_GetVisualInfo(struct Screen *screen, Tag tag1, ...);
  77. void NL_FreeVisualInfo(APTR vinfo);
  78. void NL_GT_BeginRefresh(struct Window *win);
  79. void NL_GT_EndRefresh(struct Window *win, LONG complete);
  80. void NL_GT_RefreshWindow(struct Window *win, struct Requester *req);
  81. void NL_DrawBevelBoxA(struct RastPort *rport, long left, long top, long width, long height, struct TagItem *taglist);
  82. void NL_DrawBevelBox(struct RastPort *rport, long left, long top, long width, long height, Tag tag1, ...);
  83.  
  84. /* --------------------------------------------------------------------- */
  85.  
  86.  
  87. /* ---------------------- Funzioni di emulazione ----------------------- */
  88.  
  89. /* Funzioni relative ai gadget */
  90.  
  91. struct Gadget *EF_CreateContext(struct Gadget **glistptr);
  92. struct Gadget *EF_CreateGadgetA(ULONG kind, struct Gadget *gad, struct NewGadget *ng, struct TagItem *taglist);
  93. struct Gadget *EF_CreateGadget(ULONG kind, struct Gadget *gad, struct NewGadget *ng, Tag tag1, ...);
  94. void EF_FreeGadgets(struct Gadget *gad);
  95. void EF_GT_SetGadgetAttrsA(struct Gadget *gad, struct Window *win, struct Requester *req, struct TagItem *taglist);
  96. void EF_GT_SetGadgetAttrs(struct Gadget *gad, struct Window *win, struct Requester *req, Tag tag1, ...);
  97.  
  98. /* Funzioni relative ai menu */
  99.  
  100. struct Menu *EF_CreateMenusA(struct NewMenu *newmenulist, struct TagItem *taglist);
  101. struct Menu *EF_CreateMenus(struct NewMenu *newmenulist, Tag tag1, ...);
  102. void EF_FreeMenus(struct Menu *menustrip);
  103. BOOL EF_LayoutMenuItemsA(struct MenuItem *firstitem, APTR vinfo, struct TagItem *taglist);
  104. BOOL EF_LayoutMenuItems(struct MenuItem *firstitem, APTR vinfo, Tag tag1, ...);
  105. BOOL EF_LayoutMenusA(struct Menu *firstmenu, APTR vinfo, struct TagItem *taglist);
  106. BOOL EF_LayoutMenus(struct Menu *firstmenu, APTR vinfo, Tag tag1, ...);
  107.  
  108. /* Funzioni di uso generale */
  109.  
  110. struct IntuiMessage *EF_GT_GetIMsg(struct MsgPort *userport);
  111. void EF_GT_ReplyIMsg(struct IntuiMessage *imsg);
  112. struct IntuiMessage *EF_GT_FilterIMsg(struct IntuiMessage *imsg);
  113. struct IntuiMessage *EF_GT_PostFilterIMsg(struct IntuiMessage *imsg);
  114. APTR EF_GetVisualInfoA(struct Screen *screen, struct TagItem *taglist);
  115. APTR EF_GetVisualInfo(struct Screen *screen, Tag tag1, ...);
  116. void EF_FreeVisualInfo(APTR vinfo);
  117. void EF_GT_BeginRefresh(struct Window *win);
  118. void EF_GT_EndRefresh(struct Window *win, LONG complete);
  119. void EF_GT_RefreshWindow(struct Window *win, struct Requester *req);
  120. void EF_DrawBevelBoxA(struct RastPort *rport, long left, long top, long width, long height, struct TagItem *taglist);
  121. void EF_DrawBevelBox(struct RastPort *rport, long left, long top, long width, long height, Tag tag1, ...);
  122.  
  123. /* --------------------------------------------------------------------- */
  124.  
  125.  
  126. #endif
  127.  
  128.  
  129.