ladybird/LibGUI/GLabel.h
2019-01-21 00:54:35 +01:00

21 lines
411 B
C++

#pragma once
#include "GWidget.h"
#include <AK/AKString.h>
class GLabel final : public GWidget {
public:
explicit GLabel(GWidget* parent);
virtual ~GLabel() override;
String text() const { return m_text; }
void set_text(String&&);
private:
virtual void paint_event(GPaintEvent&) override;
virtual const char* class_name() const override { return "GLabel"; }
String m_text;
};