6#ifndef KOABSTRACTGRADIENT_H
7#define KOABSTRACTGRADIENT_H
14#include <kritapigment_export.h>
38 return new QGradient();
42 virtual void colorAt(
KoColor&, qreal t)
const;
47 void setSpread(QGradient::Spread spreadMethod);
50 void setType(QGradient::Type repeatType);
51 QGradient::Type
type()
const;
55 QImage generatePreview(
int width,
int height)
const;
77 dbg.noquote() <<
"NULL Gradient";
80 dbg.nospace() <<
"[Gradient] Name: " << res->name()
81 <<
" Version: " << res->version()
82 <<
" Filename: " << res->filename()
83 <<
" MD5: " << res->md5Sum(
false)
84 <<
" Type: " << res->resourceType()
85 <<
" Valid: " << res->valid()
86 <<
" Storage: " << res->storageLocation();
QSharedPointer< KoAbstractGradient > KoAbstractGradientSP
An abstract class for providing access to canvas resources like current gradient and Fg/Bg colors.
Q_DECLARE_METATYPE(KisPaintopLodLimitations)
QGradient::Type type() const
QGradient::Spread spread() const
const KoColorSpace * colorSpace() const
virtual QGradient * toQGradient() const