mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
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! :^)
This commit is contained in:
parent
2d39da5405
commit
c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue