8#include "dsp/tick_types.h"
12#include <QtCanvasPainter/qcanvaspainter.h>
13#include <QtCanvasPainter/qcanvaspainteritemrenderer.h>
15namespace zrythm::structure::arrangement
21namespace zrythm::gui::qquick
47std::vector<ComputedChordCell>
50 dsp::ContentTick display_end_tick);
56class ChordClipCanvasRenderer :
public QCanvasPainterItemRenderer
59 ChordClipCanvasRenderer () =
default;
60 Q_DISABLE_COPY_MOVE (ChordClipCanvasRenderer)
62 void synchronize (QCanvasPainterItem * item)
override;
63 void paint (QCanvasPainter * painter)
override;
72 float full_name_width;
77 std::vector<CachedCell> cells_;
81 float canvas_width_ = 0.0f;
82 float canvas_height_ = 0.0f;
A chord placed inside a ChordClip on the chord track.
One chord as it should be drawn within the clip, after loop expansion.
dsp::ContentTick abs_end
Absolute end position within the clip.
dsp::ContentTick abs_start
Absolute start position within the clip.
int chord_index
Index of the chord in insertion order (not sorted order).
structure::arrangement::ChordObject * chord_object
Pointer to the source chord object.