Loading...
Searching...
No Matches
score::QGraphicsTimeChooser Class Referencefinal
Inheritance diagram for score::QGraphicsTimeChooser:
Public Types | |
| enum class | Feel : uint8_t { Straight , Dotted , Triplet } |
| Synced values the knob steps through (Alt or Shift: all of them). | |
Public Member Functions | |
| QGraphicsTimeChooser (QGraphicsItem *parent) | |
| void | setRange (double min, double max, double init) |
| void | setRect (const QRectF &r) |
| void | setValue (ossia::vec2f v) |
| ossia::vec2f | value () const noexcept |
| void | setExecutionValue (ossia::vec2f v) |
| double | executionPosition () const noexcept |
| void | resetExecution () |
| void | syncChanged (bool sync) |
| void | cycleMode () |
| bool | synced () const noexcept |
| QString | freeText () const |
| The readout in free mode: seconds, milliseconds, one decimal under 10 ms. | |
| Feel | feel () const noexcept |
| QRectF | boundingRect () const override |
| void | sliderMoved () |
| void | sliderReleased () |
Public Attributes | |
| double | min {} |
| double | max {1.} |
| double | init {} |
| bool | moving {} |
| std::function< double(double)> | positionToSeconds |
| std::function< double(double)> | secondsToPosition |
Friends | |
| struct | DefaultControlImpl |
| struct | DefaultGraphicsKnobImpl |
Member Function Documentation
◆ cycleMode()
| void score::QGraphicsTimeChooser::cycleMode | ( | ) |
What a click on the readout does: free, then synced to straight, dotted and triplet values of the same note, then free again.
Member Data Documentation
◆ positionToSeconds
| std::function<double(double)> score::QGraphicsTimeChooser::positionToSeconds |
Free mode: seconds for a knob position, and the reverse. Linear in the range unless the control's normalizer says otherwise (the factory sets them from it, so that the readout and the value agree).
The documentation for this class was generated from the following files:
- QGraphicsTimeChooser.hpp
- QGraphicsTimeChooser.cpp