revert between 56095 -> 55830 in arch
[AROS.git] / workbench / classes / gadgets / arosmutualexclude / arosmutualexclude_intern.h
blob295b676ac0ead84bdf767eef5f270a903f6155b2
1 /*
2 Copyright © 1995-2005, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /***********************************************************************************/
8 #ifndef AROSMUTUALEXCLUDE_INTERN_H
9 #define AROSMUTUALEXCLUDE_INTERN_H
11 /***********************************************************************************/
15 #ifndef EXEC_TYPES_H
16 # include <exec/types.h>
17 #endif
18 #ifndef EXEC_LIBRARIES_H
19 # include <exec/libraries.h>
20 #endif
21 #ifndef UTILITY_HOOKS_H
22 # include <utility/hooks.h>
23 #endif
24 #ifndef DOS_BPTR_H
25 # include <dos/bptr.h>
26 #endif
27 #ifndef GRAPHICS_RASTPORT_H
28 # include <graphics/rastport.h>
29 #endif
30 #ifndef INTUITION_CLASSES_H
31 # include <intuition/classes.h>
32 #endif
33 #ifndef INTUITION_CGHOOKS_H
34 # include <intuition/cghooks.h>
35 #endif
36 #ifndef INTUITION_GADGETCLASS_H
37 # include <intuition/gadgetclass.h>
38 #endif
40 /***********************************************************************************/
42 #define TURN_OFF_DEBUG
45 /* Support */
46 #define G(obj) ((struct Gadget *)(obj))
48 /***********************************************************************************/
50 /* MutualExcludeClass definitions */
51 struct MXData
53 /* Important pointers */
54 struct DrawInfo *dri;
55 struct TextAttr *tattr;
56 struct Image *mximage;
57 struct TextFont *font;
58 struct Rectangle bbox;
59 /* Information about ticks */
60 ULONG active, newactive; /* The active tick and the tick to be activated */
62 /* Information about labels */
63 STRPTR *labels;
64 ULONG numlabels; /* The number of labels */
65 LONG labelplace, ticklabelplace;
66 UWORD fontheight;
67 UWORD spacing;
68 UWORD maxtextwidth;
71 /***********************************************************************************/
73 /* Prototypes */
75 void drawdisabledpattern(struct RastPort *rport,
76 UWORD pen,
77 WORD left, WORD top, UWORD width, UWORD height
79 BOOL renderlabel(struct Gadget *gad, struct RastPort *rport, struct MXData *data);
82 /***********************************************************************************/
84 #endif /* AROSMUTUALEXCLUDE_INTERN_H */
86 /***********************************************************************************/