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(250)
21 QRectF m_rect{0., 0., 100., 100.};
24 ossia::vec2f m_value{}, m_min{}, m_max{}, m_init{};
31 void setPoint(
const QPointF& r);
32 void setValue(ossia::vec2f v);
33 void setRange(ossia::vec2f min, ossia::vec2f max, ossia::vec2f init);
34 ossia::vec2f value()
const;
39 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
40 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
43 ossia::vec2f scaledValue(
float x,
float y)
const noexcept;
44 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
45 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
46 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
47 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
48 QRectF boundingRect()
const override;
49 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: QGraphicsXYChooser.hpp:18
Base toolkit upon which the software is built.
Definition: Application.cpp:90