Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObject
- UVisual
- UWidget
- UPanelWidget
- UContentWidget
- UScaleBox
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/ScaleBox.h |
| Include | #include "Components/ScaleBox.h" |
Syntax
UCLASS (Config=Engine, MinimalAPI)
class UScaleBox : public UContentWidget
Remarks
Allows you to place content with a desired size and have it scale to meet the constraints placed on this box's alloted area. If you needed to have a background image scale to fill an area but not become distorted with different aspect ratios, or if you need to auto fit some text to an area, this is the control for you.
- Single Child
- Aspect Ratio
Variables
| Type | Name | Description | |
|---|---|---|---|
| TOptional< FVector2D > | DesignerSize | ||
| bool | IgnoreInheritedScale | Optional bool to ignore the inherited scale. | |
| TSharedPtr< SScaleBox > | MyScaleBox | ||
| TEnumAsByte< EStretch::Type > | Stretch | The stretching rule to apply when content is stretched | |
| TEnumAsByte< EStretchDirection::Type > | StretchDirection | Controls in what direction content can be scaled | |
| float | UserSpecifiedScale | Optional scale that can be specified by the User. Used only for UserSpecified stretching. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UScaleBox
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanEditChange
(
const FProperty* InProperty |
||
| EStretch::Type | GetStretch () |
||
| EStretchDirection::Type | |||
| float | |||
| bool | |||
| void | Serialize
(
FArchive& Ar |
||
| void | SetIgnoreInheritedScale
(
bool bInIgnoreInheritedScale |
||
| void | SetStretch
(
EStretch::Type InStretch |
||
| void | SetStretchDirection
(
EStretchDirection::Type InStretchDirection |
||
| void | SetUserSpecifiedScale
(
float InUserSpecifiedScale |
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 | ||
| void | OnDesignerChanged
(
const FDesignerChangedEventArgs& EventArgs |
||
| 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 |