raven/src/Label.hpp

25 lines
373 B
C++
Raw Normal View History

#pragma once
#include "Widget.hpp"
namespace Raven {
class Label : public Widget {
public:
Label(std::string text)
2022-05-10 16:17:12 +03:00
: Widget(WidgetType::Label)
, m_text(text) {}
~Label() {}
void set_text(std::string text);
2022-05-15 10:54:30 +03:00
std::string &text() { return m_text; }
protected:
void on_paint();
void on_init();
2022-05-15 10:54:30 +03:00
private:
std::string m_text;
};
}