engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FMargin结构体 参考

Describes the space around a Widget. 更多...

#include <Margin.h>

Public 成员函数

 FMargin ()
 Default constructor. 更多...
 
 FMargin (const FVector2D &InVector)
 Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing
 
 FMargin (const FVector4 &InVector)
 Construct a Margin where the margins are coming from a FVector4
 
 FMargin (float Horizontal, float Vertical)
 Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing
 
 FMargin (float InLeft, float InTop, float InRight, float InBottom)
 Construct a Margin where the spacing on each side is individually specified.
 
 FMargin (float UniformMargin)
 Construct a Margin with uniform space on all sides
 
FVector2D GetDesiredSize () const
 Gets the margin's total size. 更多...
 
FVector2D GetTopLeft () const
 Gets the offset for the top left. 更多...
 
template<EOrientation Orientation>
float GetTotalSpaceAlong () const
 Gets the total horizontal or vertical margin. 更多...
 
bool operator!= (const FMargin &Other) const
 Compares this margin with another for inequality. 更多...
 
FMargin operator* (const FMargin &InScale) const
 Multiply the margin by another margin functioning as the scale. 更多...
 
FMargin operator* (float Scale) const
 Multiply the margin by a scalar. 更多...
 
FMargin operator+ (const FMargin &InDelta) const
 Adds another margin to this margin. 更多...
 
FMargin operator- (const FMargin &Other) const
 Subtracts another margin from this margin. 更多...
 
bool operator== (const FMargin &Other) const
 Compares this margin with another for equality. 更多...
 

Public 属性

float Bottom
 Holds the margin to the bottom.
 
float Left
 Holds the margin to the left.
 
float Right
 Holds the margin to the right.
 
float Top
 Holds the margin to the top.
 

详细描述

Describes the space around a Widget.

构造及析构函数说明

◆ FMargin()

FMargin::FMargin ( )
inline

Default constructor.

The default margin size is zero on all four sides..

成员函数说明

◆ GetDesiredSize()

FVector2D FMargin::GetDesiredSize ( ) const
inline

Gets the margin's total size.

返回
Cumulative margin size.

◆ GetTopLeft()

FVector2D FMargin::GetTopLeft ( ) const
inline

Gets the offset for the top left.

返回
The top left offset.

◆ GetTotalSpaceAlong()

template<EOrientation Orientation>
float FMargin::GetTotalSpaceAlong ( ) const
inline

Gets the total horizontal or vertical margin.

返回
Cumulative horizontal margin.

◆ operator!=()

bool FMargin::operator!= ( const FMargin &  Other) const
inline

Compares this margin with another for inequality.

参数
OtherThe other margin.
返回
true if the two margins are not equal, false otherwise.

◆ operator*() [1/2]

FMargin FMargin::operator* ( const FMargin &  InScale) const
inline

Multiply the margin by another margin functioning as the scale.

参数
InScaleHow much to scale the margin.
返回
An FMargin where each value is scaled by Scale.

◆ operator*() [2/2]

FMargin FMargin::operator* ( float  Scale) const
inline

Multiply the margin by a scalar.

参数
ScaleHow much to scale the margin.
返回
An FMargin where each value is scaled by Scale.

◆ operator+()

FMargin FMargin::operator+ ( const FMargin &  InDelta) const
inline

Adds another margin to this margin.

参数
OtherThe margin to add.
返回
A margin that represents this margin plus the other margin.

◆ operator-()

FMargin FMargin::operator- ( const FMargin &  Other) const
inline

Subtracts another margin from this margin.

参数
OtherThe margin to subtract.
返回
A margin that represents this margin minues the other margin.

◆ operator==()

bool FMargin::operator== ( const FMargin &  Other) const
inline

Compares this margin with another for equality.

参数
OtherThe other margin.
返回
true if the two margins are equal, false otherwise.

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