home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC6.DMS / in.adf / incl.lha / INCLUDE / clib / gadtools_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-29  |  2.9 KB  |  94 lines

  1. #ifndef  CLIB_GADTOOLS_PROTOS_H
  2. #define  CLIB_GADTOOLS_PROTOS_H
  3.  
  4. /*
  5. **    $VER: gadtools_protos.h 39.2 (24.3.92)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  INTUITION_INTUITION_H
  18. #include <intuition/intuition.h>
  19. #endif
  20. #ifndef  UTILITY_TAGITEM_H
  21. #include <utility/tagitem.h>
  22. #endif
  23. #ifndef  LIBRARIES_GADTOOLS_H
  24. #include <libraries/gadtools.h>
  25. #endif
  26.  
  27. #ifdef __cplusplus
  28. #define CLIBCPLUSON
  29. #pragma -
  30. #endif
  31.  
  32. /*--- functions in V36 or higher (Release 2.0) ---*/
  33.  
  34. /* Gadget Functions */
  35.  
  36. struct Gadget *CreateGadgetA( unsigned long kind, struct Gadget *gad,
  37.     struct NewGadget *ng, struct TagItem *taglist );
  38. struct Gadget *CreateGadget( unsigned long kind, struct Gadget *gad,
  39.     struct NewGadget *ng, Tag tag1, ... );
  40. void FreeGadgets( struct Gadget *gad );
  41. void GT_SetGadgetAttrsA( struct Gadget *gad, struct Window *win,
  42.     struct Requester *req, struct TagItem *taglist );
  43. void GT_SetGadgetAttrs( struct Gadget *gad, struct Window *win,
  44.     struct Requester *req, Tag tag1, ... );
  45.  
  46. /* Menu functions */
  47.  
  48. struct Menu *CreateMenusA( struct NewMenu *newmenu, struct TagItem *taglist );
  49. struct Menu *CreateMenus( struct NewMenu *newmenu, Tag tag1, ... );
  50. void FreeMenus( struct Menu *menu );
  51. BOOL LayoutMenuItemsA( struct MenuItem *firstitem, APTR vi,
  52.     struct TagItem *taglist );
  53. BOOL LayoutMenuItems( struct MenuItem *firstitem, APTR vi, Tag tag1, ... );
  54. BOOL LayoutMenusA( struct Menu *firstmenu, APTR vi, struct TagItem *taglist );
  55. BOOL LayoutMenus( struct Menu *firstmenu, APTR vi, Tag tag1, ... );
  56.  
  57. /* Misc Event-Handling Functions */
  58.  
  59. struct IntuiMessage *GT_GetIMsg( struct MsgPort *iport );
  60. void GT_ReplyIMsg( struct IntuiMessage *imsg );
  61. void GT_RefreshWindow( struct Window *win, struct Requester *req );
  62. void GT_BeginRefresh( struct Window *win );
  63. void GT_EndRefresh( struct Window *win, long complete );
  64. struct IntuiMessage *GT_FilterIMsg( struct IntuiMessage *imsg );
  65. struct IntuiMessage *GT_PostFilterIMsg( struct IntuiMessage *imsg );
  66. struct Gadget *CreateContext( struct Gadget **glistptr );
  67.  
  68. /* Rendering Functions */
  69.  
  70. void DrawBevelBoxA( struct RastPort *rport, long left, long top, long width,
  71.     long height, struct TagItem *taglist );
  72. void DrawBevelBox( struct RastPort *rport, long left, long top, long width,
  73.     long height, Tag tag1, ... );
  74.  
  75. /* Visuals Functions */
  76.  
  77. APTR GetVisualInfoA( struct Screen *screen, struct TagItem *taglist );
  78. APTR GetVisualInfo( struct Screen *screen, Tag tag1, ... );
  79. void FreeVisualInfo( APTR vi );
  80.  
  81. /*--- functions in V39 or higher (Release 3) ---*/
  82.  
  83. LONG GT_GetGadgetAttrsA( struct Gadget *gad, struct Window *win,
  84.     struct Requester *req, struct TagItem *taglist );
  85. LONG GT_GetGadgetAttrs( struct Gadget *gad, struct Window *win,
  86.     struct Requester *req, Tag tag1, ... );
  87.  
  88. #ifdef CLIBCPLUSON
  89. #undef CLIBCPLUSON
  90. #pragma +
  91. #endif
  92.  
  93. #endif     /* CLIB_GADTOOLS_PROTOS_H */
  94.