SSafeZone

Here's how you could make use of TitleSafe and ActionSafe areas: SNew(SOverlay)

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SSafeZone.h

Include

#include "Widgets/Layout/SSafeZone.h"

Syntax

class SSafeZone : public SBox

Remarks

Constructors

Name Description

Public function

SSafeZone()

Destructors

Name Description

Public function Virtual

~SSafeZone()

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function

void

 

DebugSafeAreaUpdated

(
    const FMargin& NewSafeZone,
    bool bShouldRecacheMetrics
)

Public function Static

TOptional< f...

 

GetGlobalSafeZoneScale()

Public function Const

FMargin

 

GetSafeMargin

(
    float InLayoutScale
)

Public function Static

void

 

SetGlobalSafeZoneScale

(
    TOptional< float > InScale
)

Public function

void

 

SetOverrideScreenInformation

(
    TOptional< FVector2D > InScreenSize,
    TOptional< float > InOverrideDpiSca...
)

Public function

void

 

SetSafeAreaScale

(
    FMargin InSafeAreaScale
)

Public function

void

 

SetSidesToPad

(
    bool InPadLeft,
    bool InPadRight,
    bool InPadTop,
    bool InPadBottom
)

Public function

void

 

SetTitleSafe

(
    bool bIsTitleSafe
)

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 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