Script for running an active UI.
More...
#include <GUI.hpp>
|
| | GUI () |
| | Constructor.
|
| |
| | GUI (const nlohmann::json &json) |
| | JSON constructor.
|
| |
| | GUI (GUI &&) |
| | Move constructor.
|
| |
| GUI & | operator= (GUI &&) |
| | Move assignment operator.
|
| |
| virtual | ~GUI () |
| | Destructor.
|
| |
| void | load (const std::string &file) |
| | Load script and set context.
|
| |
| const std::string & | file () const |
| | Get script file.
|
| |
| nlohmann::json | serialize () override |
| | Serializes object.
|
| |
| void | deserialize (const nlohmann::json &json) override |
| | Deserializes from object.
|
| |
|
| 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 |
( |
| ) |
|
|
nodiscardoverride |
Serializes object.
- Returns
- JSON object containing data to be serialized.
Definition at line 117 of file GUI.cpp.
◆ deserialize()
| void galaxy::components::GUI::deserialize |
( |
const nlohmann::json & | json | ) |
|
|
override |
Deserializes from object.
- Parameters
-
| json | Json object to retrieve data from. |
Definition at line 125 of file GUI.cpp.
◆ 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 97 of file GUI.hpp.
◆ m_update
| sol::function galaxy::components::GUI::m_update |
The update function belonging to the lua table.
Definition at line 102 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