FIntMargin

Describes the space around a 2D area on an integer grid.

Windows
MacOS
Linux

References

Module

Paper2D

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/IntMargin.h

Include

#include "IntMargin.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)([BlueprintType](Programming/UnrealArchitecture/Reference/Structs/Specifiers/BlueprintType))
struct FIntMargin

Remarks

Describes the space around a 2D area on an integer grid.

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

int32

 

Bottom

Holds the margin to the bottom.

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

int32

 

Left

Holds the margin to the left.

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

int32

 

Right

Holds the margin to the right.

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

int32

 

Top

Holds the margin to the top.

Constructors

Name Description

Public function

FIntMargin()

Default constructor.

The default margin size is zero on all four sides..

Public function

FIntMargin

(
    int32 UniformMargin
)

Construct a Margin with uniform space on all sides

Public function

FIntMargin

(
    int32 Horizontal,
    int32 Vertical
)

Construct a Margin where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing

Public function

FIntMargin

(
    int32 InLeft,
    int32 InTop,
    int32 InRight,
    int32 InBottom
)

Construct a Margin where the spacing on each side is individually specified.

Functions

Name Description

Public function Const

FIntPoint

 

GetDesiredSize()

Gets the margin's total size.

Operators

Name Description

Public function Const

FIntMargin

 

operator-

(
    const FIntMargin& Other
)

Subtracts another margin from this margin.

Public function Const

bool

 

operator!=

(
    const FIntMargin& Other
)

Compares this margin with another for inequality.

Public function Const

FIntMargin

 

operator+

(
    const FIntMargin& InDelta
)

Adds another margin to this margin.

Public function Const

bool

 

operator==

(
    const FIntMargin& Other
)

Compares this margin with another for equality.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss