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