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

A widget that allows you to specify the size it reports to have and desire. 更多...

#include <SizeBox.h>

继承自 UContentWidget .

Public 成员函数

void SetHeightOverride (float InHeightOverride)
 When specified, ignore the content's desired size and report the HeightOverride as the Box's desired height.
 
void SetMaxDesiredHeight (float InMaxDesiredHeight)
 When specified, will report the MaxDesiredHeight if smaller than the content's desired height.
 
void SetMaxDesiredWidth (float InMaxDesiredWidth)
 When specified, will report the MaxDesiredWidth if smaller than the content's desired width.
 
void SetMinDesiredHeight (float InMinDesiredHeight)
 When specified, will report the MinDesiredHeight if larger than the content's desired height.
 
void SetMinDesiredWidth (float InMinDesiredWidth)
 When specified, will report the MinDesiredWidth if larger than the content's desired width.
 
void SetWidthOverride (float InWidthOverride)
 When specified, ignore the content's desired size and report the WidthOverride as the Box's desired width.
 
virtual void SynchronizeProperties () override
 Applies all properties to the native widget if possible. 更多...
 

Public 属性

float HeightOverride
 When specified, ignore the content's desired size and report the HeightOverride as the Box's desired height.
 
float MaxDesiredHeight
 When specified, will report the MaxDesiredHeight if smaller than the content's desired height.
 
float MaxDesiredWidth
 When specified, will report the MaxDesiredWidth if smaller than the content's desired width.
 
float MinDesiredHeight
 When specified, will report the MinDesiredHeight if larger than the content's desired height.
 
float MinDesiredWidth
 When specified, will report the MinDesiredWidth if larger than the content's desired width.
 
float WidthOverride
 When specified, ignore the content's desired size and report the WidthOverride as the Box's desired width.
 

Protected 成员函数

virtual TSharedRef< SWidget > RebuildWidget () override
 Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.
 

详细描述

A widget that allows you to specify the size it reports to have and desire.

Not all widgets report a desired size that you actually desire. Wrapping them in a SizeBox lets you have the Size Box force them to be a particular size.

成员函数说明

◆ SynchronizeProperties()

virtual void USizeBox::SynchronizeProperties ( )
overridevirtual

Applies all properties to the native widget if possible.

This is called after a widget is constructed. It can also be called by the editor to update modified state, so ensure all initialization to a widgets properties are performed here, or the property and visual state may become unsynced.

重载 UWidget .


该类的文档由以下文件生成: