UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAnchors Struct Reference

#include <Anchors.h>

Public Member Functions

 FAnchors ()
 
 FAnchors (float UnifromAnchors)
 
 FAnchors (float Horizontal, float Vertical)
 
 FAnchors (float MinX, float MinY, float MaxX, float MaxY)
 
bool operator== (const FAnchors &Other) const
 
bool operator!= (const FAnchors &Other) const
 
bool IsStretchedVertical () const
 
bool IsStretchedHorizontal () const
 

Public Attributes

FVector2D Minimum
 
FVector2D Maximum
 

Detailed Description

Describes how a widget is anchored.

Constructor & Destructor Documentation

◆ FAnchors() [1/4]

FAnchors::FAnchors ( )
inline

Default constructor.

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

◆ FAnchors() [2/4]

FAnchors::FAnchors ( float  UnifromAnchors)
inline

Construct a Anchors with uniform space on all sides

◆ FAnchors() [3/4]

FAnchors::FAnchors ( float  Horizontal,
float  Vertical 
)
inline

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

◆ FAnchors() [4/4]

FAnchors::FAnchors ( float  MinX,
float  MinY,
float  MaxX,
float  MaxY 
)
inline

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

Member Function Documentation

◆ IsStretchedHorizontal()

bool FAnchors::IsStretchedHorizontal ( ) const
inline

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

◆ IsStretchedVertical()

bool FAnchors::IsStretchedVertical ( ) const
inline

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

◆ operator!=()

bool FAnchors::operator!= ( const FAnchors Other) const
inline

Compares this set of FAnchors with another for inequality.

Parameters
OtherThe other FAnchors.
Returns
true if the two FAnchors are not equal, false otherwise.

◆ operator==()

bool FAnchors::operator== ( const FAnchors Other) const
inline

Compares this set of FAnchors with another for equality.

Parameters
OtherThe other FAnchors.
Returns
true if the two FAnchors are equal, false otherwise.

Member Data Documentation

◆ Maximum

FVector2D FAnchors::Maximum

Holds the maximum anchors, right + bottom.

◆ Minimum

FVector2D FAnchors::Minimum

Holds the minimum anchors, left + top.


The documentation for this struct was generated from the following file: