Loading...
Searching...
No Matches
QGraphicsSliderBase.hpp
1#pragma once
2#include <score/graphics/widgets/Constants.hpp>
3
4#include <QGraphicsItem>
5#include <QObject>
6
7#include <score_lib_base_export.h>
8
9#include <verdigris>
10
11namespace score
12{
13
14struct RightClickImpl;
15template <typename T>
16struct QGraphicsSliderBase : public QGraphicsItem
17{
18 QGraphicsSliderBase(QGraphicsItem* parent);
20
21 bool isInHandle(QPointF p);
22 double getHandleX() const;
23 double getExecHandleX() const;
24 QRectF sliderRect() const;
25 QRectF handleRect() const;
26 QRectF execHandleRect() const;
27
28 void setRect(const QRectF& r);
29 QRectF boundingRect() const override;
30
31 QRectF m_rect{defaultSliderSize};
32 RightClickImpl* impl{};
33};
34
35}
Base toolkit upon which the software is built.
Definition Application.cpp:90
Definition QGraphicsSliderBase.hpp:17
Definition DefaultGraphicsSliderImpl.hpp:25