Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
Triplet Struct Referencefinal

Public Member Functions

 Triplet ()=default
 
 Triplet (graphics::Color color)
 
void SetColor (graphics::Color color)
 
 Triplet (const Triplet &)=default
 
 Triplet (Triplet &&)=default
 

Public Attributes

uint8_t r { 0 }
 
uint8_t g { 0 }
 
uint8_t b { 0 }
 
uint8_t unused { 0 }
 

Detailed Description

Definition at line 32 of file WaveBitmapCache.cpp.

Constructor & Destructor Documentation

◆ Triplet() [1/4]

Triplet::Triplet ( )
default

◆ Triplet() [2/4]

Triplet::Triplet ( graphics::Color  color)
inlineexplicit

Definition at line 36 of file WaveBitmapCache.cpp.

37 : r(color.GetRed())
38 , g(color.GetGreen())
39 , b(color.GetBlue())
40 {
41 }
constexpr uint8_t GetBlue() const noexcept
Returns blue component of this color.
Definition: Color.h:99
constexpr uint8_t GetGreen() const noexcept
Returns green component of this color.
Definition: Color.h:93
constexpr uint8_t GetRed() const noexcept
Returns red component of this color.
Definition: Color.h:87

◆ Triplet() [3/4]

Triplet::Triplet ( const Triplet )
default

◆ Triplet() [4/4]

Triplet::Triplet ( Triplet &&  )
default

Member Function Documentation

◆ SetColor()

void Triplet::SetColor ( graphics::Color  color)
inline

Definition at line 43 of file WaveBitmapCache.cpp.

44 {
45 r = color.GetRed();
46 g = color.GetGreen();
47 b = color.GetBlue();
48 }

References b, g, graphics::Color::GetBlue(), graphics::Color::GetGreen(), graphics::Color::GetRed(), and r.

Here is the call graph for this function:

Member Data Documentation

◆ b

uint8_t Triplet::b { 0 }

Definition at line 55 of file WaveBitmapCache.cpp.

Referenced by SetColor().

◆ g

uint8_t Triplet::g { 0 }

Definition at line 54 of file WaveBitmapCache.cpp.

Referenced by SetColor().

◆ r

uint8_t Triplet::r { 0 }

Definition at line 53 of file WaveBitmapCache.cpp.

Referenced by SetColor().

◆ unused

uint8_t Triplet::unused { 0 }

Definition at line 57 of file WaveBitmapCache.cpp.


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