Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FSlateApplication
Description
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.
| Name | AddWindowAsNativeChild |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h |
| Include Path | #include "Framework/Application/SlateApplication.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp |
TSharedRef < SWindow > AddWindowAsNativeChild
(
TSharedRef < SWindow > InSlateWindow,
TSharedRef < SWindow > InParentWindow,
const bool bShowImmediately
)
a reference to the SWindow that was just added.
Parameters
| Name | Remarks |
|---|---|
| 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. |