SGameLayerManager

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SGameLayerManager.h

Include

#include "Slate/SGameLayerManager.h"

Syntax

class SGameLayerManager :
    public SCompoundWidget,
    public IGameLayerManager

Constructors

Name Description

Public function

SGameLayerManager()

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Construct this widget

Public function Const

bool

 

IsUsingFixedDPIValue()

Public function

void

 

SetUseFixedDPIValue

(
    const bool bUseFixedDPI,
    const FIntPoint RefViewportSize
)

Function will instruct internal DPI computations to use a provided reference viewport size instead of the actual viewport size.

Overridden from SWidget

Name Description

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.

Public function Virtual

bool

 

OnVisualizeTooltip

(
    const TSharedPtr< SWidget >& Toolt...
)

Called when Slate wants to visualize tooltip.

Public function Virtual

void

 

Tick

(
    const FGeometry& AllottedGeometry,
    const double InCurrentTime,
    const float InDeltaTime
)

Ticks this widget with Geometry.

Overridden from IGameLayerManager

Name Description

Public function Virtual

bool

 

AddLayerForPlayer

(
    ULocalPlayer* Player,
    const FName& LayerName,
    TSharedRef< IGameLayer > Layer,
    int32 ZOrder
)

Public function Virtual

void

 

AddWidgetForPlayer

(
    ULocalPlayer* Player,
    TSharedRef< SWidget > ViewportConte...,
    int32 ZOrder
)

Public function Virtual

void

 

ClearWidgets()

Public function Virtual

void

 

ClearWidgetsForPlayer

(
    ULocalPlayer* Player
)

Public function Virtual

TSharedPtr< ...

 

FindLayerForPlayer

(
    ULocalPlayer* Player,
    const FName& LayerName
)

Public function Virtual Const

const FGeome...

 

GetPlayerWidgetHostGeometry

(
    ULocalPlayer* Player
)

Public function Virtual Const

const FGeome...

 

GetViewportWidgetHostGeometry()

Public function Virtual

void

 

NotifyPlayerAdded

(
    int32 PlayerIndex,
    ULocalPlayer* AddedPlayer
)

Public function Virtual

void

 

NotifyPlayerRemoved

(
    int32 PlayerIndex,
    ULocalPlayer* RemovedPlayer
)

Public function Virtual

void

 

RemoveWidgetForPlayer

(
    ULocalPlayer* Player,
    TSharedRef< SWidget > ViewportConte...
)

Public function Virtual

void

 

RestorePreviousWindowTitleBarState()

Public function Virtual

void

 

SetDefaultWindowTitleBarHeight

(
    float Height
)

Public function Virtual

void

 

SetSceneViewport

(
    FSceneViewport* InSceneViewpor...
)

Begin IGameLayerManager.

Public function Virtual

void

 

SetWindowTitleBarState

(
    const TSharedPtr< SWidget >& Title...,
    EWindowTitleBarMode Mode,
    bool bTitleBarDragEnabled,
    bool bWindowButtonsVisible,
    bool bTitleBarVisible
)

Public function Virtual

void

 

SetWindowTitleBarVisibility

(
    bool bIsVisible
)

Classes

Name

Description

Public struct

FArguments

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback