Generic base for hardware-accelerated waveform rendering.
More...
#include <src/gui/qquick/waveform_canvas_item.h>
|
|
void | waveformColorChanged () |
|
void | outlineColorChanged () |
|
|
| WaveformCanvasItem (QQuickItem *parent=nullptr) |
|
QCanvasPainterItemRenderer * | createItemRenderer () const override |
| QColor | waveformColor () const |
|
void | setWaveformColor (const QColor &color) |
| QColor | outlineColor () const |
|
void | setOutlineColor (const QColor &color) |
| const juce::AudioSampleBuffer * | audioBuffer () const |
| uint64_t | bufferGeneration () const |
| | Monotonically increasing counter bumped on each buffer change.
|
Generic base for hardware-accelerated waveform rendering.
Owns the audio buffer storage and visual properties. Subclasses provide the buffer data by calling setAudioBuffer(). Not registered to QML — use a derived class for QML usage.
Definition at line 23 of file waveform_canvas_item.h.
◆ audioBuffer()
| const juce::AudioSampleBuffer * zrythm::gui::qquick::WaveformCanvasItem::audioBuffer |
( |
| ) |
const |
|
inline |
◆ bufferGeneration()
| uint64_t zrythm::gui::qquick::WaveformCanvasItem::bufferGeneration |
( |
| ) |
const |
|
inline |
Monotonically increasing counter bumped on each buffer change.
The renderer compares this against its own stored value to decide whether peak recomputation is needed — pure read-only access.
Definition at line 51 of file waveform_canvas_item.h.
◆ notifyBufferChanged()
| void zrythm::gui::qquick::WaveformCanvasItem::notifyBufferChanged |
( |
| ) |
|
|
protected |
Bumps the generation counter and schedules a repaint.
Call after writing directly into audio_buffer_.
◆ outlineColor()
| QColor zrythm::gui::qquick::WaveformCanvasItem::outlineColor |
( |
| ) |
const |
|
inline |
◆ waveformColor()
| QColor zrythm::gui::qquick::WaveformCanvasItem::waveformColor |
( |
| ) |
const |
|
inline |
◆ audio_buffer_
| juce::AudioSampleBuffer zrythm::gui::qquick::WaveformCanvasItem::audio_buffer_ |
|
protected |
◆ outlineColor
| QColor zrythm::gui::qquick::WaveformCanvasItem::outlineColor |
|
readwrite |
◆ waveformColor
| QColor zrythm::gui::qquick::WaveformCanvasItem::waveformColor |
|
readwrite |
The documentation for this class was generated from the following file: