Navigation
API > API/Runtime > API/Runtime/Slate
Controls the DPI scale of its content. Can be used for zooming or shrinking arbitrary widget content.
| Name | SDPIScaler |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SDPIScaler.h |
| Include Path | #include "Widgets/Layout/SDPIScaler.h" |
Syntax
class SDPIScaler : public SPanel
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SPanel → SDPIScaler
- FSlateControlledConstruction → SWidget → SPanel → SDPIScaler
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SDPIScaler() |
Widgets/Layout/SDPIScaler.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~SDPIScaler() |
Widgets/Layout/SDPIScaler.h |
Structs
| Name | Remarks |
|---|---|
| FArguments | |
| FDPIScalerOneChildSlot |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| PrivateParentType | SPanel | Widgets/Layout/SDPIScaler.h | |
| PrivateThisType | SDPIScaler | Widgets/Layout/SDPIScaler.h | |
| Super | SPanel | Widgets/Layout/SDPIScaler.h | |
| ThisClass | SDPIScaler | Widgets/Layout/SDPIScaler.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DPIScaleAttribute | TSlateAttribute< float > | The scaling factor from 1:1 pixel to slate unit (SU) ratio. | Widgets/Layout/SDPIScaler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Widgets/Layout/SDPIScaler.h | ||
void SetContent
(
TSharedRef< SWidget > InContent |
See the Content attribute | Widgets/Layout/SDPIScaler.h | |
void SetDPIScale
(
TAttribute< float > InDPIScale |
See the DPIScale attribute | Widgets/Layout/SDPIScaler.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector2D ComputeDesiredSize
(
float |
Widgets/Layout/SDPIScaler.h | ||
virtual FChildren * GetChildren() |
Widgets/Layout/SDPIScaler.h | ||
virtual void OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Widgets/Layout/SDPIScaler.h |
Overridden from FSlateControlledConstruction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FSlateWidgetClassData & GetWidgetClass() |
Widgets/Layout/SDPIScaler.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSlateAttributeRef< float > GetDPIScaleAttribute() |
Widgets/Layout/SDPIScaler.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual float GetRelativeLayoutScale
(
int32 ChildIndex, |
Widgets/Layout/SDPIScaler.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FSlateWidgetClassData & GetPrivateWidgetClass() |
Widgets/Layout/SDPIScaler.h | ||
static SLATE_API void PrivateRegisterAttributes
(
FSlateAttributeInitializer& |
Widgets/Layout/SDPIScaler.h | ||
static const FSlateWidgetClassData & StaticWidgetClass() |
Widgets/Layout/SDPIScaler.h |