Perceptual Color
colorwheel.cpp
38ColorWheel::ColorWheel(const QSharedPointer<PerceptualColor::RgbColorSpace> &colorSpace, QWidget *parent)
73ColorWheelPrivate::ColorWheelPrivate(ColorWheel *backLink, const QSharedPointer<PerceptualColor::RgbColorSpace> &colorSpace)
93PolarPointF ColorWheelPrivate::fromWidgetPixelPositionToWheelCoordinates(const QPoint position) const
110QPointF ColorWheelPrivate::fromWheelToWidgetCoordinates(const PolarPointF wheelCoordinates) const
460 const int size = qRound(innerDiameter + 2 * gradientThickness() + 2 * spaceForFocusIndicator());
int gradientMinimumLength() const
The minimum length of a color gradient.
Definition abstractdiagram.cpp:209
int spaceForFocusIndicator() const
The empty space around diagrams reserved for the focus indicator.
Definition abstractdiagram.cpp:231
int handleOutlineThickness() const
The outline thickness of a handle.
Definition abstractdiagram.cpp:156
QColor focusIndicatorColor() const
The color for painting focus indicators.
Definition abstractdiagram.cpp:46
int maximumPhysicalSquareSize() const
The maximum possible size of a square within the widget, measured in physical pixels.
Definition abstractdiagram.cpp:103
qreal maximumWidgetSquareSize() const
The maximum possible size of a square within the widget, measured in device-independent pixels.
Definition abstractdiagram.cpp:119
virtual void mousePressEvent(QMouseEvent *event) override
React on a mouse press event.
Definition colorwheel.cpp:133
Q_INVOKABLE ColorWheel(const QSharedPointer< PerceptualColor::RgbColorSpace > &colorSpace, QWidget *parent=nullptr)
Constructor.
Definition colorwheel.cpp:38
virtual void wheelEvent(QWheelEvent *event) override
React on a mouse wheel event.
Definition colorwheel.cpp:218
virtual QSize minimumSizeHint() const override
Recommended minimum size for the widget.
Definition colorwheel.cpp:452
virtual void mouseReleaseEvent(QMouseEvent *event) override
React on a mouse release event.
Definition colorwheel.cpp:198
virtual void mouseMoveEvent(QMouseEvent *event) override
React on a mouse move event.
Definition colorwheel.cpp:175
virtual void resizeEvent(QResizeEvent *event) override
React on a resize event.
Definition colorwheel.cpp:393
virtual QSize sizeHint() const override
Recommended size for the widget.
Definition colorwheel.cpp:440
void hueChanged(const qreal newHue)
Notify signal for property hue.
virtual void keyPressEvent(QKeyEvent *event) override
React on key press events.
Definition colorwheel.cpp:257
Format_ARGB32_Premultiplied
void fill(Qt::GlobalColor color)
void setDevicePixelRatio(qreal scaleFactor)
Q_EMITQ_EMIT
qreal devicePixelRatioF() const const
Antialiasing
void drawEllipse(const QPoint ¢er, int rx, int ry)
void drawImage(const QPoint &point, const QImage &image)
void drawLine(const QLine &line)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void setCapStyle(Qt::PenCapStyle style)
void setColor(const QColor &color)
void setWidth(int width)
int x() const const
int y() const const
void setX(qreal x)
void setY(qreal y)
qreal x() const const
qreal y() const const
MouseFocusReason
transparent
Key_Plus
FlatCap
virtual bool event(QEvent *event) override
bool hasFocus() const const
void setFocusPolicy(Qt::FocusPolicy policy)
virtual void keyPressEvent(QKeyEvent *event)
void setFocus()
size
void update()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.