SWindow::GetTopmostAncestor

Look up the parent chain until we find the top-level window that owns this window

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWindow.h

Include

#include "Widgets/SWindow.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWindow.cpp

Syntax

TSharedPtr< SWindow > GetTopmostAncestor()

Remarks

Look up the parent chain until we find the top-level window that owns this window