SDPIScaler

Controls the DPI scale of its content.

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Protected variable

FSimpleSlot

 

ChildSlot

The content being scaled.

Protected variable

TAttribute< flo...

 

DPIScale

The scaling factor from 1:1 pixel to slate unit (SU) ratio.

Constructors

Name Description

Public function

SDPIScaler()

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function

void

 

SetContent

(
    TSharedRef< SWidget > InContent
)

See the Content attribute

Public function

void

 

SetDPIScale

(
    TAttribute< float > InDPIScale
)

See the DPIScale attribute

Overridden from SWidget

Name Description

Public function Virtual Const

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.

Public function Virtual

FChildren &#...

 

GetChildren()

All widgets must provide a way to access their children in a layout-agnostic way.

Protected function Virtual Const

float

 

GetRelativeLayoutScale

(
    int32 ChildIndex,
    float LayoutScaleMultiplier
)

What is the Child's scale relative to this widget.

Public function Virtual Const

void

 

OnArrangeChildren

(
    const FGeometry& AllottedGeometry,
    FArrangedChildren& ArrangedChildre...
)

Panels arrange their children in a space described by the AllottedGeometry parameter.

Classes

Name

Description

Public struct

FArguments

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