Script for running an active UI.
More...
#include <GUI.hpp>
|
sol::table | m_self |
| The script object (table) returned by a lua script.
|
|
sol::function | m_update |
| The update function belonging to the lua table.
|
|
|
GUI & | operator= (const GUI &)=delete |
| Copy assignment operator.
|
|
| GUI (const GUI &)=delete |
| Copy constructor.
|
|
Script for running an active UI.
Definition at line 22 of file GUI.hpp.
◆ GUI() [1/4]
galaxy::components::GUI::GUI |
( |
| ) |
|
Constructor.
Definition at line 20 of file GUI.cpp.
◆ GUI() [2/4]
galaxy::components::GUI::GUI |
( |
const nlohmann::json & | json | ) |
|
JSON constructor.
- Parameters
-
json | JSON defining object. |
Definition at line 24 of file GUI.cpp.
◆ GUI() [3/4]
galaxy::components::GUI::GUI |
( |
GUI && | s | ) |
|
Move constructor.
Definition at line 29 of file GUI.cpp.
◆ ~GUI()
galaxy::components::GUI::~GUI |
( |
| ) |
|
|
virtual |
Destructor.
Definition at line 48 of file GUI.cpp.
◆ GUI() [4/4]
galaxy::components::GUI::GUI |
( |
const GUI & | | ) |
|
|
privatedelete |
◆ operator=() [1/2]
GUI & galaxy::components::GUI::operator= |
( |
GUI && | s | ) |
|
Move assignment operator.
Definition at line 36 of file GUI.cpp.
◆ load()
void galaxy::components::GUI::load |
( |
const std::string & | file | ) |
|
Load script and set context.
- Parameters
-
Definition at line 56 of file GUI.cpp.
◆ file()
const std::string & galaxy::components::GUI::file |
( |
| ) |
const |
|
nodiscard |
Get script file.
- Returns
- Const string reference.
Definition at line 112 of file GUI.cpp.
◆ serialize()
nlohmann::json galaxy::components::GUI::serialize |
( |
| ) |
|
|
nodiscardoverridevirtual |
◆ deserialize()
void galaxy::components::GUI::deserialize |
( |
const nlohmann::json & | json | ) |
|
|
overridevirtual |
◆ operator=() [2/2]
GUI & galaxy::components::GUI::operator= |
( |
const GUI & | | ) |
|
|
privatedelete |
Copy assignment operator.
◆ m_self
sol::table galaxy::components::GUI::m_self |
The script object (table) returned by a lua script.
Definition at line 95 of file GUI.hpp.
◆ m_update
sol::function galaxy::components::GUI::m_update |
The update function belonging to the lua table.
Definition at line 100 of file GUI.hpp.
◆ m_file
std::string galaxy::components::GUI::m_file |
|
private |
The documentation for this class was generated from the following files:
- galaxy/src/galaxy/components/GUI.hpp
- galaxy/src/galaxy/components/GUI.cpp