Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
TextDestGuiEngine Class Reference

GUIEngine specific implementation of TextDest used within guiFormSpecMenu. More...

#include <guiEngine.h>

+ Inheritance diagram for TextDestGuiEngine:
+ Collaboration diagram for TextDestGuiEngine:

Public Member Functions

 TextDestGuiEngine (GUIEngine *engine)
 default constructor
 
void gotText (const StringMap &fields)
 receive fields transmitted by guiFormSpecMenu
 
void requestScreenshot ()
 Request a screenshot from the main menu.
 
- Public Member Functions inherited from TextDest
virtual ~TextDest ()=default
 

Private Attributes

GUIEnginem_engine = nullptr
 target to transmit data to
 

Additional Inherited Members

- Public Attributes inherited from TextDest
std::string m_formname
 

Detailed Description

GUIEngine specific implementation of TextDest used within guiFormSpecMenu.

Constructor & Destructor Documentation

◆ TextDestGuiEngine()

TextDestGuiEngine::TextDestGuiEngine ( GUIEngine * engine)
inline

default constructor

Parameters
enginethe engine data is transmitted for further processing

Member Function Documentation

◆ gotText()

void TextDestGuiEngine::gotText ( const StringMap & fields)
virtual

receive fields transmitted by guiFormSpecMenu

Parameters
fieldsmap containing formspec field elements currently active

Implements TextDest.

References GUIEngine::getScriptIface(), ScriptApiMainMenu::handleMainMenuButtons(), and m_engine.

+ Here is the call graph for this function:

◆ requestScreenshot()

void TextDestGuiEngine::requestScreenshot ( )
virtual

Request a screenshot from the main menu.

Reimplemented from TextDest.

References m_engine, and GUIEngine::requestScreenshot().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_engine

GUIEngine* TextDestGuiEngine::m_engine = nullptr
private

target to transmit data to

Referenced by gotText(), and requestScreenshot().


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