7#ifndef KIS_GRADIENT_PAINTER_H_
8#define KIS_GRADIENT_PAINTER_H_
10#include <QScopedPointer>
17#include <kritaimage_export.h>
43 GradientShapePolygonal
49 GradientRepeatAlternate
52 void setGradientShape(enumGradientShape shape);
54 void precalculateShape();
59 bool paintGradient(
const QPointF& gradientVectorStart,
60 const QPointF& gradientVectorEnd,
61 enumGradientRepeat repeat,
62 double antiAliasThreshold,
68 bool useDithering =
false);
71 bool paintGradient(
const QPointF& gradientVectorStart,
72 const QPointF& gradientVectorEnd,
73 enumGradientRepeat repeat,
74 double antiAliasThreshold,
76 const QRect &applyRect,
77 bool useDithering =
false);
80 bool paintGradient(
const QPointF& gradientVectorStart,
81 const QPointF& gradientVectorEnd,
82 enumGradientRepeat repeat,
83 double antiAliasThreshold,
86 const QRect &applyRect,
91 const QScopedPointer<Private>
m_d;
@ GradientShapeReverseSpiral
@ GradientShapeConicalSymetric
const QScopedPointer< Private > m_d