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. 更多... | |
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.
|
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 .