mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
22 lines
453 B
C++
22 lines
453 B
C++
#pragma once
|
|
|
|
#include "Widget.h"
|
|
#include <AK/String.h>
|
|
|
|
class Label final : public Widget {
|
|
public:
|
|
explicit Label(Widget* parent);
|
|
virtual ~Label() override;
|
|
|
|
String text() const { return m_text; }
|
|
void setText(String&&);
|
|
|
|
private:
|
|
virtual void paintEvent(PaintEvent&) override;
|
|
virtual void mouseMoveEvent(MouseEvent&) override;
|
|
|
|
virtual const char* className() const override { return "Label"; }
|
|
|
|
String m_text;
|
|
};
|
|
|