Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/SizeBox.h |
Include |
#include "Components/SizeBox.h" |
class USizeBox : public UContentWidget
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.
Single Child Fixed Size
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
bOverride_HeightOverride |
|
|
uint8: 1 |
bOverride_MaxAspectRatio |
|
|
uint8: 1 |
bOverride_MaxDesiredHeight |
|
|
uint8: 1 |
bOverride_MaxDesiredWidth |
|
|
uint8: 1 |
bOverride_MinAspectRatio |
|
|
uint8: 1 |
bOverride_MinDesiredHeight |
|
|
uint8: 1 |
bOverride_MinDesiredWidth |
|
|
uint8: 1 |
bOverride_WidthOverride |
|
|
float |
HeightOverride |
When specified, ignore the content's desired size and report the HeightOverride as the Box's desired height. |
|
float |
MaxAspectRatio |
|
|
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 |
MinAspectRatio |
|
|
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. |
|
TSharedPtr< SBo... |
MySizeBox |
|
|
float |
WidthOverride |
When specified, ignore the content's desired size and report the WidthOverride as the Box's desired width. |
Name | Description | |
---|---|---|
|
USizeBox ( |
Name | Description | ||
---|---|---|---|
|
ClearHeightOverride() |
||
|
ClearMaxAspectRatio() |
||
|
ClearMaxDesiredHeight() |
||
|
ClearMaxDesiredWidth() |
||
|
ClearMinAspectRatio() |
||
|
ClearMinDesiredHeight() |
||
|
ClearMinDesiredWidth() |
||
|
ClearWidthOverride() |
||
|
SetHeightOverride ( |
When specified, ignore the content's desired size and report the HeightOverride as the Box's desired height. |
|
|
SetMaxAspectRatio ( |
||
|
SetMaxDesiredHeight ( |
When specified, will report the MaxDesiredHeight if smaller than the content's desired height. |
|
|
SetMaxDesiredWidth ( |
When specified, will report the MaxDesiredWidth if smaller than the content's desired width. |
|
|
SetMinAspectRatio ( |
||
|
SetMinDesiredHeight ( |
When specified, will report the MinDesiredHeight if larger than the content's desired height. |
|
|
SetMinDesiredWidth ( |
When specified, will report the MinDesiredWidth if larger than the content's desired width. |
|
|
SetWidthOverride ( |
When specified, ignore the content's desired size and report the WidthOverride as the Box's desired width. |
Name | Description | ||
---|---|---|---|
|
UClass * |
GetSlotClass() |
|
|
OnSlotAdded ( |
||
|
OnSlotRemoved ( |
Name | Description | ||
---|---|---|---|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |