diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-20 04:49:48 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-20 04:49:48 +0100 |
commit | b91479d9b90e1c6dd33c83d0a2cfc6ba94d1464e (patch) | |
tree | c837667235d77a12699fecf73c991cda69bd8dd7 /LibGUI/GLabel.h | |
parent | a026da47e7a7c6e072e068be6b66d3c76962cedf (diff) | |
download | serenity-b91479d9b90e1c6dd33c83d0a2cfc6ba94d1464e.zip |
Rename all the LibGUI classes to GClassName.
Diffstat (limited to 'LibGUI/GLabel.h')
-rw-r--r-- | LibGUI/GLabel.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/LibGUI/GLabel.h b/LibGUI/GLabel.h new file mode 100644 index 0000000000..fe71b7655f --- /dev/null +++ b/LibGUI/GLabel.h @@ -0,0 +1,22 @@ +#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 setText(String&&); + +private: + virtual void paintEvent(GPaintEvent&) override; + virtual void mouseMoveEvent(GMouseEvent&) override; + + virtual const char* class_name() const override { return "GLabel"; } + + String m_text; +}; + |