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

Public 成员函数

 GShadowContain ()
 ~GShadowContain ()
int AddShadow (int dx, int dy, int blur_x, int blur_y, int spread_x, int spread_y, GColor color, bool is_inset=false, bool use_color=true)
 添加阴影
void UpdateShadow (int pos, int dx, int dy, int blur_x, int blur_y, int spread_x, int spread_y, GColor color, bool is_inset=false, bool use_color=true)
 更新阴影
void RemoveShadow (int pos)
 删除阴影
void ClearShadow ()
 清空阴影
void CloneFrom (GShadowContain *other)
 克隆
void DrawShadow (ISurface *surface, const PathTransInfo &path_info, bool is_inset, float alpha)
 绘制阴影
BOOL IsShadowFlag (BOOL is_inset) const
 是否包含inset模式的阴影
int Count () const
 阴影数量
ShadowInfoGetShadows (int len)
 获取阴影
void ShowShadow (BOOL is_show)
 设置可见性
RECT GetShadowRect (const RECT &rc) const
 获得刷新区域

构造及析构函数说明

◆ GShadowContain()

BUI::GShadowContain::GShadowContain ( )

◆ ~GShadowContain()

BUI::GShadowContain::~GShadowContain ( )

成员函数说明

◆ AddShadow()

int BUI::GShadowContain::AddShadow ( int dx,
int dy,
int blur_x,
int blur_y,
int spread_x,
int spread_y,
GColor color,
bool is_inset = false,
bool use_color = true )

添加阴影

参数
dxx偏移
dyy偏移
blur_xx模糊半径
blur_yy模糊半径
spread_xx缩进
spread_yy缩进
color阴影颜色
is_inset若inset=TRUE,标识内阴影。若inset=FALSE,表示外阴影
use_color是否使用color输入的颜色

◆ ClearShadow()

void BUI::GShadowContain::ClearShadow ( )

清空阴影

◆ CloneFrom()

void BUI::GShadowContain::CloneFrom ( GShadowContain * other)

克隆

◆ Count()

int BUI::GShadowContain::Count ( ) const

阴影数量

◆ DrawShadow()

void BUI::GShadowContain::DrawShadow ( ISurface * surface,
const PathTransInfo & path_info,
bool is_inset,
float alpha )

绘制阴影

参数
surface: 绘图引擎
path_info: 阴影路径信息
is_inset: 仅绘制容器内inset模式下的阴影
alpha: 透明度。取值为归一化的(0,1)

◆ GetShadowRect()

RECT BUI::GShadowContain::GetShadowRect ( const RECT & rc) const

获得刷新区域

◆ GetShadows()

ShadowInfo * BUI::GShadowContain::GetShadows ( int len)

获取阴影

◆ IsShadowFlag()

BOOL BUI::GShadowContain::IsShadowFlag ( BOOL is_inset) const

是否包含inset模式的阴影

◆ RemoveShadow()

void BUI::GShadowContain::RemoveShadow ( int pos)

删除阴影

参数
pos索引序号

◆ ShowShadow()

void BUI::GShadowContain::ShowShadow ( BOOL is_show)

设置可见性

◆ UpdateShadow()

void BUI::GShadowContain::UpdateShadow ( int pos,
int dx,
int dy,
int blur_x,
int blur_y,
int spread_x,
int spread_y,
GColor color,
bool is_inset = false,
bool use_color = true )

更新阴影

参数
pos索引序号
dxx偏移
dyy偏移
blur_xx模糊半径
blur_yy模糊半径
spread_xx缩进
spread_yy缩进
color阴影颜色
is_inset若inset=TRUE,标识内阴影。若inset=FALSE,表示外阴影
use_color是否使用color输入的颜色
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有