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

#include <SlateStructs.h>

Public Member Functions

 FOptionalSize ()
 
 FOptionalSize (const float SpecifiedSize)
 
 FOptionalSize (const TOptional< float > &OptionalSize)
 
bool IsSet () const
 
float Get () const
 
bool operator== (const FOptionalSize &Other) const
 

Detailed Description

Structure for optional floating point sizes.

Constructor & Destructor Documentation

◆ FOptionalSize() [1/3]

FOptionalSize::FOptionalSize ( )
inline

Creates an unspecified size.

◆ FOptionalSize() [2/3]

FOptionalSize::FOptionalSize ( const float  SpecifiedSize)
inline

Creates a size with the specified value.

Parameters
SpecifiedSizeThe size to set.

◆ FOptionalSize() [3/3]

FOptionalSize::FOptionalSize ( const TOptional< float > &  OptionalSize)
inline

Creates a size with the TOptional value.

Parameters
OptionalSizeThe optional size to set.

Member Function Documentation

◆ Get()

float FOptionalSize::Get ( ) const
inline

Gets the value of the size.

Before calling this method, check with IsSet() whether the size is actually specified. Unspecified sizes a value of -1.0f will be returned.

See also
IsSet

◆ IsSet()

bool FOptionalSize::IsSet ( ) const
inline

Checks whether the size is set.

Returns
true if the size is set, false if it is unspecified.
See also
Get

◆ operator==()

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

Compare one optional size to another for equality


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