19#include <SFML/Graphics/Color.hpp>
177 void setPosition(
const std::pair<float, float> &position);
184 void setDimension(
const std::pair<float, float> &dimension,
const std::uint32_t textSize = 40);
223 void setCallback(std::function<
void()>
callback,
const std::string &callbackName =
"Callback Function");
237 void setName(
const std::string &name);
377 const std::string
getName()
const;
407 const std::string
getInfo(
const unsigned int indent = 0)
const;
442 std::unordered_map<std::type_index, std::any>
render()
const;
454 bool _visible =
true;
455 std::string _name =
"Button";
456 std::string _application =
"Button";
457 std::string _callbackName =
"callback";
458 std::uint32_t _textSize = 40;
459 std::function<void()> _callback;
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...
This is the file that contains the class in charge of managing shapes.
This is the file that contains the class in charge of managing a sprite.
This is the file that contains a class in charge of managing a test component.
Manages shapes and their associated properties in the ECS framework.
A class that represents a text component in the GUI system. It manages font, size,...
Represents a rectangular component that can detect collisions and mouse interactions,...
A class for representing and manipulating colors using RGBA components. Inherits from EntityNode to a...
std::ostream & operator<<(std::ostream &os, const AnimationComponent &item)
Outputs the animation's info to a stream.