home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / intuition / gadgets.h < prev    next >
C/C++ Source or Header  |  1997-01-09  |  962b  |  40 lines

  1. #ifndef _GADGETS_H_
  2. #define _GADGETS_H_
  3. /*
  4.     (C) 1995-96 AROS - The Amiga Replacement OS
  5.     $Id: gadgets.h,v 1.2 1996/10/29 15:10:40 aros Exp $
  6.  
  7.     Desc: Macros and stuff for Gadgets
  8.     Lang: english
  9. */
  10. #ifndef EXEC_TYPES_H
  11. #   include <exec/types.h>
  12. #endif
  13. #ifndef INTUITION_INTUITION_H
  14. #   include <intuition/intuition.h>
  15. #endif
  16. #ifndef INTUITION_CLASSUSR_H
  17. #   include <intuition/classusr.h>
  18. #endif
  19. #ifndef INTUITION_GADGETCLASS_H
  20. #   include <intuition/gadgetclass.h>
  21. #endif
  22.  
  23. struct BBox
  24. {
  25.     WORD Left, Top, Width, Height;
  26. };
  27.  
  28. /* Calculate the size of the Bounding Box of the gadget */
  29. void CalcBBox (struct Window *, struct Gadget *, struct BBox *);
  30. void GetGadgetIBox(Object *o, struct GadgetInfo *gi, struct IBox *ibox);
  31.  
  32. /* Render a label */
  33. ULONG LabelWidth (struct RastPort *, STRPTR label, ULONG len,
  34.         struct IntuitionBase *);
  35. void RenderLabel (struct RastPort *, STRPTR label, ULONG len,
  36.         struct IntuitionBase *);
  37.  
  38. #endif /* _GADGETS_H_ */
  39.  
  40.