String of glyphs rendered with a font.
More...
#include <Text.hpp>
|
| Text () |
| Constructor.
|
|
| Text (const nlohmann::json &json) |
| JSON constructor.
|
|
| Text (Text &&) |
| Move constructor.
|
|
Text & | operator= (Text &&) |
| Move assignment operator.
|
|
virtual | ~Text () |
| Destructor.
|
|
nlohmann::json | serialize () override |
| Serializes object.
|
|
void | deserialize (const nlohmann::json &json) override |
| Deserializes from object.
|
|
String of glyphs rendered with a font.
Definition at line 21 of file Text.hpp.
◆ Text() [1/4]
galaxy::components::Text::Text |
( |
| ) |
|
Constructor.
Definition at line 16 of file Text.cpp.
◆ Text() [2/4]
galaxy::components::Text::Text |
( |
const nlohmann::json & | json | ) |
|
JSON constructor.
- Parameters
-
json | JSON defining object. |
Definition at line 21 of file Text.cpp.
◆ Text() [3/4]
galaxy::components::Text::Text |
( |
Text && | t | ) |
|
Move constructor.
Definition at line 27 of file Text.cpp.
◆ ~Text()
galaxy::components::Text::~Text |
( |
| ) |
|
|
virtual |
Destructor.
Definition at line 43 of file Text.cpp.
◆ Text() [4/4]
galaxy::components::Text::Text |
( |
const Text & | | ) |
|
|
privatedelete |
◆ operator=() [1/2]
Text & galaxy::components::Text::operator= |
( |
Text && | t | ) |
|
Move assignment operator.
Definition at line 33 of file Text.cpp.
◆ serialize()
nlohmann::json galaxy::components::Text::serialize |
( |
| ) |
|
|
nodiscardoverride |
Serializes object.
- Returns
- JSON object containing data to be serialized.
Definition at line 47 of file Text.cpp.
◆ deserialize()
void galaxy::components::Text::deserialize |
( |
const nlohmann::json & | json | ) |
|
|
override |
Deserializes from object.
- Parameters
-
json | Json object to retrieve data from. |
Definition at line 65 of file Text.cpp.
◆ operator=() [2/2]
Text & galaxy::components::Text::operator= |
( |
const Text & | | ) |
|
|
privatedelete |
Copy assignment operator.
◆ m_text
The documentation for this class was generated from the following files: