21#include <SFML/Graphics/Font.hpp>
58 Font(
const std::uint32_t entityId);
70 Font(
const std::string &name,
const std::string &path);
78 Font(
const std::string &name,
const std::string &path,
const unsigned int size);
87 Font(
const std::string &name,
const std::string &path,
const unsigned int size,
const std::string &application);
97 Font(
const std::string &name,
const std::string &path,
const unsigned int size,
const std::string &application,
const bool bold);
108 Font(
const std::string &name,
const std::string &path,
const unsigned int size,
const std::string &application,
const bool bold,
const bool italic);
116 Font(
const std::uint32_t entityId,
const std::string &name,
const std::string &path);
125 Font(
const std::uint32_t entityId,
const std::string &name,
const std::string &path,
const unsigned int size);
135 Font(
const std::uint32_t entityId,
const std::string &name,
const std::string &path,
const unsigned int size,
const std::string &application);
146 Font(
const std::uint32_t entityId,
const std::string &name,
const std::string &path,
const unsigned int size,
const std::string &application,
const bool bold);
158 Font(
const std::uint32_t entityId,
const std::string &name,
const std::string &path,
const unsigned int size,
const std::string &application,
const bool bold,
const bool italic);
207 const bool isBold()
const;
254 const std::string
getInfo(
const unsigned int indent = 0)
const;
282 bool _italic =
false;
283 std::string _fontName =
"";
284 std::string _fontPath =
"";
285 bool _fontInstanceSet =
false;
286 std::shared_ptr<sf::Font> _fontInstance;
287 std::string _fontApplication =
"";
288 unsigned int _fontDefaultSize = 30;
File in charge of containing the custom errors that are going to be used for custom description error...
This is the file that links the EntityNode children.
Macro definitions for logging messages with varying levels of detail and formatting.
This is the file in charge of containing the Log class (the one in charge of outputing info only when...
Manages font entities in the GUI ECS.
const std::any getFontInstance() const
Retrieves the font instance.
void setFontPath(const std::string &path)
Sets the file path of the font and loads it.
const bool isItalic() const
Checks if the font is italic.
Font()
Default constructor.
void setFontApplication(const std::string application)
Sets the application or context for the font.
void update(const GUI::ECS::Systems::Font ©)
Updates the font with properties from another font.
const bool isLoaded() const
Checks if the font instance is loaded.
const std::string getApplication() const
Retrieves the application context of the font.
void setFontName(const std::string &name)
Sets the font name.
const std::string getFontPath() const
Retrieves the file path of the font.
const std::string getFontName() const
Retrieves the font name.
GUI::ECS::Systems::Font & operator=(const GUI::ECS::Systems::Font ©)
Assignment operator.
void setItalic(const bool italic)
Sets the italic property of the font.
const unsigned int getDefaultSize() const
Retrieves the default size of the font.
const std::string getInfo(const unsigned int indent=0) const
This is a function meant for debugging purposes It will dump the current state of the variables upon ...
const bool isBold() const
Checks if the font is bold.
void setBold(const bool bold)
Sets the bold property of the font.
void setFontDefaultSize(const unsigned int size)
Sets the default size of the font.
std::ostream & operator<<(std::ostream &os, const Clock &item)
Outputs the clock's info to a stream.