Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SPanel
- SDPIScaler
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SDPIScaler.h |
| Include | #include "Widgets/Layout/SDPIScaler.h" |
Syntax
class SDPIScaler : public SPanel
Remarks
Controls the DPI scale of its content. Can be used for zooming or shrinking arbitrary widget content.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FDPIScalerOneChildSlot | ChildSlot | The content being scaled. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
SDPIScaler () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
||
| TSlateAttributeRef< float > | |||
| void | SetContent
(
TSharedRef< SWidget > InContent |
See the Content attribute | |
| void | SetDPIScale
(
TAttribute< float > InDPIScale |
See the DPIScale attribute | |
| const FSlateWidgetClassData & |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float |
A Panel's desired size in the space required to arrange of its children on the screen while respecting all of the children's desired sizes and any layout-related options specified by the user. | |
| FChildren * | GetChildren () |
All widgets must provide a way to access their children in a layout-agnostic way. | |
| float | GetRelativeLayoutScale
(
int32 ChildIndex, |
What is the Child's scale relative to this widget. | |
| void | OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Panels arrange their children in a space described by the AllottedGeometry parameter. |
Overridden from FSlateControlledConstruction
| Type | Name | Description | |
|---|---|---|---|
| const FSlateWidgetClassData & |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FDPIScalerOneChildSlot |
Typedefs
| Name | Description |
|---|---|
| PrivateParentType | |
| PrivateThisType | |
| Super | |
| ThisClass |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TSlateDeprecatedTAttribute< float > | DPIScale | Direct access to DPIScale is now deprecated. Use the setter or getter. |