diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-16 09:17:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-16 09:41:56 +0100 |
commit | 2143da6434d3ee0d0e33c57533387b9f0f5fce30 (patch) | |
tree | 8e17e9def4c4fe384f9a19dfc63c7d79c17908b9 /Libraries/LibGUI/Widget.h | |
parent | 2e6ab5811720a41825e2f2a22b2ec3027e361099 (diff) | |
download | serenity-2143da6434d3ee0d0e33c57533387b9f0f5fce30.zip |
LibGUI: Add forwarding header
This patch adds <LibGUI/Forward.h> and uses it a bunch.
It also dragged various header dependency reduction changes into it.
Diffstat (limited to 'Libraries/LibGUI/Widget.h')
-rw-r--r-- | Libraries/LibGUI/Widget.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Libraries/LibGUI/Widget.h b/Libraries/LibGUI/Widget.h index 536d554424..4cd76ef0fd 100644 --- a/Libraries/LibGUI/Widget.h +++ b/Libraries/LibGUI/Widget.h @@ -26,11 +26,10 @@ #pragma once -#include <AK/Badge.h> -#include <AK/HashMap.h> #include <AK/String.h> #include <LibCore/Object.h> #include <LibGUI/Event.h> +#include <LibGUI/Forward.h> #include <LibGfx/Color.h> #include <LibGfx/Forward.h> #include <LibGfx/Orientation.h> @@ -40,10 +39,6 @@ extern WidgetClassRegistration registration_##class_name; \ WidgetClassRegistration registration_##class_name(#class_name, [](Widget* parent) { return class_name::construct(parent); }); -namespace GUI { -class Widget; -} - template<> inline bool Core::is<GUI::Widget>(const Core::Object& object) { @@ -52,11 +47,6 @@ inline bool Core::is<GUI::Widget>(const Core::Object& object) namespace GUI { -class Action; -class Layout; -class Menu; -class Window; - enum class SizePolicy { Fixed, Fill @@ -81,8 +71,6 @@ enum class VerticalDirection { Down }; -class Widget; - class WidgetClassRegistration { AK_MAKE_NONCOPYABLE(WidgetClassRegistration) AK_MAKE_NONMOVABLE(WidgetClassRegistration) |