Navigation
API > API/Plugins > API/Plugins/Paper2D
Describes the space around a 2D area on an integer grid.
| Name | FIntMargin |
| Type | struct |
| Header File | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/IntMargin.h |
| Include Path | #include "IntMargin.h" |
Syntax
USTRUCT (BlueprintType )
struct FIntMargin
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIntMargin () |
Default constructor.The default margin size is zero on all four sides.. | IntMargin.h | |
FIntMargin
(
int32 UniformMargin |
Construct a Margin with uniform space on all sides | IntMargin.h | |
FIntMargin
(
int32 Horizontal, |
Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing | IntMargin.h | |
FIntMargin
(
int32 InLeft, |
Construct a Margin where the spacing on each side is individually specified. | IntMargin.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Bottom | int32 | Holds the margin to the bottom. | IntMargin.h |
|
| Left | int32 | Holds the margin to the left. | IntMargin.h |
|
| Right | int32 | Holds the margin to the right. | IntMargin.h |
|
| Top | int32 | Holds the margin to the top. | IntMargin.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIntPoint GetDesiredSize() |
Gets the margin's total size. | IntMargin.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIntMargin operator-
(
const FIntMargin& Other |
Subtracts another margin from this margin. | IntMargin.h | |
bool operator!=
(
const FIntMargin& Other |
Compares this margin with another for inequality. | IntMargin.h | |
FIntMargin operator+
(
const FIntMargin& InDelta |
Adds another margin to this margin. | IntMargin.h | |
bool operator==
(
const FIntMargin& Other |
Compares this margin with another for equality. | IntMargin.h |