Files
palladium/include/pd/ultra/elems/text.hpp
T

24 lines
448 B
C++
Raw Normal View History

2026-03-26 21:02:10 +01:00
#pragma once
#include <pd/core/core.hpp>
#include <pd/ultra/elems/element.hpp>
namespace PD {
namespace Ultra {
class PD_API Text : public ElementBase {
public:
Text() {}
~Text() {}
void Draw(PD::Li::Drawlist& l) override;
void SetColor(const PD::Color& color) { pColor = color; }
void SetText(const std::string& text) { pText = text; }
private:
PD::Color pColor;
std::string pText;
};
} // namespace Ultra
} // namespace PD