FSlateWindowHelper::FindWindowByPlatformWindow

Searches the given collection of windows to find the Slate window that corresponds to the specified platform window.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Application/SlateWindowHelper.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Application/SlateWindowHelper.cpp

Syntax

static TSharedPtr< SWindow > FindWindowByPlatformWindow
(
    const TArray< TSharedRef< SWindow >> & WindowsToSearch,
    const TSharedRef< FGenericWindow > & PlatformWindow
)

Remarks

Searches the given collection of windows to find the Slate window that corresponds to the specified platform window.

Returns

The corresponding Slate window, or nullptr if it was not found.

Parameters

Parameter

Description

WindowsToSearch

The collection of windows to search.

PlatformWindow

The platform window to find the Slate window for.

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