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

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

◆ operator==

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

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.

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: