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

  1. #ifndef  CLIB_GADTOOLS_PROTOS_H
  2. #define  CLIB_GADTOOLS_PROTOS_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef  EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef  INTUITION_INTUITION_H
  12. #include <intuition/intuition.h>
  13. #endif
  14. #ifndef  UTILITY_TAGITEM_H
  15. #include <utility/tagitem.h>
  16. #endif
  17. #ifndef  LIBRARIES_GADTOOLS_H
  18. #include <libraries/gadtools.h>
  19. #endif
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. struct Gadget *CreateGadgetA( unsigned long kind, struct Gadget *gad,
  26.     struct NewGadget *ng, struct TagItem *taglist );
  27. struct Gadget *CreateGadget( unsigned long kind, struct Gadget *gad,
  28.     struct NewGadget *ng, Tag tag1, ... );
  29. void FreeGadgets( struct Gadget *gad );
  30. void GT_SetGadgetAttrsA( struct Gadget *gad, struct Window *win,
  31.     struct Requester *req, struct TagItem *taglist );
  32. void GT_SetGadgetAttrs( struct Gadget *gad, struct Window *win,
  33.     struct Requester *req, Tag tag1, ... );
  34.  
  35. struct Menu *CreateMenusA(struct NewMenu *newmenu,APTR vi,struct TagItem *taglist );
  36. struct Menu *CreateMenus(struct NewMenu *newmenu,APTR vi,Tag tag1, ... );
  37. void FreeMenus( struct Menu *menu );
  38. BOOL LayoutMenusA( struct Menu *firstmenu, APTR vi, struct TagItem *taglist );
  39. BOOL LayoutMenus( struct Menu *firstmenu, APTR vi, Tag tag1, ... );
  40.  
  41. struct IntuiMessage *GT_GetIMsg( struct MsgPort *iport );
  42. void GT_ReplyIMsg( struct IntuiMessage *imsg );
  43. void GT_RefreshWindow( struct Window *win, struct Requester *req );
  44. void GT_BeginRefresh( struct Window *win );
  45. void GT_EndRefresh( struct Window *win, long complete );
  46. struct Gadget *CreateContext( struct Gadget **glistptr );
  47.  
  48. void DrawBevelBoxA( struct RastPort *rport, long left, long top, long width,
  49.     long height, struct TagItem *taglist );
  50. void DrawBevelBox( struct RastPort *rport, long left, long top, long width,
  51.     long height, Tag tag1, ... );
  52.  
  53. APTR GetVisualInfoA( struct Screen *screen, struct TagItem *taglist );
  54. APTR GetVisualInfo( struct Screen *screen, Tag tag1, ... );
  55. void FreeVisualInfo( APTR vi );
  56.  
  57. LONG GT_GetGadgetAttrsA( struct Gadget *gad, struct Window *win,
  58.     struct Requester *req, struct TagItem *taglist );
  59. LONG GT_GetGadgetAttrs( struct Gadget *gad, struct Window *win,
  60.     struct Requester *req, Tag tag1, ... );
  61.  
  62.  
  63.  
  64. #ifdef __IGNORE_NOT_SUPPORTED__
  65.  
  66.   BOOL LayoutMenuItemsA( struct MenuItem *firstitem, APTR vi,struct TagItem *taglist );
  67.   BOOL LayoutMenuItems( struct MenuItem *firstitem, APTR vi, Tag tag1, ... );
  68.   struct IntuiMessage *GT_FilterIMsg( struct IntuiMessage *imsg );
  69.   struct IntuiMessage *GT_PostFilterIMsg( struct IntuiMessage *imsg );
  70.  
  71. #else  /** __IGNORE_NOT_SUPPORTED__ **/
  72.  
  73. #define LayoutMenuItemsA LayoutMenuItemsA_NOT_COMPATIBLE
  74.   BOOL LayoutMenuItemsA(struct NOT_SUPPORTED*, struct MenuItem *firstitem, APTR vi,struct TagItem *taglist );
  75. #define LayoutMenuItems LayoutMenuItems_NOT_COMPATIBLE
  76.   BOOL LayoutMenuItems(struct NOT_SUPPORTED*, struct MenuItem *firstitem, APTR vi, Tag tag1, ... );
  77. #define GT_FilterIMsg GT_FilterIMsg_NOT_COMPATIBLE
  78.   struct IntuiMessage *GT_FilterIMsg(struct NOT_SUPPORTED*, struct IntuiMessage *imsg );
  79. #define GT_PostFilterIMsg GT_PostFilterIMsg_NOT_COMPATIBLE
  80.   struct IntuiMessage *GT_PostFilterIMsg(struct NOT_SUPPORTED*, struct IntuiMessage *imsg );
  81.  
  82. #endif /** __IGNORE_NOT_SUPPORTED__ **/
  83.  
  84.  
  85.  
  86.  
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90.  
  91. #endif     /* CLIB_GADTOOLS_PROTOS_H */
  92.