raven/src/Label.hpp
2022-06-11 15:52:23 +03:00

24 lines
373 B
C++

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