CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::GBrush类 参考

颜色画笔 更多...

Public 成员函数

 GBrush ()
 
 ~GBrush ()
 
 GBrush (const GBrush &other)
 
const GBrushoperator= (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
 
GBrushGradientm_gra
 

详细描述

颜色画笔

构造及析构函数说明

◆ GBrush() [1/2]

BUI::GBrush::GBrush ( )

◆ ~GBrush()

BUI::GBrush::~GBrush ( )

◆ GBrush() [2/2]

BUI::GBrush::GBrush ( const GBrush other)

成员函数说明

◆ DrawEllipse()

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: 透明度

◆ DrawPath()

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: 透明度

◆ DrawRect()

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: 透明度

◆ FillEllipse()

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: 透明度

◆ FillPath()

void BUI::GBrush::FillPath ( ISurface surface,
const RECT rc_gra,
const PathTransInfo pathInfo,
float  alpha = 1.0 
)

填充路径

参数
surface: 绘图引擎
rc_gra: 渐变矩形区域
pathInfo: 目标路径。其中包含路径偏移(x,y),集合路径顶点和路径类型
alpha: 透明度

◆ FillRect()

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: 透明度

◆ operator=()

const GBrush & BUI::GBrush::operator= ( const GBrush other)

◆ ShellAttribute()

void BUI::GBrush::ShellAttribute ( const TCHAR szText)

通过szText文本初始化。

◆ Value()

GColor BUI::GBrush::Value ( float  alpha = 1.0) const

类成员变量说明

◆ m_color

GColor BUI::GBrush::m_color

◆ m_gra

GBrushGradient* BUI::GBrush::m_gra
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有