Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObject
- UVisual
- UWidget
- UPanelWidget
- UContentWidget
- USizeBox
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/SizeBox.h |
| Include | #include "Components/SizeBox.h" |
Syntax
UCLASS (MinimalAPI)
class USizeBox : public UContentWidget
Remarks
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
Variables
| Type | 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< SBox > | MySizeBox | ||
| float | WidthOverride | When specified, ignore the content's desired size and report the WidthOverride as the Box's desired width. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
USizeBox
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| void | |||
| float | |||
| float | |||
| float | |||
| float | |||
| float | |||
| float | |||
| float | |||
| float | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| void | SetHeightOverride
(
float InHeightOverride |
When specified, ignore the content's desired size and report the HeightOverride as the Box's desired height. | |
| void | SetMaxAspectRatio
(
float InMaxAspectRatio |
||
| 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 | SetMinAspectRatio
(
float InMinAspectRatio |
||
| 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. |
Overridden from UPanelWidget
| Type | Name | Description | |
|---|---|---|---|
| UClass * | GetSlotClass () |
UPanelWidget. | |
| void | OnSlotAdded
(
UPanelSlot* Slot |
||
| void | OnSlotRemoved
(
UPanelSlot* Slot |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | ||
| void | Applies all properties to the native widget if possible. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |