mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibGfx: Replace manual forward declarations with <LibGfx/Forward.h>
This commit is contained in:
parent
34c7322d77
commit
a368cf7d51
23 changed files with 30 additions and 83 deletions
|
@ -52,6 +52,7 @@ class Socket;
|
|||
class SocketAddress;
|
||||
class TCPServer;
|
||||
class TCPSocket;
|
||||
class Timer;
|
||||
class TimerEvent;
|
||||
class UdpServer;
|
||||
class UdpSocket;
|
||||
|
|
|
@ -29,19 +29,10 @@
|
|||
#include <AK/Badge.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <LibCore/Forward.h>
|
||||
#include <LibGUI/Shortcut.h>
|
||||
|
||||
namespace AK {
|
||||
class SharedBuffer;
|
||||
}
|
||||
namespace Core {
|
||||
class EventLoop;
|
||||
}
|
||||
namespace Gfx {
|
||||
class Palette;
|
||||
class Point;
|
||||
}
|
||||
#include <LibGfx/Forward.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
namespace GUI {
|
||||
class Action;
|
||||
|
|
|
@ -28,10 +28,7 @@
|
|||
|
||||
#include <LibCore/EventLoop.h>
|
||||
#include <LibCore/Object.h>
|
||||
|
||||
namespace Gfx {
|
||||
class Bitmap;
|
||||
}
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
|
@ -29,10 +29,7 @@
|
|||
#include <AK/Function.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace Gfx {
|
||||
class Font;
|
||||
}
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
struct Metadata {
|
||||
String path;
|
||||
|
|
|
@ -29,10 +29,6 @@
|
|||
#include <LibGfx/TextAlignment.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
|
||||
namespace Gfx {
|
||||
class Bitmap;
|
||||
}
|
||||
|
||||
namespace GUI {
|
||||
|
||||
class Label : public Frame {
|
||||
|
|
|
@ -31,10 +31,7 @@
|
|||
#include <AK/NonnullRefPtr.h>
|
||||
#include <LibCore/Object.h>
|
||||
#include <LibGUI/MenuItem.h>
|
||||
|
||||
namespace Gfx {
|
||||
class Point;
|
||||
}
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
|
@ -31,13 +31,10 @@
|
|||
#include <AK/HashTable.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibGfx/TextAlignment.h>
|
||||
#include <LibGUI/ModelIndex.h>
|
||||
#include <LibGUI/Variant.h>
|
||||
|
||||
namespace Gfx {
|
||||
class Font;
|
||||
}
|
||||
#include <LibGfx/Forward.h>
|
||||
#include <LibGfx/TextAlignment.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
|
|
@ -42,10 +42,6 @@
|
|||
extern WidgetClassRegistration registration_##class_name; \
|
||||
WidgetClassRegistration registration_##class_name(#class_name, [](Widget* parent) { return class_name::construct(parent); });
|
||||
|
||||
namespace Gfx {
|
||||
class Bitmap;
|
||||
}
|
||||
|
||||
namespace GUI {
|
||||
class Widget;
|
||||
}
|
||||
|
|
|
@ -29,12 +29,9 @@
|
|||
#include <AK/HashMap.h>
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
#include <LibHTML/CSS/StyleValue.h>
|
||||
|
||||
namespace Gfx {
|
||||
class Color;
|
||||
}
|
||||
|
||||
class StyleProperties : public RefCounted<StyleProperties> {
|
||||
public:
|
||||
StyleProperties();
|
||||
|
|
|
@ -32,18 +32,11 @@
|
|||
#include <AK/String.h>
|
||||
#include <AK/URL.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <LibCore/Forward.h>
|
||||
#include <LibHTML/CSS/StyleResolver.h>
|
||||
#include <LibHTML/CSS/StyleSheet.h>
|
||||
#include <LibHTML/DOM/ParentNode.h>
|
||||
|
||||
namespace Core {
|
||||
class Timer;
|
||||
}
|
||||
|
||||
namespace Gfx {
|
||||
class Palette;
|
||||
}
|
||||
|
||||
class Frame;
|
||||
class HTMLBodyElement;
|
||||
class HTMLHtmlElement;
|
||||
|
|
|
@ -28,10 +28,7 @@
|
|||
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace Gfx {
|
||||
class Font;
|
||||
}
|
||||
#include <LibGfx/Forward.h>
|
||||
|
||||
struct FontSelector {
|
||||
String family;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue