Navigation
API > API/Runtime > API/Runtime/Slate
Describes how a widget is anchored.
| Name | FAnchors |
| Type | struct |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/Anchors.h |
| Include Path | #include "Widgets/Layout/Anchors.h" |
Syntax
USTRUCT (BlueprintType )
struct FAnchors
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAnchors () |
Default constructor.The default margin size is zero on all four sides.. | Widgets/Layout/Anchors.h | |
FAnchors
(
float UnifromAnchors |
Construct a Anchors with uniform space on all sides | Widgets/Layout/Anchors.h | |
FAnchors
(
float Horizontal, |
Construct a Anchors where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing | Widgets/Layout/Anchors.h | |
FAnchors
(
float MinX, |
Construct Anchors where the spacing on each side is individually specified. | Widgets/Layout/Anchors.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Maximum | FVector2D | Holds the maximum anchors, right + bottom. | Widgets/Layout/Anchors.h |
|
| Minimum | FVector2D | Holds the minimum anchors, left + top. | Widgets/Layout/Anchors.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsStretchedHorizontal() |
Returns true if the anchors represent a stretch along the horizontal axis | Widgets/Layout/Anchors.h | |
bool IsStretchedVertical() |
Returns true if the anchors represent a stretch along the vertical axis | Widgets/Layout/Anchors.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FAnchors& Other |
Compares this set of FAnchors with another for inequality. | Widgets/Layout/Anchors.h | |
bool operator==
(
const FAnchors& Other |
Compares this set of FAnchors with another for equality. | Widgets/Layout/Anchors.h |