SMenuOwner

Any widget that wants to own lists of items that may have sub-menus that should be handled in the same way as multibox menus (mouse can cross other items without sub-menu closing)

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SMenuOwner.h

Include

#include "Widgets/Layout/SMenuOwner.h"

Syntax

class SMenuOwner : public SCompoundWidget

Remarks

Any widget that wants to own lists of items that may have sub-menus that should be handled in the same way as multibox menus (mouse can cross other items without sub-menu closing)

Variables

Name Description

Protected variable

TWeakPtr< SMenu...

 

SummonedMenuAnchor

For menu bar widgets, this stores a weak reference to the last pull-down or sub-menu that was summoned.

Functions

Name Description

Public function

void

 

CloseSummonedMenus()

For menu bar widget, closes any open pull-down or sub menus

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function Const

TSharedPtr< ...

 

GetOpenMenu()

For menu bar or sub-menu widgets, returns the currently open menu, if there is one open

Public function

void

 

SetSummonedMenu

(
    TSharedRef< SMenuAnchor > InMenuAnc...
)

For menu widgets, tells the owner widget about a currently active pull-down menu

Classes

Name

Description

Public struct

FArguments

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