engine
 
载入中...
搜索中...
未找到
Public 属性 | Protected 成员函数 | 所有成员列表
FSizeParam结构体 参考

Base structure for size parameters. 更多...

#include <SlateStructs.h>

+ 类 FSizeParam 继承关系图:

Public 属性

ESizeRule SizeRule
 The sizing rule to use.
 
TAttribute< float > Value
 The actual value this size parameter stores. 更多...
 

Protected 成员函数

 FSizeParam (ESizeRule InTypeOfSize, const TAttribute< float > &InValue)
 Hidden constructor. 更多...
 

详细描述

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

示例
/github/workspace/Engine/Source/Runtime/UMG/Public/Components/Widget.h.

构造及析构函数说明

◆ FSizeParam()

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

Hidden constructor.

Use FAspectRatio, FAuto, FStretch to instantiate size parameters.

参见
FAspectRatio, FAuto, FStretch

类成员变量说明

◆ Value

TAttribute<float> FSizeParam::Value

The actual value this size parameter stores.

This value can be driven by a delegate. It is only used for the Stretch mode.


该结构体的文档由以下文件生成: