home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / os-include / clib / gadtools_protos.h < prev    next >
C/C++ Source or Header  |  1992-09-24  |  3KB  |  82 lines

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