Loading...
Searching...
No Matches
score::QGraphicsMultiSliderXY Class Referencefinal
Inheritance diagram for score::QGraphicsMultiSliderXY:

Public Member Functions

QRectF cursorRect (const ossia::vec2f &cursor) const noexcept
 Drawn box of a cursor, in item coordinates - note that y is flipped.
 
QRectF cursorPickRect (const ossia::vec2f &cursor) const noexcept
 Drawn box grown by a small margin, so that the whole node can be grabbed.
 
int cursorAt (QPointF p, bool margin=true) const noexcept
 
 QGraphicsMultiSliderXY (QGraphicsItem *parent)
 
void setPoint (const QPointF &r)
 
void setValue (ossia::value v)
 
ossia::value value () const
 
void setRange (const ossia::value &min, const ossia::value &max)
 
void setRange (const ossia::domain &dom)
 
void sliderMoved ()
 
void sliderReleased ()
 

Static Public Member Functions

static constexpr double width ()
 
static constexpr double height ()
 

Public Attributes

std::vector< ossia::vec2f > tab
 
halp::xy_type< float > cursorSize {0.04, 0.04}
 
int selectedCursor
 
bool isSelected
 
double min {0.}
 
double max {1.}
 
bool m_grab {}
 
std::vector< ossia::value > m_value {}
 
std::vector< ossia::value > m_execValue {}
 
bool m_hasExec {}
 
bool moving = false
 
RightClickImpl * impl {}
 

Friends

template<typename T >
struct GridWidget
 

Member Function Documentation

◆ cursorAt()

int score::QGraphicsMultiSliderXY::cursorAt ( QPointF  p,
bool  margin = true 
) const
noexcept

Cursor under p, nearest centre first when several overlap, or -1 Index of the cursor at p, nearest centre first. margin adds the grab tolerance; deletion passes false so it cannot reach outside what is drawn.


The documentation for this class was generated from the following files: