raven/src/Label.hpp

26 lines
399 B
C++
Raw Normal View History

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