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

#include <cColorRef.h>

Public Member Functions

 cColor565 (COLOR565_t c=0) noexcept
 
 cColor565 (COLOR_ELEM_t _r, COLOR_ELEM_t _g, COLOR_ELEM_t _b) noexcept
 
 operator COLOR565_t () const noexcept
 
COLOR_ELEM_t get_R () const noexcept
 
COLOR_ELEM_t get_G () const noexcept
 
COLOR_ELEM_t get_B () const noexcept
 
void put_ColorRef (COLORREF cVal) noexcept
 
COLORREF get_ColorRef () const noexcept
 
D3DCOLOR get_ColorDX () const noexcept
 

Static Public Member Functions

static COLOR565_t Make (COLOR_ELEM_t r, COLOR_ELEM_t g, COLOR_ELEM_t b) noexcept
 

Public Attributes

COLOR565_t m_color
 

Detailed Description

16 bit pixel 565 source.

Constructor & Destructor Documentation

◆ cColor565() [1/2]

GrayLib::cColor565::cColor565 ( COLOR565_t  c = 0)
inlinenoexcept

◆ cColor565() [2/2]

GrayLib::cColor565::cColor565 ( COLOR_ELEM_t  _r,
COLOR_ELEM_t  _g,
COLOR_ELEM_t  _b 
)
inlinenoexcept

Member Function Documentation

◆ get_B()

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

◆ get_ColorDX()

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

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

◆ get_ColorRef()

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

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

◆ get_G()

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

◆ get_R()

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

◆ Make()

static COLOR565_t GrayLib::cColor565::Make ( COLOR_ELEM_t  r,
COLOR_ELEM_t  g,
COLOR_ELEM_t  b 
)
inlinestaticnoexcept

◆ operator COLOR565_t()

GrayLib::cColor565::operator COLOR565_t ( ) const
inlinenoexcept

◆ put_ColorRef()

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

Member Data Documentation

◆ m_color

COLOR565_t GrayLib::cColor565::m_color

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