|
| const quint8 * | cachedAt (qreal t) const |
| | gets the color data at position 0 <= t <= 1
|
| |
| KoResourceSP | clone () const override |
| |
| void | colorAt (KoColor &color, qreal t) const override |
| | allow access to the actual color at position 0 <= t <= 1, instead of the cached color
|
| |
| const KoColorSpace * | colorSpace () const |
| |
| KoAbstractGradientSP | gradient () |
| |
| | KoCachedGradient () |
| |
| | KoCachedGradient (const KoAbstractGradientSP gradient, qint32 steps, const KoColorSpace *cs) |
| |
| bool | loadFromDevice (QIODevice *dev, KisResourcesInterfaceSP resourcesInterface) override |
| |
| QPair< QString, QString > | resourceType () const override |
| |
| void | setColorSpace (const KoColorSpace *colorSpace) |
| |
| void | setGradient (const KoAbstractGradientSP gradient, qint32 steps) |
| |
| void | setGradient (const KoAbstractGradientSP gradient, qint32 steps, const KoColorSpace *cs) |
| |
| QGradient * | toQGradient () const override |
| |
| | ~KoCachedGradient () override |
| |
| virtual void | bakeVariableColors (KoCanvasResourcesInterfaceSP canvasResourcesInterface) |
| |
| KoAbstractGradientSP | cloneAndBakeVariableColors (KoCanvasResourcesInterfaceSP canvasResourcesInterface) const |
| |
| KoAbstractGradientSP | cloneAndUpdateVariableColors (KoCanvasResourcesInterfaceSP canvasResourcesInterface) const |
| |
| const KoColorSpace * | colorSpace () const |
| |
| QImage | generatePreview (int width, int height) const |
| |
| QImage | generatePreview (int width, int height, KoCanvasResourcesInterfaceSP canvasResourcesInterface) const |
| |
| | KoAbstractGradient (const KoAbstractGradient &rhs) |
| |
| | KoAbstractGradient (const QString &filename) |
| |
| void | setColorSpace (KoColorSpace *colorSpace) |
| |
| void | setSpread (QGradient::Spread spreadMethod) |
| |
| void | setType (QGradient::Type repeatType) |
| |
| QGradient::Spread | spread () const |
| |
| QGradient::Type | type () const |
| |
| void | updatePreview () |
| |
| virtual void | updateVariableColors (KoCanvasResourcesInterfaceSP canvasResourcesInterface) |
| |
| | ~KoAbstractGradient () override |
| |
| | Private (KisCanvas2 *c) |
| |
| bool | active () const |
| |
| void | addMetaData (QString key, QVariant value) |
| | store the given key, value pair in the resource
|
| |
| virtual void | clearSideLoadedResources () |
| |
| virtual QString | defaultFileExtension () const |
| |
| virtual QList< KoResourceLoadResult > | embeddedResources (KisResourcesInterfaceSP globalResourcesInterface) const |
| |
| QString | filename () const |
| |
| QImage | image () const |
| |
| bool | isDirty () const |
| |
| virtual bool | isEphemeral () const |
| |
| virtual bool | isSerializable () const |
| |
| | KoResource () |
| |
| | KoResource (const KoResource &rhs) |
| |
| | KoResource (const QString &filename) |
| |
| virtual QList< KoResourceLoadResult > | linkedResources (KisResourcesInterfaceSP globalResourcesInterface) const |
| |
| bool | load (KisResourcesInterfaceSP resourcesInterface) |
| |
| QString | md5Sum (bool generateIfEmpty=true) const |
| |
| QMap< QString, QVariant > | metadata () const |
| | get a map with all the metadata
|
| |
| virtual QString | name () const |
| |
| KoResource & | operator= (const KoResource &rhs)=delete |
| |
| bool | permanent () const |
| |
| virtual QList< int > | requiredCanvasResources () const |
| |
| QList< KoResourceLoadResult > | requiredResources (KisResourcesInterfaceSP globalResourcesInterface) const |
| |
| int | resourceId () const |
| |
| bool | save () |
| |
| virtual bool | saveToDevice (QIODevice *dev) const |
| |
| void | setActive (bool active) |
| |
| void | setDirty (bool value) |
| | Mark the preset as modified but not saved.
|
| |
| void | setFilename (const QString &filename) |
| |
| void | setImage (const QImage &image) |
| |
| void | setMD5Sum (const QString &md5sum) |
| | Set the md5sum of this resource. It must be in hex-encoded string format.
|
| |
| void | setName (const QString &name) |
| |
| void | setPermanent (bool permanent) |
| |
| void | setResourceId (int id) |
| |
| void | setStorageLocation (const QString &location) |
| |
| void | setValid (bool valid) |
| |
| void | setVersion (int version) |
| |
| virtual QList< KoResourceLoadResult > | sideLoadedResources (KisResourcesInterfaceSP globalResourcesInterface) const |
| |
| KoResourceSignature | signature () const |
| |
| QString | storageLocation () const |
| |
| QList< KoResourceLoadResult > | takeSideLoadedResources (KisResourcesInterfaceSP globalResourcesInterface) |
| |
| virtual QImage | thumbnail () const |
| | thumbnail the thumbnail image to use in resource selectors
|
| |
| virtual QString | thumbnailPath () const |
| | thumbnailPath returns the path to a separate thumbnail image, outside the actual resource file itself. If the path is relative, it is supposed start in the same location as the resource itself. If it's absolute, that is, it starts with "/", it is from the root of the storage.
|
| |
| virtual void | updateThumbnail () |
| | updateThumbnail updates the thumbnail for this resource. Reimplement if your thumbnail is something else than the image set with setImage.
|
| |
| bool | valid () const |
| |
| int | version () const |
| | Get the version of the resource.
|
| |
| virtual | ~KoResource () |
| |
Definition at line 9 of file KoCachedGradient.h.