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>
16 struct DefaultGraphicsSpinboxImpl;
19 ,
public QGraphicsItem
22 SCORE_GRAPHICS_ITEM_TYPE(260)
24 QRectF m_rect{0., 0., 150., 24.};
33 void setPoint(
const QPointF& r);
34 void setValue(ossia::vec2f v);
36 ossia::vec2f min = {0.f, 0.f}, ossia::vec2f max = {1.f, 1.f},
37 ossia::vec2f init = {0.f, 0.f});
39 ossia::vec2f value()
const noexcept;
40 ossia::vec2f getMin()
const noexcept;
41 ossia::vec2f getMax()
const noexcept;
46 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
47 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
50 ossia::vec2f scaledValue(
float x,
float y)
const noexcept;
51 QRectF boundingRect()
const override;
52 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
58 ,
public QGraphicsItem
61 SCORE_GRAPHICS_ITEM_TYPE(270)
63 QRectF m_rect{0., 0., 150., 24.};
73 void setPoint(
const QPointF& r);
74 void setValue(ossia::vec2f v);
76 ossia::vec2f min = {0.f, 0.f}, ossia::vec2f max = {1.f, 1.f},
77 ossia::vec2f init = {0.f, 0.f});
79 ossia::vec2f value()
const noexcept;
80 ossia::vec2f getMin()
const noexcept;
81 ossia::vec2f getMax()
const noexcept;
86 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
87 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
90 ossia::vec2f scaledValue(
float x,
float y)
const noexcept;
91 QRectF boundingRect()
const override;
92 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: QGraphicsSpinbox.hpp:64
Definition: QGraphicsXYSpinbox.hpp:59
Definition: QGraphicsSpinbox.hpp:15
Definition: QGraphicsXYSpinbox.hpp:20
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: DefaultGraphicsSpinboxImpl.hpp:24