galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Text.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_COMPONENTS_TEXT_HPP_
9#define GALAXY_COMPONENTS_TEXT_HPP_
10
12#include "galaxy/graphics/text/Text.hpp"
13
14namespace galaxy
15{
16 namespace components
17 {
21 class Text final : public fs::Serializable
22 {
23 public:
27 Text();
28
34 Text(const nlohmann::json& json);
35
39 Text(Text&&);
40
45
49 virtual ~Text();
50
56 [[nodiscard]]
57 nlohmann::json serialize() override;
58
64 void deserialize(const nlohmann::json& json) override;
65
66 private:
70 Text(const Text&) = delete;
71
75 Text& operator=(const Text&) = delete;
76
77 public:
81 graphics::Text m_text;
82 };
83 } // namespace components
84} // namespace galaxy
85
86#endif
String of glyphs rendered with a font.
Definition Text.hpp:22
Text & operator=(const Text &)=delete
Copy assignment operator.
Text()
Constructor.
Definition Text.cpp:16
virtual ~Text()
Destructor.
Definition Text.cpp:43
Text(const Text &)=delete
Copy constructor.
nlohmann::json serialize() override
Serializes object.
Definition Text.cpp:47
Text & operator=(Text &&)
Move assignment operator.
Definition Text.cpp:33
graphics::Text m_text
Text object.
Definition Text.hpp:81
void deserialize(const nlohmann::json &json) override
Deserializes from object.
Definition Text.cpp:65
Allows a class to be serialized.
Timer.hpp galaxy.
Definition Async.hpp:17