mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +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
|
@ -28,13 +28,15 @@
|
|||
|
||||
#include <LibGUI/GWidget.h>
|
||||
|
||||
class GLabel;
|
||||
class GResizeCorner;
|
||||
namespace GUI {
|
||||
|
||||
class GStatusBar : public GWidget {
|
||||
C_OBJECT(GStatusBar)
|
||||
class Label;
|
||||
class ResizeCorner;
|
||||
|
||||
class StatusBar : public Widget {
|
||||
C_OBJECT(StatusBar)
|
||||
public:
|
||||
virtual ~GStatusBar() override;
|
||||
virtual ~StatusBar() override;
|
||||
|
||||
String text() const;
|
||||
String text(int index) const;
|
||||
|
@ -42,12 +44,14 @@ public:
|
|||
void set_text(int index, const StringView&);
|
||||
|
||||
protected:
|
||||
explicit GStatusBar(GWidget* parent);
|
||||
explicit GStatusBar(int label_count, GWidget* parent);
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
explicit StatusBar(Widget* parent);
|
||||
explicit StatusBar(int label_count, Widget* parent);
|
||||
virtual void paint_event(PaintEvent&) override;
|
||||
|
||||
private:
|
||||
NonnullRefPtr<GLabel> create_label();
|
||||
NonnullRefPtrVector<GLabel> m_labels;
|
||||
RefPtr<GResizeCorner> m_corner;
|
||||
NonnullRefPtr<Label> create_label();
|
||||
NonnullRefPtrVector<Label> m_labels;
|
||||
RefPtr<ResizeCorner> m_corner;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue