#pragma once #include "Widget.hpp" #include "PropMacros.hpp" namespace Raven { class Label : public Widget { private: std::string m_text; public: Label(std::string text) : Widget() , m_text(text) {} ~Label() {} std::string &get_text() { return m_text; } void set_text(std::string text) { m_text = text; wants_full_repaint(); } protected: void on_paint(); void on_init(); }; }