#ifndef INTUITION_CGHOOKS_H
#define INTUITION_CGHOOKS_H

/*
    (C) 1997 AROS - The Amiga Replacement OS
    $Id: cghooks.h,v 1.1 1997/03/11 18:14:23 srittau Exp $

    Desc: Custom gadgets
    Lang: english
*/

#ifndef EXEC_TYPES_H
#   include <exec/types.h>
#endif
#ifndef INTUITION_INTUITION_H
#   include <intuition/intuition.h>
#endif

struct GadgetInfo
{
    struct Screen    * gi_Screen;
    struct Window    * gi_Window;
    struct Requester * gi_Requester;
    struct RastPort  * gi_RastPort;
    struct Layer     * gi_Layer;
    struct IBox        gi_Domain;

    struct
    {
        UBYTE DetailPen;
        UBYTE BlockPen;
    } gi_Pens;

    struct DrawInfo * gi_DrInfo;

    ULONG gi_Reserved[6];
};

struct PGX
{
    struct IBox pgx_Container;
    struct IBox pgx_NewKnob;
};

#define CUSTOM_HOOK(gadget) ((struct Hook *) (gadget)->MutualExclude)

#endif /* INTUITION_CGHOOKS_H */
