Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components
Inheritance Hierarchy
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Components/ScaleBox.h |
Include | #include "Components/ScaleBox.h" |
Syntax
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 | |
![]() |
TSharedPtr< SScaleBox > | MyScaleBox |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UScaleBox
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
EStretch::Type | GetStretch () |
|
![]() ![]() |
EStretchDirection::Type | ||
![]() ![]() |
float | ||
![]() ![]() |
bool | ||
![]() |
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 |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | IgnoreInheritedScale | Direct access to IgnoreInheritedScale is deprecated. Please use the getter or setter. |
![]() |
TEnumAsByte< EStretch::Type > | Stretch | Direct access to Stretch is deprecated. Please use the getter or setter. |
![]() |
TEnumAsByte< EStretchDirection::Type > | StretchDirection | Direct access to StretchDirection is deprecated. Please use the getter or setter. |
![]() |
float | UserSpecifiedScale | Direct access to UserSpecifiedScale is deprecated. Please use the getter or setter. |