7#ifndef KIS_COLOR_SELECTOR_TRIANGLE_H
8#define KIS_COLOR_SELECTOR_TRIANGLE_H
16 class PixelCacheRenderer;
27 void paint(QPainter*)
override;
void paint(QPainter *) override
bool containsPointInComponentCoords(int x, int y) const override
KisColorSelectorTriangle(KisColorSelector *parent)
KoColor selectColor(int x, int y) override
this method must be overloaded to return the color at position x/y and draw a marker on that position
QPoint widgetToTriangleCoordinates(const QPoint &point) const
QPoint triangleToWidgetCoordinates(const QPoint &point) const
KoColor colorAt(float x, float y) const
int triangleWidth() const
void updatePixelCache(qreal devicePixelRatioF)
qreal m_cacheDevicePixelRatioF
KisPaintDeviceSP m_realPixelCache
QImage m_renderedPixelCache
void setColor(const KoColor &color) override
set the color, blibs etc
int triangleHeight() const