common_util 1.1.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
cutl::color_argb Class Reference

argb clolor space More...

#include <color.h>

Public Member Functions

 color_argb ()
 Construct a new color argb object, default color is black.
 
 color_argb (uint32_t value)
 Construct a new color argb object.
 
 color_argb (uint8_t r, uint8_t g, uint8_t b)
 Construct a new color argb object.
 
 color_argb (uint8_t a, uint8_t r, uint8_t g, uint8_t b)
 Construct a new color argb object.
 
virtual ~color_argb ()
 Destroy the color argb object.
 
uint32_t value () const
 Get the value of argb color.
 
uint8_t a () const
 Get alpha value.
 
uint8_t r () const
 Get red value.
 
uint8_t g () const
 Get green value.
 
uint8_t b () const
 Get blue value.
 
void set_value (uint32_t uValue)
 Set the value object.
 
bool operator== (const color_argb &color)
 Is equal to another color_argb object.
 
bool operator!= (const color_argb &color)
 Is not equal to another color_argb object.
 

Static Public Attributes

static color_argb white
 Const color_argb object, white color.
 
static color_argb black
 Const color_argb object, black color.
 
static color_argb aqua
 Const color_argb object, aqua color.
 
static color_argb blue
 Const color_argb object, blue color.
 
static color_argb fuschia
 Const color_argb object, fuchsia color.
 
static color_argb gray
 Const color_argb object, gray color.
 
static color_argb green
 Const color_argb object, green color.
 
static color_argb lime
 Const color_argb object, lime color.
 
static color_argb maroon
 Const color_argb object, maroon color.
 
static color_argb navy
 Const color_argb object, navy color.
 
static color_argb olive
 Const color_argb object, olive color.
 
static color_argb purple
 Const color_argb object, orange color.
 
static color_argb red
 Const color_argb object, red color.
 
static color_argb silver
 Const color_argb object, silver color.
 
static color_argb teal
 Const color_argb object, teal color.
 
static color_argb yellow
 Const color_argb object, yellow color.
 

Detailed Description

argb clolor space

Constructor & Destructor Documentation

◆ color_argb() [1/3]

cutl::color_argb::color_argb ( uint32_t  value)

Construct a new color argb object.

Parameters
valuethe value of argb color

◆ color_argb() [2/3]

cutl::color_argb::color_argb ( uint8_t  r,
uint8_t  g,
uint8_t  b 
)

Construct a new color argb object.

Parameters
rred value
ggreen value
bblue value

◆ color_argb() [3/3]

cutl::color_argb::color_argb ( uint8_t  a,
uint8_t  r,
uint8_t  g,
uint8_t  b 
)

Construct a new color argb object.

Parameters
aalpha value
rred value
ggreen value
bblue value

Member Function Documentation

◆ a()

uint8_t cutl::color_argb::a ( ) const

Get alpha value.

Returns
uint8_t

◆ b()

uint8_t cutl::color_argb::b ( ) const

Get blue value.

Returns
uint8_t

◆ g()

uint8_t cutl::color_argb::g ( ) const

Get green value.

Returns
uint8_t

◆ operator!=()

bool cutl::color_argb::operator!= ( const color_argb color)

Is not equal to another color_argb object.

Parameters
color
Returns
true
false

◆ operator==()

bool cutl::color_argb::operator== ( const color_argb color)

Is equal to another color_argb object.

Parameters
color
Returns
true
false

◆ r()

uint8_t cutl::color_argb::r ( ) const

Get red value.

Returns
uint8_t

◆ set_value()

void cutl::color_argb::set_value ( uint32_t  uValue)

Set the value object.

Parameters
uValue

◆ value()

uint32_t cutl::color_argb::value ( ) const

Get the value of argb color.

Returns
uint32_t

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