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)
 

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 Data Documentation

◆ 

struct { ... } COLOR_RGBA::@1

◆ a

unsigned char COLOR_RGBA::a

Definition at line 43 of file color_rgba.h.

Referenced by BlendColor(), and COLOR_RGBA().

◆ b

unsigned char COLOR_RGBA::b

Definition at line 42 of file color_rgba.h.

Referenced by BlendColor(), and COLOR_RGBA().

◆ 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

Definition at line 41 of file color_rgba.h.

Referenced by BlendColor(), and COLOR_RGBA().

◆ r

unsigned char COLOR_RGBA::r

Definition at line 40 of file color_rgba.h.

Referenced by BlendColor(), and COLOR_RGBA().


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