summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GLabel.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 15:07:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:15:33 +0100
commitc5bd9d4ed1d80ac91d46146565127b0c185f1b43 (patch)
treeb4ee9ba5999778450f8eb4006df89110617b4a10 /Libraries/LibGUI/GLabel.h
parent2d39da5405a4527e91e853ddb1e56a539c96c6c1 (diff)
downloadserenity-c5bd9d4ed1d80ac91d46146565127b0c185f1b43.zip
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
Diffstat (limited to 'Libraries/LibGUI/GLabel.h')
-rw-r--r--Libraries/LibGUI/GLabel.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/Libraries/LibGUI/GLabel.h b/Libraries/LibGUI/GLabel.h
index ad195e5b02..7e2a4267ac 100644
--- a/Libraries/LibGUI/GLabel.h
+++ b/Libraries/LibGUI/GLabel.h
@@ -31,10 +31,12 @@
class GraphicsBitmap;
-class GLabel : public GFrame {
- C_OBJECT(GLabel)
+namespace GUI {
+
+class Label : public Frame {
+ C_OBJECT(Label)
public:
- virtual ~GLabel() override;
+ virtual ~Label() override;
String text() const { return m_text; }
void set_text(const StringView&);
@@ -52,10 +54,10 @@ public:
void size_to_fit();
protected:
- explicit GLabel(GWidget* parent = nullptr);
- GLabel(const StringView& text, GWidget* parent = nullptr);
+ explicit Label(Widget* parent = nullptr);
+ Label(const StringView& text, Widget* parent = nullptr);
- virtual void paint_event(GPaintEvent&) override;
+ virtual void paint_event(PaintEvent&) override;
private:
String m_text;
@@ -63,3 +65,5 @@ private:
TextAlignment m_text_alignment { TextAlignment::Center };
bool m_should_stretch_icon { false };
};
+
+}