Audacity 3.2.0
Public Attributes | Friends | List of all members
ColorPair Struct Referencefinal

Pair of colors for waveform painting. More...

#include <WavePaintParameters.h>

Collaboration diagram for ColorPair:
[legend]

Public Attributes

graphics::Color Normal
 Color for the normal state. More...
 
graphics::Color Selected
 Color for the selected state. More...
 

Friends

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

Detailed Description

Pair of colors for waveform painting.

Definition at line 18 of file WavePaintParameters.h.

Friends And Related Function Documentation

◆ operator!=

WAVE_TRACK_PAINT_API bool operator!= ( const ColorPair lhs,
const ColorPair rhs 
)
friend

Definition at line 100 of file WavePaintParameters.cpp.

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

◆ operator==

WAVE_TRACK_PAINT_API bool operator== ( const ColorPair lhs,
const ColorPair rhs 
)
friend

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.

Member Data Documentation

◆ Normal

graphics::Color ColorPair::Normal

Color for the normal state.

Definition at line 21 of file WavePaintParameters.h.

◆ Selected

graphics::Color ColorPair::Selected

Color for the selected state.

Definition at line 23 of file WavePaintParameters.h.


The documentation for this struct was generated from the following file: