Choose your operating system:
Windows
macOS
Linux
| FSlateApplicationBase::AddWindow()
|
Module |
|
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 |
virtual TSharedRef< SWindow > AddWindow
(
TSharedRef< SWindow > InSlateWindow,
const bool bShowImmediately
)
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!
a reference to the SWindow that was just added.
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. |