mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
yes
This commit is contained in:
26
runtime/Includes/Graphics/Text.h
git.filemode.normal_file
26
runtime/Includes/Graphics/Text.h
git.filemode.normal_file
@@ -0,0 +1,26 @@
|
||||
#ifndef __MLX_TEXT__
|
||||
#define __MLX_TEXT__
|
||||
|
||||
#include <Graphics/Font.h>
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class Text
|
||||
{
|
||||
public:
|
||||
Text(const std::string& text, std::shared_ptr<Font> font);
|
||||
|
||||
[[nodiscard]] inline const std::string& GetText() const { return m_text; }
|
||||
[[nodiscard]] inline std::shared_ptr<Font> GetFont() const { return p_font; }
|
||||
[[nodiscard]] MLX_FORCEINLINE std::uint32_t GetColor() const noexcept { return m_color; }
|
||||
|
||||
~Text();
|
||||
|
||||
private:
|
||||
std::shared_ptr<Font> p_font;
|
||||
std::string m_text;
|
||||
std::uint32_t m_color;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user