Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
MainGameCallback Class Reference

#include <mainmenumanager.h>

+ Inheritance diagram for MainGameCallback:
+ Collaboration diagram for MainGameCallback:

Public Member Functions

 MainGameCallback ()=default
 
virtual ~MainGameCallback ()=default
 
void exitToOS () override
 
void disconnect () override
 
void changePassword () override
 
void changeVolume () override
 
void keyConfig () override
 
void signalKeyConfigChange () override
 
void showOpenURLDialog (const std::string &url) override
 

Public Attributes

bool disconnect_requested = false
 
bool changepassword_requested = false
 
bool changevolume_requested = false
 
bool keyconfig_requested = false
 
bool shutdown_requested = false
 
bool keyconfig_changed = false
 
std::string show_open_url_dialog = ""
 

Constructor & Destructor Documentation

◆ MainGameCallback()

MainGameCallback::MainGameCallback ( )
default

◆ ~MainGameCallback()

virtual MainGameCallback::~MainGameCallback ( )
virtualdefault

Member Function Documentation

◆ changePassword()

void MainGameCallback::changePassword ( )
inlineoverridevirtual

Implements IGameCallback.

References changepassword_requested.

Referenced by LocalFormspecHandler::gotText().

+ Here is the caller graph for this function:

◆ changeVolume()

void MainGameCallback::changeVolume ( )
inlineoverridevirtual

Implements IGameCallback.

References changevolume_requested.

Referenced by LocalFormspecHandler::gotText().

+ Here is the caller graph for this function:

◆ disconnect()

void MainGameCallback::disconnect ( )
inlineoverridevirtual

Implements IGameCallback.

References disconnect_requested.

Referenced by LocalFormspecHandler::gotText(), and ModApiClient::l_disconnect().

+ Here is the caller graph for this function:

◆ exitToOS()

void MainGameCallback::exitToOS ( )
inlineoverridevirtual

Implements IGameCallback.

References shutdown_requested.

Referenced by LocalFormspecHandler::gotText().

+ Here is the caller graph for this function:

◆ keyConfig()

void MainGameCallback::keyConfig ( )
inlineoverridevirtual

Implements IGameCallback.

References keyconfig_requested.

Referenced by LocalFormspecHandler::gotText().

+ Here is the caller graph for this function:

◆ showOpenURLDialog()

void MainGameCallback::showOpenURLDialog ( const std::string & url)
inlineoverridevirtual

Implements IGameCallback.

References show_open_url_dialog.

Referenced by GUIFormSpecMenu::OnEvent(), and GUIHyperText::OnEvent().

+ Here is the caller graph for this function:

◆ signalKeyConfigChange()

void MainGameCallback::signalKeyConfigChange ( )
inlineoverridevirtual

Implements IGameCallback.

References keyconfig_changed.

Referenced by GUIKeyChangeMenu::acceptInput().

+ Here is the caller graph for this function:

Member Data Documentation

◆ changepassword_requested

bool MainGameCallback::changepassword_requested = false

◆ changevolume_requested

bool MainGameCallback::changevolume_requested = false

◆ disconnect_requested

bool MainGameCallback::disconnect_requested = false

◆ keyconfig_changed

bool MainGameCallback::keyconfig_changed = false

◆ keyconfig_requested

bool MainGameCallback::keyconfig_requested = false

Referenced by Game::handleCallbacks(), and keyConfig().

◆ show_open_url_dialog

std::string MainGameCallback::show_open_url_dialog = ""

◆ shutdown_requested

bool MainGameCallback::shutdown_requested = false

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