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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback