8#ifndef KO_CANVASRESOURCEMANAGER_H
9#define KO_CANVASRESOURCEMANAGER_H
13#include "kritaflake_export.h"
77 void setResource(
int key,
const QVariant &
value);
85 void setResource(
int key,
const KoColor &color);
93 void setResource(
int key,
KoShape *shape);
101 void setResource(
int key,
const KoUnit &unit);
118 QVariant resource(
int key)
const;
124 void setForegroundColor(
const KoColor &color);
129 KoColor foregroundColor()
const;
135 void setBackgroundColor(
const KoColor &color);
139 KoColor backgroundColor()
const;
146 bool boolResource(
int key)
const;
153 int intResource(
int key)
const;
160 KoColor koColorResource(
int key)
const;
167 KoShape *koShapeResource(
int key)
const;
174 QString stringResource(
int key)
const;
181 QSizeF sizeResource(
int key)
const;
188 KoUnit unitResource(
int key)
const;
195 void setHandleRadius(
int handleSize);
197 int handleRadius()
const;
204 void setDecorationThickness(
int decorationThickness);
210 int decorationThickness()
const;
217 void setUsingOtherColor(
bool usingOtherColor);
223 bool isUsingOtherColor()
const;
230 bool hasResource(
int key)
const;
238 void clearResource(
int key);
248 bool hasDerivedResourceConverter(
int key);
253 void removeDerivedResourceConverter(
int key);
258 bool hasAbstractResource(
int key);
263 void removeAbstractResource(
int key);
273 bool hasResourceUpdateMediator(
int key);
278 void removeResourceUpdateMediator(
int key);
288 bool hasActiveCanvasResourceDependency(
int sourceKey,
int targetKey)
const;
293 void removeActiveCanvasResourceDependency(
int sourceKey,
int targetKey);
float value(const T *src, size_t ch)
KoCanvasResourceProvider(const KoCanvasResourceProvider &)
void canvasResourceChanged(int key, const QVariant &value)
KoCanvasResourceProvider & operator=(const KoCanvasResourceProvider &)
void canvasResourceChangeAttempted(int key, const QVariant &value)
An abstract class for providing access to canvas resources like current gradient and Fg/Bg colors.