Clapkit
Loading...
Searching...
No Matches
CKColor Struct Reference

Defines an RGB color. A (Alpha) is usually not used in our case. More...

#include <ckTypes.h>

Public Member Functions

 CKColor (u_int8_t red, u_int8_t green, u_int8_t blue)
 
 CKColor ()
 
RGBColor ToOS ()
 
bool operator== (const CKColor &other) const
 
bool operator!= (const CKColor &other) const
 

Public Attributes

u_int8_t r = 0
 
u_int8_t g = 0
 
u_int8_t b = 0
 
u_int8_t a = 255
 

Detailed Description

Defines an RGB color. A (Alpha) is usually not used in our case.

Constructor & Destructor Documentation

◆ CKColor() [1/2]

CKColor::CKColor ( u_int8_t  red,
u_int8_t  green,
u_int8_t  blue 
)
inline

◆ CKColor() [2/2]

CKColor::CKColor ( )
inline

Member Function Documentation

◆ operator!=()

bool CKColor::operator!= ( const CKColor other) const
inline

◆ operator==()

bool CKColor::operator== ( const CKColor other) const
inline

◆ ToOS()

RGBColor CKColor::ToOS ( )
inline

Member Data Documentation

◆ a

u_int8_t CKColor::a = 255

◆ b

u_int8_t CKColor::b = 0

◆ g

u_int8_t CKColor::g = 0

◆ r

u_int8_t CKColor::r = 0

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