FSlateApplicationBase::AddWindow

Associates a top level Slate Window with a native window and ensures that it is tracked properly by the application.

Windows
MacOS
Linux

Override Hierarchy

FSlateApplicationBase::AddWindow()

FSlateApplication::AddWindow()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h

Include

#include "Application/SlateApplicationBase.h"

Syntax

TSharedRef< SWindow > AddWindow
(
    TSharedRef< SWindow > InSlateWindow,
    const bool bShowImmediately
)

Remarks

Associates a top level Slate Window with a native window and ensures that it is tracked properly by the application. Calling this method will cause the window to be displayed (unless specified otherwise), so be sure to associate content with the window object you're passing in first!

Returns

a reference to the SWindow that was just added.

Parameters

Parameter

Description

InSlateWindow

A SlateWindow to which to add a native window.

bShowImmediately

true to show the window, false if you're going to call ShowWindow() yourself later.

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