#define RAW_KEYS 1000
#define QUIT 1001
#define COOKED_KEYS 1002

struct TextAttr MyFont = {
	(STRPTR)"topaz.font",
	TOPAZ_EIGHTY,
	FS_NORMAL,
	FPF_ROMFONT
};

static SHORT BorderVectors1[] = {
	0,0,
	119,0,
	119,10,
	0,10,
	0,0
};
static struct Border Border1 = {
	-1,-1,	/* XY origin relative to container TopLeft */
	3,0,JAM1,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	BorderVectors1,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

static struct IntuiText IText1 = {
	3,0,JAM2,	/* front and back text pens, drawmode and fill byte */
	17,1,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"Cooked Keys",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

static struct Gadget Gadget3 = {
	NULL,	/* next gadget */
	502,187,	/* origin XY of hit box relative to window TopLeft */
	118,9,	/* hit box width and height */
	NULL,	/* gadget flags */
	RELVERIFY,	/* activation flags */
	BOOLGADGET,	/* gadget type flags */
	(APTR)&Border1,	/* gadget border or image to be rendered */
	NULL,	/* alternate imagery for selection */
	&IText1,	/* first IntuiText structure */
	0L,	/* gadget mutual-exclude long word */
	NULL,	/* SpecialInfo structure */
	COOKED_KEYS,	/* user-definable data */
	NULL	/* pointer to user-definable data */
};

static SHORT BorderVectors2[] = {
	0,0,
	75,0,
	75,9,
	0,9,
	0,0
};
static struct Border Border2 = {
	-1,-1,	/* XY origin relative to container TopLeft */
	3,0,JAM1,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	BorderVectors2,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

static struct IntuiText IText2 = {
	3,0,JAM2,	/* front and back text pens, drawmode and fill byte */
	21,0,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"Quit",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

static struct Gadget Gadget2 = {
	&Gadget3,	/* next gadget */
	296,188,	/* origin XY of hit box relative to window TopLeft */
	74,8,	/* hit box width and height */
	NULL,	/* gadget flags */
	RELVERIFY,	/* activation flags */
	BOOLGADGET,	/* gadget type flags */
	(APTR)&Border2,	/* gadget border or image to be rendered */
	NULL,	/* alternate imagery for selection */
	&IText2,	/* first IntuiText structure */
	0L,	/* gadget mutual-exclude long word */
	NULL,	/* SpecialInfo structure */
	QUIT,	/* user-definable data */
	NULL	/* pointer to user-definable data */
};

static SHORT BorderVectors3[] = {
	0,0,
	119,0,
	119,10,
	0,10,
	0,0
};
static struct Border Border3 = {
	-1,-1,	/* XY origin relative to container TopLeft */
	3,0,JAM1,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	BorderVectors3,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

static struct IntuiText IText3 = {
	3,0,JAM2,	/* front and back text pens, drawmode and fill byte */
	3,1,	/* XY origin relative to container TopLeft */
	&MyFont,	/* font pointer or NULL for default */
	(UBYTE *)"RAW Key Events",	/* pointer to text */
	NULL	/* next IntuiText structure */
};

static struct Gadget Gadget1 = {
	&Gadget2,	/* next gadget */
	23,187,	/* origin XY of hit box relative to window TopLeft */
	118,9,	/* hit box width and height */
	NULL,	/* gadget flags */
	RELVERIFY,	/* activation flags */
	BOOLGADGET,	/* gadget type flags */
	(APTR)&Border3,	/* gadget border or image to be rendered */
	NULL,	/* alternate imagery for selection */
	&IText3,	/* first IntuiText structure */
	0L,	/* gadget mutual-exclude long word */
	NULL,	/* SpecialInfo structure */
	RAW_KEYS,	/* user-definable data */
	NULL	/* pointer to user-definable data */
};

#define GadgetList1 Gadget1
