7#ifndef __KIS_ACS_TYPES_H
8#define __KIS_ACS_TYPES_H
26 template <
class ResourceProv
ider>
29 provider->setFGColor(color);
31 provider->setBGColor(color);
35 template <
class ResourceProv
ider>
37 return role ==
Acs::Foreground ? provider->fgColor() : provider->bgColor();
40 template <
class Pa
intDeviceSP>
44 (
void) device->pixel(pt.x(), pt.y(), &color);
49 template <
class Pa
intDeviceSP>
51 (
void) device->setPixel(pt.x(), pt.y(), color);
54 template<
class Iterator>
56 memcpy(it.rawData(), color.
data(), pixelSize);
typedef void(QOPENGLF_APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC)(GLuint buffer)
QString button(const QWheelEvent &ev)
QString buttons(const T &ev)
ColorRole buttonsToRole(Qt::MouseButton button, Qt::MouseButtons buttons)
ColorRole buttonToRole(Qt::MouseButton button)
void setColorWithIterator(Iterator &it, const KoColor &color, const int pixelSize)
void setColor(PaintDeviceSP device, const QPoint &pt, const KoColor &color)
KoColor currentColor(ResourceProvider *provider, ColorRole role)
KoColor sampleColor(PaintDeviceSP device, const QPoint &pt)
void setCurrentColor(ResourceProvider *provider, ColorRole role, const KoColor &color)