Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_color_selector_simple.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Adam Celarek <kdedev at xibo dot at>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_COLOR_SELECTOR_SIMPLE_H
8#define KIS_COLOR_SELECTOR_SIMPLE_H
9
10typedef unsigned int QRgb;
11
12#include <QColor>
13#include <QImage>
14
15#include "KoColor.h"
17
18namespace Acs {
19 class PixelCacheRenderer;
20}
21
22
24{
25Q_OBJECT
26public:
28 void setColor(const KoColor &color) override;
29
30protected:
31 void paint(QPainter*) override;
32 KoColor selectColor(int x, int y) override;
33
34private:
36 KoColor colorAt(float x, float y);
37
38private:
41 qreal R {0.0};
42 qreal G {0.0};
43 qreal B {0.0};
44 qreal Gamma {0.0};
45};
46
47#endif
void paint(QPainter *) override
void setColor(const KoColor &color) override
set the color, blibs etc
KoColor colorAt(float x, float y)
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
KisColorSelectorSimple(KisColorSelector *parent)
unsigned int QRgb