![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Margin.h>
Public Member Functions | |
| FMargin () | |
| FMargin (float UniformMargin) | |
| FMargin (float Horizontal, float Vertical) | |
| FMargin (const FVector2f InVector) | |
| FMargin (const FVector2d InVector) | |
| FMargin (double InLeft, double InTop, double InRight, double InBottom) | |
| FMargin (const FVector4f InVector) | |
| FMargin (const FVector4d InVector) | |
| FMargin | operator* (float Scale) const |
| FMargin | operator* (const FMargin &InScale) const |
| FMargin | operator+ (const FMargin &InDelta) const |
| FMargin | operator- (const FMargin &Other) const |
| bool | operator== (const FMargin &Other) const |
| bool | operator!= (const FMargin &Other) const |
| UE::Slate::FDeprecateVector2DResult | GetTopLeft () const |
| FVector2f | GetTopLeft2f () const |
| UE::Slate::FDeprecateVector2DResult | GetDesiredSize () const |
| FVector2f | GetDesiredSize2f () const |
| template<EOrientation Orientation> | |
| float | GetTotalSpaceAlong () const |
| template<> | |
| float | GetTotalSpaceAlong () const |
| template<> | |
| float | GetTotalSpaceAlong () const |
Public Attributes | |
| float | Left |
| float | Top |
| float | Right |
| float | Bottom |
Describes the space around a Widget.
|
inline |
Default constructor.
The default margin size is zero on all four sides..
|
inline |
Construct a Margin with uniform space on all sides
Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing
|
inline |
Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing
|
inline |
Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing
Construct a Margin where the spacing on each side is individually specified.
|
inline |
Construct a Margin where the margins are coming from a FVector4
|
inline |
Construct a Margin where the margins are coming from a FVector4
|
inline |
Gets the margin's total size.
|
inline |
|
inline |
Gets the offset for the top left.
|
inline |
|
inline |
Gets the total horizontal or vertical margin.
|
inline |
|
inline |
Compares this margin with another for inequality.
| Other | The other margin. |
Multiply the margin by another margin functioning as the scale.
| InScale | How much to scale the margin. |
Multiply the margin by a scalar.
| Scale | How much to scale the margin. |
Adds another margin to this margin.
| Other | The margin to add. |
Subtracts another margin from this margin.
| Other | The margin to subtract. |
Compares this margin with another for equality.
| Other | The other margin. |
| float FMargin::Bottom |
Holds the margin to the bottom.
| float FMargin::Left |
Holds the margin to the left.
| float FMargin::Right |
Holds the margin to the right.
| float FMargin::Top |
Holds the margin to the top.