26 #ifndef __VGRADIENTEX_H__
27 #define __VGRADIENTEX_H__
34 #include "scribusapi.h"
53 rampPoint = colorStop.rampPoint;
54 midPoint = colorStop.midPoint;
55 color = colorStop.color;
56 opacity = colorStop.opacity;
57 name = colorStop.name;
58 shade = colorStop.shade;
73 {
return s1.rampPoint == s2.rampPoint; };
110 VGradientEx::Type type()
const {
return m_type; }
111 void setType( VGradientEx::Type type ) { m_type = type; }
113 VGradientEx::RepeatMethod repeatMethod()
const {
return m_repeatMethod; }
114 void setRepeatMethod( VGradientEx::RepeatMethod repeatMethod ) { m_repeatMethod = repeatMethod; }
116 const QList<VColorStopEx*> colorStops()
const;
118 void addStop(
const ScColor &color,
double rampPoint,
double midPoint,
double opa, QString name =
"",
int shade = 100 );
120 void removeStop( uint n );
122 uint Stops() {
return m_colorStops.count(); }
124 FPoint origin()
const {
return m_origin; }
125 void setOrigin(
const FPoint &origin ) { m_origin = origin; }
127 FPoint focalPoint()
const {
return m_focalPoint; }
128 void setFocalPoint(
const FPoint &focalPoint ) { m_focalPoint = focalPoint; }
130 FPoint vector()
const {
return m_vector; }
131 void setVector(
const FPoint &vector ) { m_vector = vector; }
133 void transform(
const QTransform& m );
136 QList<VColorStopEx*> m_colorStops;
142 VGradientEx::Type m_type;
143 VGradientEx::RepeatMethod m_repeatMethod : 3;
Definition: vgradientex.h:38
Definition: vgradient.h:78
A point with floating point precision.
Definition: fpoint.h:43
the Document Class
Definition: scribusdoc.h:90
Definition: vgradientex.h:80