class
GUIContextMenu
Manages display and logic for a context menu.
Context menus can be opened anywhere within the GUI and can contain a hierarchy of menu items.
Public
Constructors
GUIContextMenu
GUIContextMenu() = default
Methods
~GUIContextMenu
~GUIContextMenu() noexcept
Open
Opens a context menu at the specified position relative to the provided widget.
Private
Methods
Close
void Close()
Closes the context menu if open.
OnMenuClosed
void OnMenuClosed()
Called when the context menu is closed externally (for example when user selects an item or clicks outside it).
Fields
mContextMenuOpen
bool mContextMenuOpen