Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cColor555 Class Reference

#include <cColorRef.h>

Public Member Functions

 cColor555 (COLOR555_t c=0) noexcept
 
 cColor555 (COLOR_ELEM_t _r, COLOR_ELEM_t _g, COLOR_ELEM_t _b, bool bOpaque=true) noexcept
 
 operator COLOR555_t () const noexcept
 
COLOR_ELEM_t get_R () const noexcept
 
COLOR_ELEM_t get_G () const noexcept
 
COLOR_ELEM_t get_B () const noexcept
 
COLOR_ELEM_t get_A () const noexcept
 
void put_ColorRef (COLORREF cVal) noexcept
 
COLORREF get_ColorRef () const noexcept
 
D3DCOLOR get_ColorDX () const noexcept
 

Static Public Member Functions

static COLOR555_t Make (COLOR_ELEM_t r, COLOR_ELEM_t g, COLOR_ELEM_t b, bool bOpaque) noexcept
 

Public Attributes

COLOR555_t m_color
 

Static Public Attributes

static const COLOR555_t k_ALPHA_MASK = 0x8000
 

Detailed Description

16 bit pixel 555 source.

Constructor & Destructor Documentation

◆ cColor555() [1/2]

GrayLib::cColor555::cColor555 ( COLOR555_t  c = 0)
inlinenoexcept

◆ cColor555() [2/2]

GrayLib::cColor555::cColor555 ( COLOR_ELEM_t  _r,
COLOR_ELEM_t  _g,
COLOR_ELEM_t  _b,
bool  bOpaque = true 
)
inlinenoexcept

Member Function Documentation

◆ get_A()

COLOR_ELEM_t GrayLib::cColor555::get_A ( ) const
inlinenoexcept

◆ get_B()

COLOR_ELEM_t GrayLib::cColor555::get_B ( ) const
inlinenoexcept

◆ get_ColorDX()

D3DCOLOR GrayLib::cColor555::get_ColorDX ( ) const
inlinenoexcept

get color as DirectX D3DCOLOR = RGB (hi to lo value bits)

◆ get_ColorRef()

COLORREF GrayLib::cColor555::get_ColorRef ( ) const
inlinenoexcept

get color as GDI COLORREF = BGR (hi to lo value bits)

◆ get_G()

COLOR_ELEM_t GrayLib::cColor555::get_G ( ) const
inlinenoexcept

◆ get_R()

COLOR_ELEM_t GrayLib::cColor555::get_R ( ) const
inlinenoexcept

◆ Make()

static COLOR555_t GrayLib::cColor555::Make ( COLOR_ELEM_t  r,
COLOR_ELEM_t  g,
COLOR_ELEM_t  b,
bool  bOpaque 
)
inlinestaticnoexcept

◆ operator COLOR555_t()

GrayLib::cColor555::operator COLOR555_t ( ) const
inlinenoexcept

◆ put_ColorRef()

void GrayLib::cColor555::put_ColorRef ( COLORREF  cVal)
inlinenoexcept

Member Data Documentation

◆ k_ALPHA_MASK

const COLOR555_t GrayLib::cColor555::k_ALPHA_MASK = 0x8000
static

◆ m_color

COLOR555_t GrayLib::cColor555::m_color

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