Navigation
API > API/Runtime > API/Runtime/SlateCore
Structure for optional floating point sizes.
| Name | FOptionalSize |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Types/SlateStructs.h |
| Include Path | #include "Types/SlateStructs.h" |
Syntax
struct FOptionalSize
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Creates an unspecified size. | Types/SlateStructs.h | ||
FOptionalSize
(
const float SpecifiedSize |
Creates a size with the specified value. | Types/SlateStructs.h | |
FOptionalSize
(
const TOptional< float >& OptionalSize |
Creates a size with the TOptional value. | Types/SlateStructs.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Unspecified | const float | Constant for unspecified sizes. | Types/SlateStructs.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Size | float | Holds the size, if specified. | Types/SlateStructs.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float Get () |
Gets the value of the size. | Types/SlateStructs.h | |
bool IsSet () |
Checks whether the size is set. | Types/SlateStructs.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FOptionalSize& Other |
Compare one optional size to another for equality | Types/SlateStructs.h |