mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +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
|
@ -29,33 +29,37 @@
|
|||
#include <LibGUI/GLayout.h>
|
||||
#include <LibGUI/GWidget.h>
|
||||
|
||||
class GBoxLayout : public GLayout {
|
||||
namespace GUI {
|
||||
|
||||
class BoxLayout : public Layout {
|
||||
public:
|
||||
explicit GBoxLayout(Orientation);
|
||||
virtual ~GBoxLayout() override {}
|
||||
explicit BoxLayout(Orientation);
|
||||
virtual ~BoxLayout() override {}
|
||||
|
||||
Orientation orientation() const { return m_orientation; }
|
||||
|
||||
virtual void run(GWidget&) override;
|
||||
virtual void run(Widget&) override;
|
||||
|
||||
private:
|
||||
Orientation m_orientation;
|
||||
};
|
||||
|
||||
class GVBoxLayout final : public GBoxLayout {
|
||||
class VBoxLayout final : public BoxLayout {
|
||||
public:
|
||||
explicit GVBoxLayout()
|
||||
: GBoxLayout(Orientation::Vertical)
|
||||
explicit VBoxLayout()
|
||||
: BoxLayout(Orientation::Vertical)
|
||||
{
|
||||
}
|
||||
virtual ~GVBoxLayout() override {}
|
||||
virtual ~VBoxLayout() override {}
|
||||
};
|
||||
|
||||
class GHBoxLayout final : public GBoxLayout {
|
||||
class HBoxLayout final : public BoxLayout {
|
||||
public:
|
||||
explicit GHBoxLayout()
|
||||
: GBoxLayout(Orientation::Horizontal)
|
||||
explicit HBoxLayout()
|
||||
: BoxLayout(Orientation::Horizontal)
|
||||
{
|
||||
}
|
||||
virtual ~GHBoxLayout() override {}
|
||||
virtual ~HBoxLayout() override {}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue