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