USizeBox

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

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/SizeBox.h

Include

#include "Components/SizeBox.h"

Syntax

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

Name Description

Public variable

uint8: 1

 

bOverride_HeightOverride

Public variable

uint8: 1

 

bOverride_MaxAspectRatio

Public variable

uint8: 1

 

bOverride_MaxDesiredHeight

Public variable

uint8: 1

 

bOverride_MaxDesiredWidth

Public variable

uint8: 1

 

bOverride_MinAspectRatio

Public variable

uint8: 1

 

bOverride_MinDesiredHeight

Public variable

uint8: 1

 

bOverride_MinDesiredWidth

Public variable

uint8: 1

 

bOverride_WidthOverride

Public variable

float

 

HeightOverride

When specified, ignore the content's desired size and report the HeightOverride as the Box's desired height.

Public variable

float

 

MaxAspectRatio

Public variable

float

 

MaxDesiredHeight

When specified, will report the MaxDesiredHeight if smaller than the content's desired height.

Public variable

float

 

MaxDesiredWidth

When specified, will report the MaxDesiredWidth if smaller than the content's desired width.

Public variable

float

 

MinAspectRatio

Public variable

float

 

MinDesiredHeight

When specified, will report the MinDesiredHeight if larger than the content's desired height.

Public variable

float

 

MinDesiredWidth

When specified, will report the MinDesiredWidth if larger than the content's desired width.

Protected variable

TSharedPtr< SBo...

 

MySizeBox

Public variable

float

 

WidthOverride

When specified, ignore the content's desired size and report the WidthOverride as the Box's desired width.

Constructors

Name Description

Public function

USizeBox

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

ClearHeightOverride()

Public function

void

 

ClearMaxAspectRatio()

Public function

void

 

ClearMaxDesiredHeight()

Public function

void

 

ClearMaxDesiredWidth()

Public function

void

 

ClearMinAspectRatio()

Public function

void

 

ClearMinDesiredHeight()

Public function

void

 

ClearMinDesiredWidth()

Public function

void

 

ClearWidthOverride()

Public function

void

 

SetHeightOverride

(
    float InHeightOverride
)

When specified, ignore the content's desired size and report the HeightOverride as the Box's desired height.

Public function

void

 

SetMaxAspectRatio

(
    float InMaxAspectRatio
)

Public function

void

 

SetMaxDesiredHeight

(
    float InMaxDesiredHeight
)

When specified, will report the MaxDesiredHeight if smaller than the content's desired height.

Public function

void

 

SetMaxDesiredWidth

(
    float InMaxDesiredWidth
)

When specified, will report the MaxDesiredWidth if smaller than the content's desired width.

Public function

void

 

SetMinAspectRatio

(
    float InMinAspectRatio
)

Public function

void

 

SetMinDesiredHeight

(
    float InMinDesiredHeight
)

When specified, will report the MinDesiredHeight if larger than the content's desired height.

Public function

void

 

SetMinDesiredWidth

(
    float InMinDesiredWidth
)

When specified, will report the MinDesiredWidth if larger than the content's desired width.

Public function

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

Name Description

Protected function Virtual Const

UClass *

 

GetSlotClass()

UPanelWidget.

Protected function Virtual

void

 

OnSlotAdded

(
    UPanelSlot* Slot
)

Protected function Virtual

void

 

OnSlotRemoved

(
    UPanelSlot* Slot
)

Overridden from UWidget

Name Description

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Protected function Virtual

TSharedRef< ...

 

RebuildWidget()

Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.

Public function Virtual

void

 

SynchronizeProperties()

Applies all properties to the native widget if possible.

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss