表格线识别通用库文档
载入中...
搜索中...
未找到
cm::Rect::Margin结构体 参考

矩形外边距结构体 更多...

#include <rect.hpp>

Public 成员函数

 Margin (int top, int right, int bottom, int left)
 矩形外边距结构体的带参构造函数
 
 Margin (int top, int left_and_right, int bottom)
 矩形外边距结构体的带参构造函数
 
 Margin (int top_and_bottom, int left_and_right)
 矩形外边距结构体的带参构造函数
 
 Margin (int margin)
 矩形外边距结构体的带参构造函数
 

Public 属性

int top
 上边距
 
int right
 右边距
 
int bottom
 下边距
 
int left
 左边距
 

详细描述

矩形外边距结构体

该结构体用于表示矩形的上、右、下、左四个方向的外边距值。通过设置不同的外边距值,可以控制矩形内容与矩形边界之间的间距。

注解
该结构体提供了多个构造函数重载,可根据需求设置外边距值,同时支持负数外边距。
作者
dreamy-xay
日期
2024-01-09

在文件 rect.hpp72 行定义.

构造及析构函数说明

◆ Margin() [1/4]

cm::Rect::Margin::Margin ( int top,
int right,
int bottom,
int left )
inlineexplicit

矩形外边距结构体的带参构造函数

该构造函数用于初始化矩形外边距结构体的上、右、下、左四个方向的外边距值。

参数
top上边距的数值
right右边距的数值
bottom下边距的数值
left左边距的数值
作者
dreamy-xay
日期
2024-01-04

在文件 rect.hpp156 行定义.

◆ Margin() [2/4]

cm::Rect::Margin::Margin ( int top,
int left_and_right,
int bottom )
inlineexplicit

矩形外边距结构体的带参构造函数

该构造函数用于初始化矩形外边距结构体的上、左右、下三个方向的外边距值。

参数
top上边距的数值
left_and_right左右边距合并的数值,用于同时设置左边距和右边距
bottom下边距的数值
作者
dreamy-xay
日期
2024-01-04

在文件 rect.hpp169 行定义.

◆ Margin() [3/4]

cm::Rect::Margin::Margin ( int top_and_bottom,
int left_and_right )
inlineexplicit

矩形外边距结构体的带参构造函数

该构造函数用于初始化矩形外边距结构体的上下和左右两个方向的外边距值。

参数
top_and_bottom上下边距合并的数值,用于同时设置上边距和下边距
left_and_right左右边距合并的数值,用于同时设置左边距和右边距
作者
dreamy-xay
日期
2024-01-04

在文件 rect.hpp181 行定义.

◆ Margin() [4/4]

cm::Rect::Margin::Margin ( int margin)
inline

矩形外边距结构体的带参构造函数

该构造函数用于根据上下边界和相同的左右边界拓展值来创建边界结构体对象。指定的外边距值将分别应用于 top、right、bottom、left 四个方向的外边距。

参数
margin矩形框四个方向上的外边距
作者
dreamy-xay
日期
2024-01-04

在文件 rect.hpp192 行定义.

类成员变量说明

◆ bottom

int cm::Rect::Margin::bottom

下边距

在文件 rect.hpp78 行定义.

◆ left

int cm::Rect::Margin::left

左边距

在文件 rect.hpp80 行定义.

◆ right

int cm::Rect::Margin::right

右边距

在文件 rect.hpp76 行定义.

◆ top

int cm::Rect::Margin::top

上边距

在文件 rect.hpp74 行定义.


该结构体的文档由以下文件生成: