FSizeParam

Base structure for size parameters.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FSizeParam

FAuto

FStretch

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Types/SlateStructs.h

Include

#include "Types/SlateStructs.h"

Syntax

struct FSizeParam

Remarks

Base structure for size parameters.

Describes a way in which a parent widget allocates available space to its child widgets.

When SizeRule is SizeRule_Auto, the widget's DesiredSize will be used as the space required. When SizeRule is SizeRule_Stretch, the available space will be distributed proportionately between peer Widgets depending on the Value property. Available space is space remaining after all the peers' SizeRule_Auto requirements have been satisfied.

FSizeParam cannot be constructed directly - see FStretch, FAuto, and FAspectRatio

Variables

Name Description

Public variable

ESizeRule

 

SizeRule

The sizing rule to use.

Public variable

TAttribute< flo...

 

Value

The actual value this size parameter stores.

Constructors

Name Description

Protected function

FSizeParam

(
    ESizeRule InTypeOfSize,
    const TAttribute< float >& InValue
)

Hidden constructor.

Enums

Name

Description

Public enum

ESizeRule