2 #include <score/graphics/widgets/Constants.hpp>
3 #include <score/graphics/widgets/QGraphicsSpinbox.hpp>
5 #include <ossia-qt/value_metatypes.hpp>
7 #include <QGraphicsItem>
10 #include <score_lib_base_export.h>
18 ,
public QGraphicsItem
21 SCORE_GRAPHICS_ITEM_TYPE(290)
22 QRectF m_rect{0., 0., 150., 24.};
29 void setPoint(
const QPointF& r);
30 void setValue(ossia::vec3f v);
32 ossia::vec3f min = {0.f, 0.f, 0.f}, ossia::vec3f max = {1.f, 1.f, 1.f},
33 ossia::vec3f init = {0.f, 0.f, 0.f});
34 ossia::vec3f value()
const noexcept;
35 ossia::vec3f getMin()
const noexcept;
36 ossia::vec3f getMax()
const noexcept;
41 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
42 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
45 ossia::vec3f scaledValue(
float x,
float y,
float z)
const noexcept;
46 QRectF boundingRect()
const override;
47 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: QGraphicsSpinbox.hpp:15
Definition: QGraphicsXYZSpinbox.hpp:19
Base toolkit upon which the software is built.
Definition: Application.cpp:90