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

包含多种状态(常规,鼠标悬停,鼠标按下,禁用)的图标 更多...

类 BUI::GImageIconInfo 继承关系图:

Public 成员函数

 GImageIconInfo ()
virtual ~GImageIconInfo ()
virtual BOOL IsEmpty ()=0
 判断是否为空
virtual void ExtentSize (SIZE &sz, UINT paint_status, BOOL is_pixel_format=FALSE)=0
 获得图像在状态(paint_status)下的尺寸
virtual void ShellImageAttribute (const BeString &str_name, const BeString &str_value)=0
 通过文本设置属性
virtual void DoPaintImageEffect (ISurface *surface, UINT paint_status, int x, int y, GPathStorage *path, PathConvType conv, Transform2d *img_mtx, GrayConv gray_type, UINT effect_type, float *param, int param_len)=0
 绘制位图到路径区域,带有滤镜效果
virtual void DoPaintImage (ISurface *surface, UINT paint_status, int x, int y, GPathStorage *path, PathConvType conv, Transform2d *img_mtx=NULL, GrayConv gray_type=GrayNone)=0
 绘制位图到路径区域
virtual void DoPaintImageRect (ISurface *surface, UINT paint_status, const RECT &rect, double scale_x=1.0, double scale_y=1.0)=0
 绘制位图到矩形区域
virtual void DoPaintImageTextureRatioStyle (ISurface *surface, UINT paint_status, const RECT &rc_box, ImageRatioStyle ratio_type=none_style, double angle=0, double scale=1.0)=0
 绘制位图到矩形区域
virtual void DoPaintImageTextureEllipse (ISurface *surface, UINT paint_status, int x, int y, int rx, int ry, double angle=0, double scalex=1.0)=0
 绘制位图到椭圆区域

详细描述

包含多种状态(常规,鼠标悬停,鼠标按下,禁用)的图标

构造及析构函数说明

◆ GImageIconInfo()

BUI::GImageIconInfo::GImageIconInfo ( )

◆ ~GImageIconInfo()

virtual BUI::GImageIconInfo::~GImageIconInfo ( )
virtual

成员函数说明

◆ DoPaintImage()

virtual void BUI::GImageIconInfo::DoPaintImage ( ISurface * surface,
UINT paint_status,
int x,
int y,
GPathStorage * path,
PathConvType conv,
Transform2d * img_mtx = NULL,
GrayConv gray_type = GrayNone )
pure virtual

绘制位图到路径区域

参数
surface:绘图引擎
paint_status:状态值。参考枚举ShowStatus
x: 目标位置X偏移
y: 目标位置Y偏移
path目标路径。比如矩形,椭圆,以及其他不规则闭合路径
conv路径转换类型。线条,曲线,贝塞尔等
img_mtx变换矩阵
gray_type灰度类型

BUI::GImageIconMulti , 以及 BUI::GImageIconSingle 内被实现.

◆ DoPaintImageEffect()

virtual void BUI::GImageIconInfo::DoPaintImageEffect ( ISurface * surface,
UINT paint_status,
int x,
int y,
GPathStorage * path,
PathConvType conv,
Transform2d * img_mtx,
GrayConv gray_type,
UINT effect_type,
float * param,
int param_len )
pure virtual

绘制位图到路径区域,带有滤镜效果

参数
surface:绘图引擎
paint_status:状态值。参考枚举ShowStatus
x: 目标位置X偏移
y: 目标位置Y偏移
path目标路径。比如矩形,椭圆,以及其他不规则闭合路径
conv路径转换类型。线条,曲线,贝塞尔等
img_mtx变换矩阵
gray_type灰度类型

BUI::GImageIconMulti , 以及 BUI::GImageIconSingle 内被实现.

◆ DoPaintImageRect()

virtual void BUI::GImageIconInfo::DoPaintImageRect ( ISurface * surface,
UINT paint_status,
const RECT & rect,
double scale_x = 1.0,
double scale_y = 1.0 )
pure virtual

绘制位图到矩形区域

参数
surface:绘图引擎
paint_status:状态值。参考枚举ShowStatus
rect:目标矩形区域
scale_x: X方向缩放比例
scale_y: Y方向缩放比例

BUI::GImageIconMulti , 以及 BUI::GImageIconSingle 内被实现.

◆ DoPaintImageTextureEllipse()

virtual void BUI::GImageIconInfo::DoPaintImageTextureEllipse ( ISurface * surface,
UINT paint_status,
int x,
int y,
int rx,
int ry,
double angle = 0,
double scalex = 1.0 )
pure virtual

绘制位图到椭圆区域

参数
surface: 绘图引擎
paint_status: 状态值。参考枚举ShowStatus
x: 椭圆中心X
y: 椭圆中心Y
rx: 椭圆水平半径
ry: 椭圆垂直半径
angle: 旋转弧度
scalex: x和y等比缩放值

BUI::GImageIconMulti , 以及 BUI::GImageIconSingle 内被实现.

◆ DoPaintImageTextureRatioStyle()

virtual void BUI::GImageIconInfo::DoPaintImageTextureRatioStyle ( ISurface * surface,
UINT paint_status,
const RECT & rc_box,
ImageRatioStyle ratio_type = none_style,
double angle = 0,
double scale = 1.0 )
pure virtual

绘制位图到矩形区域

参数
surface: 绘图引擎
paint_status:状态值。参考枚举ShowStatus
rc_box:目标矩形区域
ratio_type: 缩放模式
angle: 旋转弧度
scale: x和y等比缩放值

BUI::GImageIconMulti , 以及 BUI::GImageIconSingle 内被实现.

◆ ExtentSize()

virtual void BUI::GImageIconInfo::ExtentSize ( SIZE & sz,
UINT paint_status,
BOOL is_pixel_format = FALSE )
pure virtual

获得图像在状态(paint_status)下的尺寸

参数
sz: 引用类型,用于接收返回尺寸
paint_status: 状态值。参考枚举ShowStatus
is_pixel_format: 若isPixelFormat=FALSE,表示会自动适应系统缩放

BUI::GImageIconMulti , 以及 BUI::GImageIconSingle 内被实现.

◆ IsEmpty()

virtual BOOL BUI::GImageIconInfo::IsEmpty ( )
pure virtual

判断是否为空

返回
BOOL: 若返回TRUE,表示无效对象;若返回FALSE,表示有效

BUI::GImageIconMulti , 以及 BUI::GImageIconSingle 内被实现.

◆ ShellImageAttribute()

virtual void BUI::GImageIconInfo::ShellImageAttribute ( const BeString & str_name,
const BeString & str_value )
pure virtual

通过文本设置属性

参数
str_name:键
str_value:键值

BUI::GImageIconMulti , 以及 BUI::GImageIconSingle 内被实现.

鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有