2 #include <score/graphics/widgets/Constants.hpp>
4 #include <ossia-qt/value_metatypes.hpp>
6 #include <QGraphicsItem>
9 #include <score_lib_base_export.h>
17 ,
public QGraphicsItem
20 SCORE_GRAPHICS_ITEM_TYPE(50)
22 QRectF m_rect{0., 0., 140., 100.};
26 ossia::vec4f m_value{};
33 void setRect(
const QRectF& r);
34 void setRgbaValue(ossia::vec4f v);
35 void setHsvValue(ossia::vec4f v);
36 ossia::vec4f rgbaValue()
const;
37 ossia::vec4f hsvValue()
const;
42 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
43 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
46 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
47 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
48 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
49 QRectF boundingRect()
const override;
50 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: QGraphicsHSVChooser.hpp:18
Base toolkit upon which the software is built.
Definition: Application.cpp:90