Luanti 5.18.0-dev
Loading...
Searching...
No Matches
MainMenuManager Class Reference

#include <mainmenumanager.h>

Inheritance diagram for MainMenuManager:
Collaboration diagram for MainMenuManager:

Public Member Functions

void createdMenu (gui::IGUIElement *menu) override
void deletingMenu (gui::IGUIElement *menu) override
 Note that it may be called multiple times on GUIModalMenu (or GUIFormSpecMenu): 1x Explicit close request 1x Destructor.
void inhibitKeyPress (EKEY_CODE key) override
 Ignores all events of the specified key until (and including) it is released.
bool runPreprocessEvent (const SEvent &event)
size_t menuCount () const
GUIModalMenu * tryGetTopMenu () const
void deleteFront ()
bool pausesGame ()

Private Attributes

EKEY_CODE m_inhibited_key = KEY_UNKNOWN
std::list< gui::IGUIElement * > m_stack

Member Function Documentation

◆ createdMenu()

void MainMenuManager::createdMenu ( gui::IGUIElement * menu)
inlineoverridevirtual

Implements IMenuManager.

References guienv, and m_stack.

◆ deleteFront()

void MainMenuManager::deleteFront ( )
inline

References deletingMenu(), and m_stack.

Here is the call graph for this function:

◆ deletingMenu()

void MainMenuManager::deletingMenu ( gui::IGUIElement * menu)
inlineoverridevirtual

Note that it may be called multiple times on GUIModalMenu (or GUIFormSpecMenu): 1x Explicit close request 1x Destructor.

Implements IMenuManager.

References g_touchcontrols, guienv, and m_stack.

Referenced by deleteFront().

Here is the caller graph for this function:

◆ inhibitKeyPress()

void MainMenuManager::inhibitKeyPress ( EKEY_CODE key)
inlineoverridevirtual

Ignores all events of the specified key until (and including) it is released.

Implements IMenuManager.

References m_inhibited_key.

◆ menuCount()

size_t MainMenuManager::menuCount ( ) const
inline

References m_stack.

◆ pausesGame()

bool MainMenuManager::pausesGame ( )
inline

References m_stack, and GUIModalMenu::pausesGame().

Here is the call graph for this function:

◆ runPreprocessEvent()

bool MainMenuManager::runPreprocessEvent ( const SEvent & event)
inline

References m_inhibited_key, m_stack, and GUIModalMenu::preprocessEvent().

Here is the call graph for this function:

◆ tryGetTopMenu()

GUIModalMenu * MainMenuManager::tryGetTopMenu ( ) const
inline

References m_stack.

Member Data Documentation

◆ m_inhibited_key

EKEY_CODE MainMenuManager::m_inhibited_key = KEY_UNKNOWN
private

◆ m_stack

std::list<gui::IGUIElement*> MainMenuManager::m_stack
private

The documentation for this class was generated from the following file: