FMenuStack::FindMenuFromWindow

Finds a menu in the stack that owns InWindow.

Windows
MacOS
Linux

References

Module

Slate

Header

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

Include

#include "Framework/Application/MenuStack.h"

Source

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

Syntax

TSharedPtr< IMenu > FindMenuFromWindow
(
    TSharedRef< SWindow > InWindow
) const

Remarks

Finds a menu in the stack that owns InWindow. Although this method isn't deprecated, it is intended for private use inside FMenuStack and its use as a public method should be avoided. Menus should be identified in client code as IMenu interfaces.

Returns

The menu in the stack that owns InWindow, or an invalid ptr if not found

Parameters

Parameter

Description

InWindow

The window to look 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