Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Layout
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Layout/Margin.h |
Include | #include "Layout/Margin.h" |
Syntax
struct FMargin
Remarks
Describes the space around a Widget.
Variables
Type | 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. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FMargin () |
Default constructor.The default margin size is zero on all four sides.. | |
![]() |
FMargin
(
float UniformMargin |
Construct a Margin with uniform space on all sides | |
![]() |
FMargin
(
const FVector2f InVector |
Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing | |
![]() |
FMargin
(
const FVector2d InVector |
Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing | |
![]() |
FMargin
(
const FVector4f InVector |
Construct a Margin where the margins are coming from a FVector4 | |
![]() |
FMargin
(
const FVector4d InVector |
Construct a Margin where the margins are coming from a FVector4 | |
![]() |
FMargin
(
float Horizontal, |
Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing | |
![]() |
FMargin
(
double InLeft, |
Construct a Margin where the spacing on each side is individually specified. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
UE::Slate::FDeprecateVector2DResult | Gets the margin's total size. | |
![]() ![]() |
FVector2f | ||
![]() ![]() |
UE::Slate::FDeprecateVector2DResult | GetTopLeft () |
Gets the offset for the top left. |
![]() ![]() |
FVector2f | GetTopLeft2f () |
|
![]() ![]() |
float | Gets the total horizontal or vertical margin. | |
![]() ![]() |
float | ||
![]() ![]() |
float |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FMargin | Subtracts another margin from this margin. | |
![]() ![]() |
bool | operator!=
(
const FMargin& Other |
Compares this margin with another for inequality. |
![]() ![]() |
FMargin | operator*
(
float Scale |
Multiply the margin by a scalar. |
![]() ![]() |
FMargin | Multiply the margin by another margin functioning as the scale. | |
![]() ![]() |
FMargin | Adds another margin to this margin. | |
![]() ![]() |
bool | operator==
(
const FMargin& Other |
Compares this margin with another for equality. |