5#ifndef QQUICKSATURATIONLIGHTNESSPICKER_P_H
6#define QQUICKSATURATIONLIGHTNESSPICKER_P_H
29 QML_NAMED_ELEMENT(SaturationLightnessPickerCanvas)
30 Q_PROPERTY(qreal hue READ hue WRITE setHue NOTIFY hueChanged FINAL)
33 QQuickSaturationLightnessPickerCanvas(QQuickItem *parent =
nullptr);
35 qreal hue()
const {
return m_hue; }
42 QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
49 QImage generateImage(
int width,
int height,
double hue01)
const;
53 :
public QQuickAbstractColorPicker
56 QML_NAMED_ELEMENT(SaturationLightnessPickerImpl)
59 explicit QQuickSaturationLightnessPicker(QQuickItem *parent =
nullptr);
62 QColor colorAt(
const QPointF &pos) override;
65 Q_DISABLE_COPY(QQuickSaturationLightnessPicker)
66 Q_DECLARE_PRIVATE(QQuickSaturationLightnessPicker)
QQuickSaturationLightnessPickerMaterialShader()
bool updateUniformData(RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override
This function is called by the scene graph to get the contents of the shader program's uniform buffer...
QSGMaterialType * type() const override
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialSh...
QQuickSaturationLightnessPickerMaterial()
QSGMaterialShader * createShader(QSGRendererInterface::RenderMode renderMode) const override
This function returns a new instance of a the QSGMaterialShader implementation used to render geometr...
Combined button and popup list for selecting options.