YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::Drawing::Padding结构体 参考

空白样式。 更多...

#include <ygdi.h>

YSLib::Drawing::Padding 的协作图:

Public 成员函数

yconstfn Padding ()
 默认构造:使用零边距。 更多...
 
yconstfn Padding (SPos l, SPos r, SPos t, SPos b)
 构造:使用 4 个边距。 更多...
 
Paddingoperator+= (const Padding &m)
 加法赋值:对应分量调用 operator+= 。 更多...
 

Public 属性

SPos Left
 
SPos Right
 
SPos Top
 
SPos Bottom
 

相关函数

(请注意: 这些不是成员函数.)

SDst GetHorizontalOf (const Padding &m)
 取水平边距和。 更多...
 
yconstfn Padding operator+ (const Padding &x, const Padding &y)
 加法:对应分量调用 operator+ 。 更多...
 
YF_API Rect operator+ (const Rect &, const Padding &)
 加法:缩小屏幕标准矩形,相对位置由指定边距决定。 更多...
 

详细描述

空白样式。

警告
非虚析构。

在文件 ygdi.h46 行定义.

构造及析构函数说明

yconstfn YSLib::Drawing::Padding::Padding ( )
inline

默认构造:使用零边距。

自从
build 365

在文件 ygdi.h59 行定义.

yconstfn YSLib::Drawing::Padding::Padding ( SPos  l,
SPos  r,
SPos  t,
SPos  b 
)
inline

构造:使用 4 个边距。

自从
build 365

在文件 ygdi.h67 行定义.

参考 YSLib::UI::Left , 以及 YSLib::UI::Right.

成员函数说明

Padding& YSLib::Drawing::Padding::operator+= ( const Padding m)
inline

加法赋值:对应分量调用 operator+= 。

在文件 ygdi.h75 行定义.

参考 Bottom, Left, YSLib::UI::Left, Right, YSLib::UI::Right, Top , 以及 yunseq.

友元及相关函数文档

SDst GetHorizontalOf ( const Padding m)
related

取水平边距和。

在文件 ygdi.h107 行定义.

参考 Left , 以及 Right.

yconstfn Padding operator+ ( const Padding x,
const Padding y 
)
related

加法:对应分量调用 operator+ 。

在文件 ygdi.h89 行定义.

参考 Bottom, Left, Right , 以及 Top.

YF_API Rect operator+ ( const Rect ,
const Padding  
)
related

加法:缩小屏幕标准矩形,相对位置由指定边距决定。

注解
若边距过大,则矩形的宽或高可能为 0 。

在文件 ygdi.cpp42 行定义.

类成员变量说明


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