FSlateApplication::AddWindowAsNativeChild

Associates a top level Slate Window with a native window, and "natively" parents that window to the specified Slate window.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h

Include

#include "Framework/Application/SlateApplication.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp

Syntax

TSharedRef< SWindow > AddWindowAsNativeChild
(
    TSharedRef< SWindow > InSlateWindow,
    TSharedRef< SWindow > InParentWindow,
    const bool bShowImmediately
)

Remarks

Associates a top level Slate Window with a native window, and "natively" parents that window to the specified Slate window. Although the window still a top level window in Slate, it will be considered a child window to the operating system.

Returns

a reference to the SWindow that was just added.

Parameters

Parameter

Description

InSlateWindow

A Slate window to which to add a native window.

InParentWindow

Slate window that the window being added should be a native child of

bShowImmediately

True to show the window. Pass 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