14 int height,
double zoomMin,
double zoomMax,
bool showClipping)
noexcept
20 ShowClipping = showClipping;
44 ZeroLineColor = color;
51 BackgroundColors = { normal, selected };
58 SampleColors = { normal, selected };
65 RMSColors = { normal, selected };
72 ClippingColors = { normal, selected };
79 AttachedEnvelope = &envelope;
97 return lhs.Normal == rhs.Normal && lhs.Selected == rhs.Selected;
102 return !(lhs == rhs);
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 &&
115 lhs.BackgroundColors == rhs.BackgroundColors &&
116 lhs.SampleColors == rhs.SampleColors &&
117 lhs.RMSColors == rhs.RMSColors &&
118 lhs.ClippingColors == rhs.ClippingColors;
125 return !(lhs == rhs);
bool operator!=(const ColorPair &lhs, const ColorPair &rhs) noexcept
bool operator==(const ColorPair &lhs, const ColorPair &rhs) noexcept
Piecewise linear or piecewise exponential function from double to double.
Pair of colors for waveform painting.
Parameters for the waveform painting.
const Envelope * AttachedEnvelope
Attached volume envelope, if any.
WavePaintParameters & SetBlankColor(graphics::Color color) noexcept
Sets the blank color.
WavePaintParameters & SetShowRMS(bool showRMS) noexcept
Sets the ShowRMS flag.
WavePaintParameters & ResetEnvelope() noexcept
Resets the envelope.
WavePaintParameters & SetBackgroundColors(graphics::Color normal, graphics::Color selected) noexcept
Sets the background colors.
WavePaintParameters & SetZeroLineColor(graphics::Color color) noexcept
Sets the horizontal zero line color.
WavePaintParameters & SetDBParameters(double dbRange, bool dbScale) noexcept
Sets the dB scale parameters.
WavePaintParameters & SetClippingColors(graphics::Color normal, graphics::Color selected) noexcept
Sets the clipping colors.
WavePaintParameters & SetSampleColors(graphics::Color normal, graphics::Color selected) noexcept
Sets the sample colors.
WavePaintParameters & SetDisplayParameters(int height, double zoomMin, double zoomMax, bool showClipping) noexcept
Sets the basic painting parameters.
WavePaintParameters & SetEnvelope(const Envelope &envelope) noexcept
Sets volume envelope.
WavePaintParameters & SetRMSColors(graphics::Color normal, graphics::Color selected) noexcept
Sets the RMS colors.
Class for storing color in 32-bit format.