DxLibEx
dxle::color::dx_color Class Referencefinal

#include <color.hpp>

Inheritance diagram for dxle::color::dx_color:
Collaboration diagram for dxle::color::dx_color:

Public Member Functions

DXLE_CONSTEXPR dx_color () DXLE_NOEXCEPT_OR_NOTHROW
 
 dx_color (const dx_color &) DXLE_NOEXCEPT=default
 
DXLE_CONSTEXPR dx_color (dx_color &&other) DXLE_NOEXCEPT_OR_NOTHROW
 
 dx_color (int Red, int Green, int Blue)
 
 dx_color (color_tag)
 
 dx_color (const rgb &rgb_color) DXLE_NOEXCEPT_OR_NOTHROW
 
int GetColor2 (int *Red, int *Green, int *Blue) const DXLE_NOEXCEPT_OR_NOTHROW
 カラー値から赤、緑、青の値を取得する More...
 
int GetRGB (int *Red, int *Green, int *Blue) const DXLE_NOEXCEPT_OR_NOTHROW
 カラー値から赤、緑、青の値を取得する More...
 
rgb GetRGB () const DXLE_NOEXCEPT_OR_NOTHROW
 カラー値から赤、緑、青の値を取得する More...
 
int GetColor5 (const DxLib::COLORDATA *ColorData, int *Red, int *Green, int *Blue, int *Alpha=NULL) const DXLE_NOEXCEPT_OR_NOTHROW
 指定のカラーフォーマットのカラー値を赤、緑、青、アルファの値を取得する More...
 
value_type get () const DXLE_NOEXCEPT_OR_NOTHROW
 

Static Public Member Functions

static dx_color MakeDxColor (int Red, int Green, int Blue)
 DrawPixel 等の描画関数で使用するカラー値を取得する More...
 
static dx_color GetColor (int Red, int Green, int Blue)
 DrawPixel 等の描画関数で使用するカラー値を取得する More...
 
static dx_color GetColor3 (const DxLib::COLORDATA *ColorData, int Red, int Green, int Blue, int Alpha=255)
 指定のピクセルフォーマットに対応したカラー値を得る More...
 
static dx_color GetColor4 (const DxLib::COLORDATA *DestColorData, const DxLib::COLORDATA *SrcColorData, const dx_color &SrcColor)
 指定のカラーフォーマットのカラー値を別のカラーフォーマットのカラー値に変換する More...
 

Public Attributes

decltype(DxLib::GetColor(0, 0, 0)) typedef value_type
 

Detailed Description

Definition at line 93 of file color.hpp.

Constructor & Destructor Documentation

§ dx_color() [1/6]

DXLE_CONSTEXPR dxle::color::dx_color::dx_color ( )
inline

Definition at line 98 of file color.hpp.

§ dx_color() [2/6]

dxle::color::dx_color::dx_color ( const dx_color )
default

§ dx_color() [3/6]

DXLE_CONSTEXPR dxle::color::dx_color::dx_color ( dx_color &&  other)
inline

Definition at line 102 of file color.hpp.

§ dx_color() [4/6]

dxle::color::dx_color::dx_color ( int  Red,
int  Green,
int  Blue 
)
inline

Definition at line 105 of file color.hpp.

§ dx_color() [5/6]

dxle::color::dx_color::dx_color ( color_tag  color_tag_)
inline

Definition at line 290 of file color.hpp.

§ dx_color() [6/6]

dxle::color::dx_color::dx_color ( const rgb rgb_color)
inlineexplicit

Definition at line 116 of file color.hpp.

Member Function Documentation

§ get()

value_type dxle::color::dx_color::get ( ) const
inline

Definition at line 140 of file color.hpp.

§ GetColor()

static dx_color dxle::color::dx_color::GetColor ( int  Red,
int  Green,
int  Blue 
)
inlinestatic

DrawPixel 等の描画関数で使用するカラー値を取得する

Definition at line 123 of file color.hpp.

§ GetColor2()

int dxle::color::dx_color::GetColor2 ( int *  Red,
int *  Green,
int *  Blue 
) const
inline

カラー値から赤、緑、青の値を取得する

Definition at line 132 of file color.hpp.

§ GetColor3()

static dx_color dxle::color::dx_color::GetColor3 ( const DxLib::COLORDATA *  ColorData,
int  Red,
int  Green,
int  Blue,
int  Alpha = 255 
)
inlinestatic

指定のピクセルフォーマットに対応したカラー値を得る

Definition at line 125 of file color.hpp.

§ GetColor4()

static dx_color dxle::color::dx_color::GetColor4 ( const DxLib::COLORDATA *  DestColorData,
const DxLib::COLORDATA *  SrcColorData,
const dx_color SrcColor 
)
inlinestatic

指定のカラーフォーマットのカラー値を別のカラーフォーマットのカラー値に変換する

Definition at line 127 of file color.hpp.

§ GetColor5()

int dxle::color::dx_color::GetColor5 ( const DxLib::COLORDATA *  ColorData,
int *  Red,
int *  Green,
int *  Blue,
int *  Alpha = NULL 
) const
inline

指定のカラーフォーマットのカラー値を赤、緑、青、アルファの値を取得する

Definition at line 138 of file color.hpp.

§ GetRGB() [1/2]

int dxle::color::dx_color::GetRGB ( int *  Red,
int *  Green,
int *  Blue 
) const
inline

カラー値から赤、緑、青の値を取得する

Definition at line 134 of file color.hpp.

§ GetRGB() [2/2]

rgb dxle::color::dx_color::GetRGB ( ) const
inline

カラー値から赤、緑、青の値を取得する

Definition at line 294 of file color.hpp.

§ MakeDxColor()

static dx_color dxle::color::dx_color::MakeDxColor ( int  Red,
int  Green,
int  Blue 
)
inlinestatic

DrawPixel 等の描画関数で使用するカラー値を取得する

Definition at line 121 of file color.hpp.

Member Data Documentation

§ value_type

decltype(DxLib::GetColor(0, 0, 0)) typedef dxle::color::dx_color::value_type

Definition at line 96 of file color.hpp.


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