SimpleWindow
载入中...
搜索中...
未找到
sw::Color结构体 参考

颜色 更多...

#include <Color.h>

Public 成员函数

 Color ()
 构造一个rgb分量均为0的Color结构体
 
 Color (uint8_t r, uint8_t g, uint8_t b)
 通过rgb构造Color结构体
 
 Color (KnownColor knownColor)
 通过KnownColor构造Color结构体
 
 Color (COLORREF color)
 通过COLORREF构造Color结构体
 
 operator COLORREF () const
 隐式转换COLORREF
 
bool operator== (const Color &other) const
 判断两个Color是否相等
 
bool operator!= (const Color &other) const
 判断两个Color是否不相等
 

Public 属性

uint8_t r
 R分量
 
uint8_t g
 G分量
 
uint8_t b
 B分量
 
uint8_t _reserved {0}
 保留字段
 

友元

std::wostream & operator<< (std::wostream &wos, const Color &color)
 支持Utils::BuildStr
 

详细描述

颜色


该结构体的文档由以下文件生成: