16 #ifndef QGSGRADIENTSTOPEDITOR_H 17 #define QGSGRADIENTSTOPEDITOR_H 57 void selectStop(
int index );
76 void setSelectedStopColor(
const QColor& color );
84 void setSelectedStopOffset(
double offset );
92 void setSelectedStopDetails(
const QColor& color,
double offset );
97 void deleteSelectedStop();
104 void setColor1(
const QColor& color );
111 void setColor2(
const QColor& color );
141 const QPixmap& transparentBackground();
149 void drawStopMarker(
QPainter& painter,
QPoint topMiddle,
const QColor& color,
bool selected =
false );
152 double pointToRelativePosition(
int x )
const;
155 int relativePositionToPoint(
double position )
const;
158 bool selectedStopIsMovable()
const;
161 int findClosestStop(
int x,
int threshold = -1 )
const;
179 #endif // QGSGRADIENTSTOPEDITOR_H
Represents a color stop within a gradient color ramp.
An interactive editor for previewing a gradient color ramp and modifying the position of color stops ...
QgsVectorGradientColorRampV2 gradientRamp() const
Returns the current ramp created by the editor.
Gradient color ramp, which smoothly interpolates between two colors and also supports optional extra ...