KiCad PCB EDA Suite
Loading...
Searching...
No Matches
COLOR_RGBA Union Reference

#include <color_rgba.h>

Public Member Functions

 COLOR_RGBA (const SFVEC3F &aColor)
 
 COLOR_RGBA (const SFVEC4F &aColor)
 
 COLOR_RGBA ()
 
 COLOR_RGBA (unsigned char aR, unsigned char aG, unsigned char aB)
 
 COLOR_RGBA (unsigned char aR, unsigned char aG, unsigned char aB, unsigned char aA)
 
 operator SFVEC4F () const
 

Public Attributes

unsigned char c [4]
 
struct { 
 
   unsigned char   r 
 
   unsigned char   g 
 
   unsigned char   b 
 
   unsigned char   a 
 
};  
 

Detailed Description

Definition at line 34 of file color_rgba.h.

Constructor & Destructor Documentation

◆ COLOR_RGBA() [1/5]

COLOR_RGBA::COLOR_RGBA ( const SFVEC3F & aColor)

Definition at line 33 of file color_rgba.cpp.

References a, b, g, and r.

◆ COLOR_RGBA() [2/5]

COLOR_RGBA::COLOR_RGBA ( const SFVEC4F & aColor)

Definition at line 42 of file color_rgba.cpp.

References a, b, g, and r.

◆ COLOR_RGBA() [3/5]

COLOR_RGBA::COLOR_RGBA ( )
inline

Definition at line 48 of file color_rgba.h.

References a, b, g, and r.

◆ COLOR_RGBA() [4/5]

COLOR_RGBA::COLOR_RGBA ( unsigned char aR,
unsigned char aG,
unsigned char aB )
inline

Definition at line 49 of file color_rgba.h.

References b, g, and r.

◆ COLOR_RGBA() [5/5]

COLOR_RGBA::COLOR_RGBA ( unsigned char aR,
unsigned char aG,
unsigned char aB,
unsigned char aA )
inline

Definition at line 56 of file color_rgba.h.

References a, b, g, and r.

Member Function Documentation

◆ operator SFVEC4F()

COLOR_RGBA::operator SFVEC4F ( ) const

Definition at line 51 of file color_rgba.cpp.

References a, b, g, and r.

Member Data Documentation

◆ [struct]

struct { ... } COLOR_RGBA

◆ a

unsigned char COLOR_RGBA::a

◆ b

unsigned char COLOR_RGBA::b

◆ c

unsigned char COLOR_RGBA::c[4]

Definition at line 36 of file color_rgba.h.

Referenced by SetPixel().

◆ g

unsigned char COLOR_RGBA::g

◆ r

unsigned char COLOR_RGBA::r

The documentation for this union was generated from the following files: