Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
FormspecFormSource Class Reference

#include <guiFormSpecMenu.h>

+ Inheritance diagram for FormspecFormSource:
+ Collaboration diagram for FormspecFormSource:

Public Member Functions

 FormspecFormSource (const std::string &formspec)
 
 ~FormspecFormSource ()=default
 
void setForm (const std::string &formspec)
 
const std::string & getForm () const
 
- Public Member Functions inherited from IFormSource
virtual ~IFormSource ()=default
 
virtual const std::string & getForm () const =0
 
virtual std::string resolveText (const std::string &str)
 

Public Attributes

std::string m_formspec
 

Constructor & Destructor Documentation

◆ FormspecFormSource()

FormspecFormSource::FormspecFormSource ( const std::string &  formspec)
inline

◆ ~FormspecFormSource()

FormspecFormSource::~FormspecFormSource ( )
default

Member Function Documentation

◆ getForm()

const std::string & FormspecFormSource::getForm ( ) const
inlinevirtual

Implements IFormSource.

References m_formspec.

◆ setForm()

void FormspecFormSource::setForm ( const std::string &  formspec)
inline

References m_formspec.

Referenced by ModApiMainMenu::l_update_formspec().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_formspec

std::string FormspecFormSource::m_formspec

Referenced by getForm(), and setForm().


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