19 ,
public QGraphicsItem
22 SCORE_GRAPHICS_ITEM_TYPE(260)
27 std::array<double, 2> m_prev{};
34 void setPoint(
const QPointF& r);
35 void setValue(std::array<float, 2> v);
36 void setValue(std::array<double, 2> v);
38 ossia::vec2f min = {0.f, 0.f}, ossia::vec2f max = {1.f, 1.f},
39 ossia::vec2f init = {0.f, 0.f});
41 std::array<double, 2> value()
const noexcept;
42 std::array<double, 2> getMin()
const noexcept;
43 std::array<double, 2> getMax()
const noexcept;
48 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
49 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
52 void componentMoved(std::size_t source);
53 std::array<double, 2> normalizedValue()
const noexcept;
54 std::array<double, 2> scaledValue(
double x,
double y)
const noexcept;
55 QRectF boundingRect()
const override;
56 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
62 ,
public QGraphicsItem
65 SCORE_GRAPHICS_ITEM_TYPE(270)
70 std::array<double, 2> m_prev{};
78 void setPoint(
const QPointF& r);
79 void setValue(std::array<float, 2> v);
80 void setValue(std::array<double, 2> v);
82 ossia::vec2f min = {0.f, 0.f}, ossia::vec2f max = {1.f, 1.f},
83 ossia::vec2f init = {0.f, 0.f});
85 std::array<double, 2> value()
const noexcept;
86 std::array<double, 2> getMin()
const noexcept;
87 std::array<double, 2> getMax()
const noexcept;
92 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
93 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
96 void componentMoved(std::size_t source);
97 std::array<double, 2> normalizedValue()
const noexcept;
98 std::array<double, 2> scaledValue(
double x,
double y)
const noexcept;
99 QRectF boundingRect()
const override;
100 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)