Minetest 5.9.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 gotText (const std::wstring &text)
 receive text/events transmitted by guiFormSpecMenu
 
- Public Member Functions inherited from TextDest
virtual ~TextDest ()=default
 
virtual void gotText (const std::wstring &text)
 
virtual void gotText (const StringMap &fields)=0
 

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() [1/2]

void TextDestGuiEngine::gotText ( const std::wstring &  text)
virtual

receive text/events transmitted by guiFormSpecMenu

Parameters
texttextual representation of event

Reimplemented from TextDest.

References GUIEngine::getScriptIface(), ScriptApiMainMenu::handleMainMenuEvent(), m_engine, and wide_to_utf8().

+ Here is the call graph for this function:

◆ gotText() [2/2]

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:

Member Data Documentation

◆ m_engine

GUIEngine* TextDestGuiEngine::m_engine = nullptr
private

target to transmit data to

Referenced by gotText().


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