Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Layout/Margin.h |
Include |
#include "Layout/Margin.h" |
struct FMargin
Describes the space around a Widget.
Name | Description | ||
---|---|---|---|
|
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. |
Name | Description | |
---|---|---|
|
FMargin() |
Default constructor. The default margin size is zero on all four sides.. |
|
FMargin ( |
Construct a Margin with uniform space on all sides |
|
FMargin ( |
Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing |
|
FMargin ( |
Construct a Margin where the margins are coming from a FVector4 |
|
FMargin ( |
Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing |
|
FMargin ( |
Construct a Margin where the spacing on each side is individually specified. |
Name | Description | ||
---|---|---|---|
|
GetDesiredSize() |
Gets the margin's total size. |
|
|
GetTopLeft() |
Gets the offset for the top left. |
|
|
float |
GetTotalSpaceAlong() |
Gets the total horizontal or vertical margin. |
|
float |
GetTotalSpaceAlong() |
|
|
float |
GetTotalSpaceAlong() |
Name | Description | ||
---|---|---|---|
|
operator- ( |
Subtracts another margin from this margin. |
|
|
operator!= ( |
Compares this margin with another for inequality. |
|
|
operator* ( |
Multiply the margin by a scalar. |
|
|
operator* ( |
Multiply the margin by another margin functioning as the scale. |
|
|
operator+ ( |
Adds another margin to this margin. |
|
|
operator== ( |
Compares this margin with another for equality. |