FAnchors

Describes how a widget is anchored.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/Anchors.h

Include

#include "Widgets/Layout/Anchors.h"

Syntax

struct FAnchors

Remarks

Describes how a widget is anchored.

Variables

Name Description

Public variable

FVector2D

 

Maximum

Holds the maximum anchors, right + bottom.

Public variable

FVector2D

 

Minimum

Holds the minimum anchors, left + top.

Constructors

Name Description

Public function

FAnchors()

Default constructor.

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

Public function

FAnchors

(
    float UnifromAnchors
)

Construct a Anchors with uniform space on all sides

Public function

FAnchors

(
    float Horizontal,
    float Vertical
)

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

Public function

FAnchors

(
    float MinX,
    float MinY,
    float MaxX,
    float MaxY
)

Construct Anchors where the spacing on each side is individually specified.

Functions

Name Description

Public function Const

bool

 

IsStretchedHorizontal()

Returns true if the anchors represent a stretch along the horizontal axis

Public function Const

bool

 

IsStretchedVertical()

Returns true if the anchors represent a stretch along the vertical axis

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FAnchors& Other
)

Compares this set of FAnchors with another for inequality.

Public function Const

bool

 

operator==

(
    const FAnchors& Other
)

Compares this set of FAnchors 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