Loading...
Searching...
No Matches
oscr::CustomItemWaveforms Class Reference

Detailed Description

The sound files a custom item draws with its painter's draw_waveform(), see halp::waveform_view: score's waveform renderer draws them. Each view of the item gets its renderer the first time it is drawn; an item that draws none costs nothing.

Classes

struct  Slot
 

Public Member Functions

 CustomItemWaveforms (QGraphicsItem &item) noexcept
 
 CustomItemWaveforms (const CustomItemWaveforms &)=delete
 
CustomItemWaveforms & operator= (const CustomItemWaveforms &)=delete
 
void setDocument (const score::DocumentContext *doc) noexcept
 
void draw (QPainter &painter, halp::waveform_view &view, const QRectF &rect, double dpr)
 Draws view in rect, and tells the view what is known of its file.
 

Member Function Documentation

◆ setDocument()

void oscr::CustomItemWaveforms::setDocument ( const score::DocumentContext *  doc)
inlinenoexcept

The document the files are looked up in: it resolves the paths documents store, e.g. "<PROJECT>:" ones.


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