#ifndef DEFINES_GADTOOLS_H
#define DEFINES_GADTOOLS_H

/*
    *** Automatically generated from '/home/aros/ABIv11/AROS/AROS/workbench/libs/gadtools/gadtools.conf'. Edits will be lost. ***
    Copyright (C) 1995-2026, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Defines for gadtools
*/

#include <aros/libcall.h>
#include <exec/types.h>
#include <aros/symbolsets.h>
#include <aros/preprocessor/variadic/cast2iptr.hpp>

#if !defined(__GADTOOLS_LIBBASE)
#define __GADTOOLS_LIBBASE __aros_getbase_GadToolsBase()
#endif
#ifndef __aros_getbase_GadToolsBase
extern struct Library *__aros_getbase_GadToolsBase(void);
#endif

__BEGIN_DECLS


#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __CreateGadgetA_WB(__GadToolsBase, __arg1, __arg2, __arg3, __arg4) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC4(struct Gadget *, CreateGadgetA,\
         AROS_LCA(ULONG, (__arg1), D0), \
         AROS_LCA(struct Gadget *, (__arg2), A0), \
         AROS_LCA(struct NewGadget *, (__arg3), A1), \
         AROS_LCA(struct TagItem *, (__arg4), A2), \
        struct Library *, (__GadToolsBase), 5, GadTools);\
})

#define CreateGadgetA(arg1, arg2, arg3, arg4) \
    __CreateGadgetA_WB(__GADTOOLS_LIBBASE, (arg1), (arg2), (arg3), (arg4))

#if !defined(NO_INLINE_STDARG) && !defined(GADTOOLS_NO_INLINE_STDARG)
#define CreateGadget(arg1, arg2, arg3, ...) \
({ \
    const IPTR CreateGadgetA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    CreateGadgetA((arg1), (arg2), (arg3), (struct TagItem *)(CreateGadgetA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __FreeGadgets_WB(__GadToolsBase, __arg1) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC1NR(void, FreeGadgets,\
         AROS_LCA(struct Gadget *, (__arg1), A0), \
        struct Library *, (__GadToolsBase), 6, GadTools);\
})

#define FreeGadgets(arg1) \
    __FreeGadgets_WB(__GADTOOLS_LIBBASE, (arg1))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __GT_SetGadgetAttrsA_WB(__GadToolsBase, __arg1, __arg2, __arg3, __arg4) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC4NR(void, GT_SetGadgetAttrsA,\
         AROS_LCA(struct Gadget *, (__arg1), A0), \
         AROS_LCA(struct Window *, (__arg2), A1), \
         AROS_LCA(struct Requester *, (__arg3), A2), \
         AROS_LCA(struct TagItem *, (__arg4), A3), \
        struct Library *, (__GadToolsBase), 7, GadTools);\
})

#define GT_SetGadgetAttrsA(arg1, arg2, arg3, arg4) \
    __GT_SetGadgetAttrsA_WB(__GADTOOLS_LIBBASE, (arg1), (arg2), (arg3), (arg4))

#if !defined(NO_INLINE_STDARG) && !defined(GADTOOLS_NO_INLINE_STDARG)
#define GT_SetGadgetAttrs(arg1, arg2, arg3, ...) \
({ \
    const IPTR GT_SetGadgetAttrsA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    GT_SetGadgetAttrsA((arg1), (arg2), (arg3), (struct TagItem *)(GT_SetGadgetAttrsA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __CreateMenusA_WB(__GadToolsBase, __arg1, __arg2) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC2(struct Menu *, CreateMenusA,\
         AROS_LCA(struct NewMenu *, (__arg1), A0), \
         AROS_LCA(struct TagItem *, (__arg2), A1), \
        struct Library *, (__GadToolsBase), 8, GadTools);\
})

#define CreateMenusA(arg1, arg2) \
    __CreateMenusA_WB(__GADTOOLS_LIBBASE, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(GADTOOLS_NO_INLINE_STDARG)
#define CreateMenus(arg1, ...) \
({ \
    const IPTR CreateMenusA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    CreateMenusA((arg1), (struct TagItem *)(CreateMenusA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __FreeMenus_WB(__GadToolsBase, __arg1) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC1NR(void, FreeMenus,\
         AROS_LCA(struct Menu *, (__arg1), A0), \
        struct Library *, (__GadToolsBase), 9, GadTools);\
})

#define FreeMenus(arg1) \
    __FreeMenus_WB(__GADTOOLS_LIBBASE, (arg1))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __LayoutMenuItemsA_WB(__GadToolsBase, __arg1, __arg2, __arg3) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC3(BOOL, LayoutMenuItemsA,\
         AROS_LCA(struct MenuItem *, (__arg1), A0), \
         AROS_LCA(APTR, (__arg2), A1), \
         AROS_LCA(struct TagItem *, (__arg3), A2), \
        struct Library *, (__GadToolsBase), 10, GadTools);\
})

#define LayoutMenuItemsA(arg1, arg2, arg3) \
    __LayoutMenuItemsA_WB(__GADTOOLS_LIBBASE, (arg1), (arg2), (arg3))

#if !defined(NO_INLINE_STDARG) && !defined(GADTOOLS_NO_INLINE_STDARG)
#define LayoutMenuItems(arg1, arg2, ...) \
({ \
    const IPTR LayoutMenuItemsA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    LayoutMenuItemsA((arg1), (arg2), (struct TagItem *)(LayoutMenuItemsA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __LayoutMenusA_WB(__GadToolsBase, __arg1, __arg2, __arg3) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC3(BOOL, LayoutMenusA,\
         AROS_LCA(struct Menu *, (__arg1), A0), \
         AROS_LCA(APTR, (__arg2), A1), \
         AROS_LCA(struct TagItem *, (__arg3), A2), \
        struct Library *, (__GadToolsBase), 11, GadTools);\
})

#define LayoutMenusA(arg1, arg2, arg3) \
    __LayoutMenusA_WB(__GADTOOLS_LIBBASE, (arg1), (arg2), (arg3))

#if !defined(NO_INLINE_STDARG) && !defined(GADTOOLS_NO_INLINE_STDARG)
#define LayoutMenus(arg1, arg2, ...) \
({ \
    const IPTR LayoutMenusA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    LayoutMenusA((arg1), (arg2), (struct TagItem *)(LayoutMenusA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __GT_GetIMsg_WB(__GadToolsBase, __arg1) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC1(struct IntuiMessage *, GT_GetIMsg,\
         AROS_LCA(struct MsgPort *, (__arg1), A0), \
        struct Library *, (__GadToolsBase), 12, GadTools);\
})

#define GT_GetIMsg(arg1) \
    __GT_GetIMsg_WB(__GADTOOLS_LIBBASE, (arg1))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __GT_ReplyIMsg_WB(__GadToolsBase, __arg1) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC1NR(void, GT_ReplyIMsg,\
         AROS_LCA(struct IntuiMessage *, (__arg1), A1), \
        struct Library *, (__GadToolsBase), 13, GadTools);\
})

#define GT_ReplyIMsg(arg1) \
    __GT_ReplyIMsg_WB(__GADTOOLS_LIBBASE, (arg1))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __GT_RefreshWindow_WB(__GadToolsBase, __arg1, __arg2) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC2NR(void, GT_RefreshWindow,\
         AROS_LCA(struct Window *, (__arg1), A0), \
         AROS_LCA(struct Requester *, (__arg2), A1), \
        struct Library *, (__GadToolsBase), 14, GadTools);\
})

#define GT_RefreshWindow(arg1, arg2) \
    __GT_RefreshWindow_WB(__GADTOOLS_LIBBASE, (arg1), (arg2))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __GT_BeginRefresh_WB(__GadToolsBase, __arg1) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC1NR(void, GT_BeginRefresh,\
         AROS_LCA(struct Window *, (__arg1), A0), \
        struct Library *, (__GadToolsBase), 15, GadTools);\
})

#define GT_BeginRefresh(arg1) \
    __GT_BeginRefresh_WB(__GADTOOLS_LIBBASE, (arg1))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __GT_EndRefresh_WB(__GadToolsBase, __arg1, __arg2) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC2NR(void, GT_EndRefresh,\
         AROS_LCA(struct Window *, (__arg1), A0), \
         AROS_LCA(BOOL, (__arg2), D0), \
        struct Library *, (__GadToolsBase), 16, GadTools);\
})

#define GT_EndRefresh(arg1, arg2) \
    __GT_EndRefresh_WB(__GADTOOLS_LIBBASE, (arg1), (arg2))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __GT_FilterIMsg_WB(__GadToolsBase, __arg1) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC1(struct IntuiMessage *, GT_FilterIMsg,\
         AROS_LCA(struct IntuiMessage *, (__arg1), A1), \
        struct Library *, (__GadToolsBase), 17, GadTools);\
})

#define GT_FilterIMsg(arg1) \
    __GT_FilterIMsg_WB(__GADTOOLS_LIBBASE, (arg1))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __GT_PostFilterIMsg_WB(__GadToolsBase, __arg1) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC1(struct IntuiMessage *, GT_PostFilterIMsg,\
         AROS_LCA(struct IntuiMessage *, (__arg1), A1), \
        struct Library *, (__GadToolsBase), 18, GadTools);\
})

#define GT_PostFilterIMsg(arg1) \
    __GT_PostFilterIMsg_WB(__GADTOOLS_LIBBASE, (arg1))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __CreateContext_WB(__GadToolsBase, __arg1) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC1(struct Gadget *, CreateContext,\
         AROS_LCA(struct Gadget **, (__arg1), A0), \
        struct Library *, (__GadToolsBase), 19, GadTools);\
})

#define CreateContext(arg1) \
    __CreateContext_WB(__GADTOOLS_LIBBASE, (arg1))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __DrawBevelBoxA_WB(__GadToolsBase, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC6NR(void, DrawBevelBoxA,\
         AROS_LCA(struct RastPort *, (__arg1), A0), \
         AROS_LCA(WORD, (__arg2), D0), \
         AROS_LCA(WORD, (__arg3), D1), \
         AROS_LCA(WORD, (__arg4), D2), \
         AROS_LCA(WORD, (__arg5), D3), \
         AROS_LCA(struct TagItem *, (__arg6), A1), \
        struct Library *, (__GadToolsBase), 20, GadTools);\
})

#define DrawBevelBoxA(arg1, arg2, arg3, arg4, arg5, arg6) \
    __DrawBevelBoxA_WB(__GADTOOLS_LIBBASE, (arg1), (arg2), (arg3), (arg4), (arg5), (arg6))

#if !defined(NO_INLINE_STDARG) && !defined(GADTOOLS_NO_INLINE_STDARG)
#define DrawBevelBox(arg1, arg2, arg3, arg4, arg5, ...) \
({ \
    const IPTR DrawBevelBoxA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    DrawBevelBoxA((arg1), (arg2), (arg3), (arg4), (arg5), (struct TagItem *)(DrawBevelBoxA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __GetVisualInfoA_WB(__GadToolsBase, __arg1, __arg2) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC2(APTR, GetVisualInfoA,\
         AROS_LCA(struct Screen *, (__arg1), A0), \
         AROS_LCA(struct TagItem *, (__arg2), A1), \
        struct Library *, (__GadToolsBase), 21, GadTools);\
})

#define GetVisualInfoA(arg1, arg2) \
    __GetVisualInfoA_WB(__GADTOOLS_LIBBASE, (arg1), (arg2))

#if !defined(NO_INLINE_STDARG) && !defined(GADTOOLS_NO_INLINE_STDARG)
#define GetVisualInfo(arg1, ...) \
({ \
    const IPTR GetVisualInfoA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    GetVisualInfoA((arg1), (struct TagItem *)(GetVisualInfoA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__)

#define __FreeVisualInfo_WB(__GadToolsBase, __arg1) ({\
        AROS_LIBREQ(GadToolsBase,36)\
        AROS_LC1NR(void, FreeVisualInfo,\
         AROS_LCA(APTR, (__arg1), A0), \
        struct Library *, (__GadToolsBase), 22, GadTools);\
})

#define FreeVisualInfo(arg1) \
    __FreeVisualInfo_WB(__GADTOOLS_LIBBASE, (arg1))

#endif /* !defined(__GADTOOLS_LIBAPI__) || (36 <= __GADTOOLS_LIBAPI__) */

#if !defined(__GADTOOLS_LIBAPI__) || (39 <= __GADTOOLS_LIBAPI__)

#define __GT_GetGadgetAttrsA_WB(__GadToolsBase, __arg1, __arg2, __arg3, __arg4) ({\
        AROS_LIBREQ(GadToolsBase,39)\
        AROS_LC4(LONG, GT_GetGadgetAttrsA,\
         AROS_LCA(struct Gadget *, (__arg1), A0), \
         AROS_LCA(struct Window *, (__arg2), A1), \
         AROS_LCA(struct Requester *, (__arg3), A2), \
         AROS_LCA(struct TagItem *, (__arg4), A3), \
        struct Library *, (__GadToolsBase), 29, GadTools);\
})

#define GT_GetGadgetAttrsA(arg1, arg2, arg3, arg4) \
    __GT_GetGadgetAttrsA_WB(__GADTOOLS_LIBBASE, (arg1), (arg2), (arg3), (arg4))

#if !defined(NO_INLINE_STDARG) && !defined(GADTOOLS_NO_INLINE_STDARG)
#define GT_GetGadgetAttrs(arg1, arg2, arg3, ...) \
({ \
    const IPTR GT_GetGadgetAttrsA_args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) };\
    GT_GetGadgetAttrsA((arg1), (arg2), (arg3), (struct TagItem *)(GT_GetGadgetAttrsA_args)); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* !defined(__GADTOOLS_LIBAPI__) || (39 <= __GADTOOLS_LIBAPI__) */

__END_DECLS

#endif /* DEFINES_GADTOOLS_H*/
