Audacity 3.2.0
|
#include <WaveformAppearance.h>
Public Member Functions | |
WaveColorAttachment () | |
~WaveColorAttachment () override | |
std::unique_ptr< WaveClipListener > | Clone () const override |
void | MarkChanged () noexcept override |
void | Invalidate () override |
void | WriteXMLAttributes (XMLWriter &writer) const override |
bool | HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView) override |
int | GetColorIndex () const |
void | SetColorIndex (int colorIndex) |
Public Member Functions inherited from WaveClipListener | |
virtual | ~WaveClipListener ()=0 |
virtual void | MarkChanged () noexcept=0 |
virtual void | Invalidate ()=0 |
virtual void | WriteXMLAttributes (XMLWriter &writer) const |
virtual bool | HandleXMLAttribute (const std::string_view &attr, const XMLAttributeValueView &valueView) |
virtual void | MakeStereo (WaveClipListener &&other, bool aligned) |
virtual void | SwapChannels () |
Default implementation does nothing. More... | |
virtual void | Erase (size_t index) |
Static Public Member Functions | |
static WaveColorAttachment & | Get (WaveClip &clip) |
static const WaveColorAttachment & | Get (const WaveClip &clip) |
static WaveColorAttachment & | Get (WaveChannelInterval &clip) |
static const WaveColorAttachment & | Get (const WaveChannelInterval &clip) |
Private Attributes | |
int | mColorIndex {} |
Definition at line 48 of file WaveformAppearance.h.
|
explicit |
Definition at line 113 of file WaveformAppearance.cpp.
|
override |
Definition at line 117 of file WaveformAppearance.cpp.
|
override |
Definition at line 121 of file WaveformAppearance.cpp.
|
static |
Definition at line 147 of file WaveformAppearance.cpp.
References Get(), and WaveClipChannel::GetClip().
|
static |
Definition at line 136 of file WaveformAppearance.cpp.
References keyWCA.
|
static |
Definition at line 142 of file WaveformAppearance.cpp.
References Get(), and WaveClipChannel::GetClip().
|
static |
Definition at line 131 of file WaveformAppearance.cpp.
References keyWCA.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawClipWaveform(), Get(), and WaveformAppearance::SetColorIndex().
|
inline |
Definition at line 70 of file WaveformAppearance.h.
References mColorIndex.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawClipWaveform().
|
overridevirtual |
Reimplemented from WaveClipListener.
Definition at line 161 of file WaveformAppearance.cpp.
References ColorIndex_attr, SetColorIndex(), and XMLAttributeValueView::TryGet().
|
overridevirtual |
|
overridevirtualnoexcept |
|
inline |
Definition at line 71 of file WaveformAppearance.h.
References mColorIndex.
Referenced by HandleXMLAttribute(), and WaveformAppearance::SetColorIndex().
|
overridevirtual |
Reimplemented from WaveClipListener.
Definition at line 156 of file WaveformAppearance.cpp.
References ColorIndex_attr, mColorIndex, and XMLWriter::WriteAttr().
|
private |
Definition at line 74 of file WaveformAppearance.h.
Referenced by GetColorIndex(), SetColorIndex(), and WriteXMLAttributes().