YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
platform::Color类 参考

颜色。 更多...

#include <Video.h>

platform::Color 的协作图:

Public 类型

using ColorSet = ColorSpace::ColorSet
 

Public 成员函数

yconstfn Color () ynothrow
 无参数构造:所有分量为 0 的默认颜色。 更多...
 
yconstfn Color (PixelType px) ynothrow
 构造:使用本机颜色对象。 更多...
 
yconstfn Color (ColorSet cs) ynothrow
 构造:使用默认颜色。 更多...
 
yconstfn Color (MonoType r_, MonoType g_, MonoType b_, AlphaType a_=0xFF) ynothrow
 构造:使用 RGB 值和 alpha 位。 更多...
 
template<typename _tScalar >
yconstfn Color (_tScalar r_, _tScalar g_, _tScalar b_, AlphaType a_=0xFF) ynothrow
 构造:使用相同类型转换为单色的 RGB 值和 alpha位。 更多...
 
yconstfn operator PixelType () const ynothrow
 转换:本机颜色对象。 更多...
 
yconstfn DefGetter (const ynothrow, MonoType, A, a) yconstfn DefGetter(const ynothrow
 取 alpha 分量。 更多...
 
yconstfn b yconstfn DefGetter (const ynothrow, MonoType, G, g) yconstfn DefGetter(const ynothrow
 取绿色分量。 更多...
 

Public 属性

yconstfn MonoType
 
yconstfn B
 
yconstfn b yconstfn MonoType
 
yconstfn b yconstfn R
 

Private 属性

MonoType r
 RGB 分量。 更多...
 
MonoType g
 
MonoType b
 
AlphaType a
 Alpha 分量。 更多...
 

详细描述

颜色。

在文件 Video.h339 行定义.

成员类型定义说明

在文件 Video.h342 行定义.

构造及析构函数说明

yconstfn platform::Color::Color ( )
inline

无参数构造:所有分量为 0 的默认颜色。

自从
build 319

在文件 Video.h362 行定义.

yconstfn platform::Color::Color ( PixelType  px)
inline

构造:使用本机颜色对象。

自从
build 319

在文件 Video.h370 行定义.

yconstfn platform::Color::Color ( ColorSet  cs)
inline

构造:使用默认颜色。

自从
build 319

在文件 Video.h383 行定义.

yconstfn platform::Color::Color ( MonoType  r_,
MonoType  g_,
MonoType  b_,
AlphaType  a_ = 0xFF 
)
inline

构造:使用 RGB 值和 alpha 位。

自从
build 319

在文件 Video.h396 行定义.

template<typename _tScalar >
yconstfn platform::Color::Color ( _tScalar  r_,
_tScalar  g_,
_tScalar  b_,
AlphaType  a_ = 0xFF 
)
inline

构造:使用相同类型转换为单色的 RGB 值和 alpha位。

注解
避免列表初始化时 narrowing 转换。
自从
build 360

在文件 Video.h406 行定义.

成员函数说明

yconstfn platform::Color::DefGetter ( const ynothrow  ,
MonoType  ,
A  ,
a   
) const

取 alpha 分量。

自从
build 319

取蓝色分量。

自从
build 319
yconstfn b yconstfn platform::Color::DefGetter ( const ynothrow  ,
MonoType  ,
G  ,
g   
) const

取绿色分量。

自从
build 319

取红色分量。

自从
build 319
yconstfn platform::Color::operator PixelType ( ) const
inline

转换:本机颜色对象。

自从
build 319

在文件 Video.h415 行定义.

参考 YSLib::Drawing::g , 以及 YSLib::Drawing::r.

类成员变量说明

AlphaType platform::Color::a
private

Alpha 分量。

自从
build 276

在文件 Video.h354 行定义.

MonoType platform::Color::b
private

在文件 Video.h349 行定义.

yconstfn platform::Color::B

在文件 Video.h433 行定义.

MonoType platform::Color::g
private

在文件 Video.h349 行定义.

yconstfn platform::Color::MonoType

在文件 Video.h433 行定义.

yconstfn b yconstfn platform::Color::MonoType

在文件 Video.h443 行定义.

MonoType platform::Color::r
private

RGB 分量。

自从
build 276

在文件 Video.h349 行定义.

yconstfn b yconstfn platform::Color::R

在文件 Video.h443 行定义.


该类的文档由以下文件生成: