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 94 of file WavePaintParameters.cpp.

95{
96 return !(lhs == rhs);
97}

◆ operator!=() [2/2]

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

Definition at line 114 of file WavePaintParameters.cpp.

117{
118 return !(lhs == rhs);
119}

◆ operator==() [1/2]

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

Definition at line 89 of file WavePaintParameters.cpp.

90{
91 return lhs.Normal == rhs.Normal && lhs.Selected == rhs.Selected;
92}
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 99 of file WavePaintParameters.cpp.

102{
103 return lhs.AttachedEnvelope == rhs.AttachedEnvelope &&
104 lhs.Height == rhs.Height && lhs.Min == rhs.Min &&
105 lhs.Max == rhs.Max && lhs.DBRange == rhs.DBRange &&
106 lhs.DBScale == rhs.DBScale && lhs.ShowClipping == rhs.ShowClipping &&
107 lhs.BlankColor == rhs.BlankColor &&
109 lhs.SampleColors == rhs.SampleColors &&
110 lhs.RMSColors == rhs.RMSColors &&
112}
const Envelope * AttachedEnvelope
Attached volume envelope, if any.
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.