added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / classes / gadgets / gradientslider / gradientslider_intern.h
blobfaec2a282d70451f1631cbf6b63cfead90e5502c
1 #ifndef GRADIENTSLIDER_INTERN_H
2 #define GRADIENTSLIDER_INTERN_H
4 /*
5 Copyright © 1995-2005, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Internal definitions for gradientslider.gadget.
9 Lang: english
12 #ifndef EXEC_TYPES_H
13 # include <exec/types.h>
14 #endif
15 #ifndef EXEC_LIBRARIES_H
16 # include <exec/libraries.h>
17 #endif
18 #ifndef LIBCORE_BASE_H
19 # include <libcore/base.h>
20 #endif
21 #ifndef INTUITION_INTUITION_H
22 # include <intuition/intuition.h>
23 #endif
24 #ifndef INTUITION_CLASSES_H
25 # include <intuition/classes.h>
26 #endif
28 #ifdef __AROS__
29 #ifndef AROS_DEBUG_H
30 #include <aros/debug.h>
31 #endif
32 #endif
34 #include LC_LIBDEFS_FILE
36 /***************************************************************************************************/
38 #ifndef __AROS__
39 #define DeinitRastPort(x)
40 #define EnterFunc(x)
41 #define bug
42 #define D(x)
43 #define ReturnPtr(a,b,c) return c
44 #define ReturnInt(a,b,c) return c
45 #define ReturnVoid(a) return
47 #define SysBase (((struct LibHeader *) GradientSliderBase)->lh_SysBase)
49 #endif
52 #undef EG
53 #define EG(o) ((struct ExtGadget *)o)
55 #define FRAMESLIDERSPACINGX 3
56 #define FRAMESLIDERSPACINGY 3
58 /***************************************************************************************************/
60 struct GradientSliderData
62 struct BitMap *savebm;
63 struct BitMap *knobbm;
64 Object *frame;
65 UBYTE *buffer;
66 ULONG maxval; /* ISGU */
67 ULONG curval; /* ISGNU */
68 ULONG saveval;
69 ULONG skipval; /* ISGU */
70 UWORD knobpixels; /* I */
71 UWORD *penarray; /* ISU */
72 WORD freedom; /* I */
73 WORD numpens;
74 WORD clickoffsetx;
75 WORD clickoffsety;
76 WORD savefromx;
77 WORD savefromy;
78 WORD savebmwidth;
79 WORD savebmheight;
80 WORD x,y;
81 struct RastPort trp;
85 /***************************************************************************************************/
87 VOID DrawGradient(struct RastPort *rp, WORD x1, WORD y1, WORD x2, WORD y2, UWORD *penarray,
88 WORD numpens, WORD orientation, struct ColorMap *cm
90 VOID DrawKnob(struct GradientSliderData *data, struct RastPort *rp, struct DrawInfo *dri,
91 struct IBox *box, WORD state
93 VOID GetGadgetIBox(Object *o, struct GadgetInfo *gi, struct IBox *ibox);
94 VOID GetSliderBox(struct IBox *gadgetbox, struct IBox *sliderbox);
95 VOID GetKnobBox(struct GradientSliderData *data, struct IBox *sliderbox, struct IBox * knobbox);
96 void DrawDisabledPattern(struct RastPort *rport, struct IBox *gadbox, UWORD pen);
99 /***************************************************************************************************/
101 #endif /* GRADIENTSLIDER_INTERN_H */