Perceptual Color
4#ifndef CHROMAHUEDIAGRAM_P_H
5#define CHROMAHUEDIAGRAM_P_H
10#include "asyncimageprovider.h"
11#include "chromahueimageparameters.h"
12#include "colorwheelimage.h"
13#include "constpropagatingrawpointer.h"
14#include "genericcolor.h"
18#include <qsharedpointer.h>
39class ChromaHueDiagramPrivate final
42 ChromaHueDiagramPrivate(ChromaHueDiagram *backLink,
const QSharedPointer<PerceptualColor::RgbColorSpace> &colorSpace);
47 ~ChromaHueDiagramPrivate() noexcept = default;
51 AsyncImageProvider<ChromaHueImageParameters> m_chromaHueImage;
53 ChromaHueImageParameters m_chromaHueImageParameters;
56 GenericColor m_currentColorCielchD50;
73 bool m_isMouseEventActive = false;
76 QSharedPointer<PerceptualColor::RgbColorSpace> m_rgbColorSpace;
78 ColorWheelImage m_wheelImage;
81 [[nodiscard]]
int diagramBorder() const;
82 [[nodiscard]] QPointF diagramCenter() const;
83 [[nodiscard]] qreal diagramOffset() const;
84 [[nodiscard]] cmsCIELab fromWidgetPixelPositionToLab(const QPoint position) const;
85 [[nodiscard]]
bool isWidgetPixelPositionWithinMouseSensibleCircle(const QPoint widgetCoordinates) const;
86 void setColorFromWidgetPixelPosition(const QPoint position);
87 [[nodiscard]] QPointF widgetCoordinatesFromCurrentColorCielchD50() const;
90 Q_DISABLE_COPY(ChromaHueDiagramPrivate)
94 ConstPropagatingRawPointer<ChromaHueDiagram> q_pointer;
A widget for selecting chroma and hue in LCH color space.
The namespace of this library.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:46:43 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.