1 #ifndef GRADIENTSLIDER_INTERN_H
2 #define GRADIENTSLIDER_INTERN_H
5 Copyright © 1995-2005, The AROS Development Team. All rights reserved.
8 Desc: Internal definitions for gradientslider.gadget.
13 # include <exec/types.h>
15 #ifndef EXEC_LIBRARIES_H
16 # include <exec/libraries.h>
18 #ifndef LIBCORE_BASE_H
19 # include <libcore/base.h>
21 #ifndef INTUITION_INTUITION_H
22 # include <intuition/intuition.h>
24 #ifndef INTUITION_CLASSES_H
25 # include <intuition/classes.h>
30 #include <aros/debug.h>
34 #include LC_LIBDEFS_FILE
36 /***************************************************************************************************/
39 #define DeinitRastPort(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)
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
;
66 ULONG maxval
; /* ISGU */
67 ULONG curval
; /* ISGNU */
69 ULONG skipval
; /* ISGU */
70 UWORD knobpixels
; /* I */
71 UWORD
*penarray
; /* ISU */
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 */