home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 18
/
aminetcdnumber181997.iso
/
Aminet
/
misc
/
emu
/
AROSdev.lha
/
AROS
/
rom
/
intuition
/
gadgets.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-01-09
|
962b
|
40 lines
#ifndef _GADGETS_H_
#define _GADGETS_H_
/*
(C) 1995-96 AROS - The Amiga Replacement OS
$Id: gadgets.h,v 1.2 1996/10/29 15:10:40 aros Exp $
Desc: Macros and stuff for Gadgets
Lang: english
*/
#ifndef EXEC_TYPES_H
# include <exec/types.h>
#endif
#ifndef INTUITION_INTUITION_H
# include <intuition/intuition.h>
#endif
#ifndef INTUITION_CLASSUSR_H
# include <intuition/classusr.h>
#endif
#ifndef INTUITION_GADGETCLASS_H
# include <intuition/gadgetclass.h>
#endif
struct BBox
{
WORD Left, Top, Width, Height;
};
/* Calculate the size of the Bounding Box of the gadget */
void CalcBBox (struct Window *, struct Gadget *, struct BBox *);
void GetGadgetIBox(Object *o, struct GadgetInfo *gi, struct IBox *ibox);
/* Render a label */
ULONG LabelWidth (struct RastPort *, STRPTR label, ULONG len,
struct IntuitionBase *);
void RenderLabel (struct RastPort *, STRPTR label, ULONG len,
struct IntuitionBase *);
#endif /* _GADGETS_H_ */