Audacity 3.2.0
Functions
WavePaintParameters.cpp File Reference
#include "WavePaintParameters.h"
Include dependency graph for WavePaintParameters.cpp:

Go to the source code of this file.

Functions

bool operator== (const ColorPair &lhs, const ColorPair &rhs) noexcept
 
bool operator!= (const ColorPair &lhs, const ColorPair &rhs) noexcept
 
bool operator== (const WavePaintParameters &lhs, const WavePaintParameters &rhs) noexcept
 
bool operator!= (const WavePaintParameters &lhs, const WavePaintParameters &rhs) noexcept
 

Function Documentation

◆ operator!=() [1/2]

bool operator!= ( const ColorPair lhs,
const ColorPair rhs 
)
noexcept

Definition at line 100 of file WavePaintParameters.cpp.

101{
102 return !(lhs == rhs);
103}

◆ operator!=() [2/2]

bool operator!= ( const WavePaintParameters lhs,
const WavePaintParameters rhs 
)
noexcept

Definition at line 121 of file WavePaintParameters.cpp.

124{
125 return !(lhs == rhs);
126}

◆ operator==() [1/2]

bool operator== ( const ColorPair lhs,
const ColorPair rhs 
)
noexcept

Definition at line 95 of file WavePaintParameters.cpp.

96{
97 return lhs.Normal == rhs.Normal && lhs.Selected == rhs.Selected;
98}
graphics::Color Normal
Color for the normal state.
graphics::Color Selected
Color for the selected state.

◆ operator==() [2/2]

bool operator== ( const WavePaintParameters lhs,
const WavePaintParameters rhs 
)
noexcept

Definition at line 105 of file WavePaintParameters.cpp.

108{
109 return lhs.AttachedEnvelope == rhs.AttachedEnvelope &&
110 lhs.Height == rhs.Height && lhs.Min == rhs.Min &&
111 lhs.Max == rhs.Max && lhs.DBRange == rhs.DBRange &&
112 lhs.DBScale == rhs.DBScale && lhs.ShowClipping == rhs.ShowClipping &&
113 lhs.ShowRMS == rhs.ShowRMS &&
114 lhs.BlankColor == rhs.BlankColor &&
116 lhs.SampleColors == rhs.SampleColors &&
117 lhs.RMSColors == rhs.RMSColors &&
119}
const Envelope * AttachedEnvelope
Attached volume envelope, if any.
bool ShowRMS
True, if we paint RMS values on top of min and max.
graphics::Color BlankColor
Color outside the waveform area.
ColorPair RMSColors
Color of the (-rms, +rms) line.
bool DBScale
True, if we paint in dB scale.
bool ShowClipping
True, if we mark clipped values.
double DBRange
Decibel range.
double Max
Max value used to clip the output.
ColorPair SampleColors
Color of the (min, max) line.
ColorPair ClippingColors
Color for the columns where clipping has occurred.
ColorPair BackgroundColors
Waveform background color.
int Height
Height of the of clip on screen.
double Min
Min value used to clip the output.