TpHollowMask 类
V0.2.1TpUtils
2025-11-14
介绍
绘制镂空遮罩
基础信息
| 头文件: | include <TpPainter.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | |
| 派生类: |
Public 类型
struct TpHollowMask::CircleHollow
| 类型 | 名称 | 描述 |
|---|---|---|
| int32_t | x | |
| int32_t | y | |
| uint32_t | radius |
struct TpHollowMask::PieHollow
| 类型 | 名称 | 描述 |
|---|---|---|
| int32_t | x | |
| int32_t | y | |
| int32_t | start | |
| int32_t | end | |
| uint32_t | radius |
struct TpHollowMask::PolygonHollow
| 类型 | 名称 | 描述 |
|---|---|---|
| TpVector<TpPoint> | posintList |
struct TpHollowMask::RectHollow
| 类型 | 名称 | 描述 |
|---|---|---|
| TpRect | region | |
| uint32_t | round |
Public 成员函数
| TpHollowMask() | ||
|---|---|---|
| ~TpHollowMask() | ||
| addRectHollow(const TpRect ®ion, const uint32_t &round=0) | 添加矩形镂空 | |
| addRectHollow(const RectHollow &data) | 添加矩形镂空 | |
| TpVector< RectHollow > | rectHollowList() const | 获取矩形镂空列表 |
| addCircleHollow(const int32_t &x, const int32_t &y, const uint32_t &radius) | 添加圆形镂空 | |
| addCircleHollow(const CircleHollow &data) | 添加圆形镂空 | |
| TpVector< CircleHollow > | circleHollowList() const | 获取圆形镂空列表 |
| addPieHollow(const int32_t &x, const int32_t &y, const uint32_t &radius, const int32_t &start, const int32_t &end) | 添加扇形镂空 | |
| addPieHollow(const PieHollow &data) | 添加扇形镂空 | |
| TpVector< PieHollow > | pieHollowList() const | 获取扇形镂空列表 |
| addPolygonHollow(const PolygonHollow &polygon) | 添加多边形镂空 | |
| TpVector< PolygonHollow > | polygonHollowList() const | 获取多边形镂空列表 |
成员函数说明
TpHollowMask::TpHollowMask()
暂无注释...
TpHollowMask::~TpHollowMask()
暂无注释...
void TpHollowMask::addRectHollow(const TpRect ®ion, const uint32_t &round=0)
添加矩形镂空...
添加矩形镂空
参数:region: 矩形区域
参数:round: 圆角值
void TpHollowMask::addRectHollow(const RectHollow &data)
添加矩形镂空...
添加矩形镂空
参数:data: 矩形镂空参数
TpVector< RectHollow > TpHollowMask::rectHollowList() const
获取矩形镂空列表...
获取矩形镂空列表
返回值:矩形镂空列表
void TpHollowMask::addCircleHollow(const int32_t &x, const int32_t &y, const uint32_t &radius)
添加圆形镂空...
添加圆形镂空
参数:x: 圆心X坐标
参数:y: 圆心Y坐标
参数:radius: 半径
void TpHollowMask::addCircleHollow(const CircleHollow &data)
添加圆形镂空...
添加圆形镂空
参数:data: 圆形镂空参数
TpVector< CircleHollow > TpHollowMask::circleHollowList() const
获取圆形镂空列表...
获取圆形镂空列表
返回值:圆形镂空列表
void TpHollowMask::addPieHollow(const int32_t &x, const int32_t &y, const uint32_t &radius, const int32_t &start, const int32_t &end)
添加扇形镂空...
添加扇形镂空
参数:x: 圆心X坐标
参数:y: 圆心Y坐标
参数:radius: 半径
参数:start: 起始角度0 -360
参数:end: 终止角度
void TpHollowMask::addPieHollow(const PieHollow &data)
添加扇形镂空...
添加扇形镂空
参数:data: 扇形镂空参数
TpVector< PieHollow > TpHollowMask::pieHollowList() const
获取扇形镂空列表...
获取扇形镂空列表
返回值:扇形镂空列表
void TpHollowMask::addPolygonHollow(const PolygonHollow &polygon)
添加多边形镂空...
添加多边形镂空
参数:polygon: 多边形镂空信息
TpVector< PolygonHollow > TpHollowMask::polygonHollowList() const
获取多边形镂空列表...
获取多边形镂空列表
返回值:多边形镂空列表
