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:
Andreas Kling 2020-02-02 15:07:41 +01:00
commit c5bd9d4ed1
Notes: sideshowbarker 2024-07-19 09:41:33 +09:00
337 changed files with 5400 additions and 4816 deletions

View file

@ -28,25 +28,27 @@
#include <LibHTML/Layout/LayoutReplaced.h>
class GWidget;
namespace GUI {
class Widget;
}
class LayoutWidget : public LayoutReplaced {
public:
LayoutWidget(const Element&, GWidget&);
LayoutWidget(const Element&, GUI::Widget&);
virtual ~LayoutWidget() override;
virtual void layout() override;
virtual void render(RenderingContext&) override;
GWidget& widget() { return m_widget; }
const GWidget& widget() const { return m_widget; }
GUI::Widget& widget() { return m_widget; }
const GUI::Widget& widget() const { return m_widget; }
virtual bool is_widget() const final { return true; }
private:
virtual const char* class_name() const override { return "LayoutWidget"; }
NonnullRefPtr<GWidget> m_widget;
NonnullRefPtr<GUI::Widget> m_widget;
};
template<>