CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
颜色画笔 更多...
Public 成员函数 | |
GBrush () | |
~GBrush () | |
GBrush (const GBrush &other) | |
const GBrush & | operator= (const GBrush &other) |
void | ShellAttribute (const TCHAR *szText) |
通过szText文本初始化。 | |
GColor | Value (float alpha=1.0) const |
void | FillRect (ISurface *surface, const RECT &rc_gra, const RECT &rc, RoundRectRadius *radius, float alpha=1.0) |
填充矩形或圆角矩形 | |
void | DrawRect (ISurface *surface, const RECT &rc_gra, const RECT &rc, RoundRectRadius *radius, float size=1.0, LineStyle *style=NULL, float alpha=1.0) |
绘制矩形或圆角矩形的轮廓 | |
void | FillEllipse (ISurface *surface, const RECT &rc_gra, int x, int y, int rx, int ry, float alpha=1.0) |
填充椭圆 | |
void | DrawEllipse (ISurface *surface, const RECT &rc_gra, int x, int y, int rx, int ry, float size=1.0, LineStyle *style=NULL, float alpha=1.0) |
绘制椭圆的轮廓 | |
void | FillPath (ISurface *surface, const RECT &rc_gra, const PathTransInfo &pathInfo, float alpha=1.0) |
填充路径 | |
void | DrawPath (ISurface *surface, const RECT &rc_gra, const PathTransInfo &pathInfo, float size=1.0, LineStyle *style=NULL, float alpha=1.0) |
绘制路径的轮廓 | |
Public 属性 | |
GColor | m_color |
GBrushGradient * | m_gra |
颜色画笔
BUI::GBrush::GBrush | ( | ) |
BUI::GBrush::~GBrush | ( | ) |
BUI::GBrush::GBrush | ( | const GBrush & | other | ) |
void BUI::GBrush::DrawEllipse | ( | ISurface * | surface, |
const RECT & | rc_gra, | ||
int | x, | ||
int | y, | ||
int | rx, | ||
int | ry, | ||
float | size = 1.0 , |
||
LineStyle * | style = NULL , |
||
float | alpha = 1.0 |
||
) |
绘制椭圆的轮廓
surface | : 绘图引擎 |
rc_gra | : 渐变矩形区域 |
x | : 椭圆中心x |
y | : 椭圆中心y |
rx | : 椭圆水平半径 |
ry | : 椭圆垂直半径 |
size | : 线条宽度 |
style | : 线条风格。即实线,虚线,圆角等 |
alpha | : 透明度 |
void BUI::GBrush::DrawPath | ( | ISurface * | surface, |
const RECT & | rc_gra, | ||
const PathTransInfo & | pathInfo, | ||
float | size = 1.0 , |
||
LineStyle * | style = NULL , |
||
float | alpha = 1.0 |
||
) |
绘制路径的轮廓
surface | : 绘图引擎 |
rc_gra | : 渐变矩形区域 |
pathInfo | : 目标路径。其中包含路径偏移(x,y),集合路径顶点和路径类型 |
size | : 线条宽度 |
style | : 线条风格。即实线,虚线,圆角等 |
alpha | : 透明度 |
void BUI::GBrush::DrawRect | ( | ISurface * | surface, |
const RECT & | rc_gra, | ||
const RECT & | rc, | ||
RoundRectRadius * | radius, | ||
float | size = 1.0 , |
||
LineStyle * | style = NULL , |
||
float | alpha = 1.0 |
||
) |
绘制矩形或圆角矩形的轮廓
surface | : 绘图引擎 |
rc_gra | : 渐变矩形区域 |
rc | : 目标绘制矩形 |
radius | : 圆角尺寸 |
size | : 线条宽度 |
style | : 线条风格。即实线,虚线,圆角等 |
alpha | : 透明度 |
void BUI::GBrush::FillEllipse | ( | ISurface * | surface, |
const RECT & | rc_gra, | ||
int | x, | ||
int | y, | ||
int | rx, | ||
int | ry, | ||
float | alpha = 1.0 |
||
) |
填充椭圆
surface | : 绘图引擎 |
rc_gra | : 渐变矩形区域 |
x | : 椭圆中心x |
y | : 椭圆中心y |
rx | : 椭圆水平半径 |
ry | : 椭圆垂直半径 |
alpha | : 透明度 |
void BUI::GBrush::FillPath | ( | ISurface * | surface, |
const RECT & | rc_gra, | ||
const PathTransInfo & | pathInfo, | ||
float | alpha = 1.0 |
||
) |
填充路径
surface | : 绘图引擎 |
rc_gra | : 渐变矩形区域 |
pathInfo | : 目标路径。其中包含路径偏移(x,y),集合路径顶点和路径类型 |
alpha | : 透明度 |
void BUI::GBrush::FillRect | ( | ISurface * | surface, |
const RECT & | rc_gra, | ||
const RECT & | rc, | ||
RoundRectRadius * | radius, | ||
float | alpha = 1.0 |
||
) |
填充矩形或圆角矩形
surface | : 绘图引擎 |
rc_gra | : 渐变矩形区域 |
rc | : 目标绘制矩形 |
radius | : 圆角尺寸 |
alpha | : 透明度 |
void BUI::GBrush::ShellAttribute | ( | const TCHAR * | szText | ) |
通过szText文本初始化。
GColor BUI::GBrush::Value | ( | float | alpha = 1.0 | ) | const |
GColor BUI::GBrush::m_color |
GBrushGradient* BUI::GBrush::m_gra |