mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
21 lines
411 B
C++
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;
|
|
};
|
|
|