@@ -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>
-class Bitmap;
@@ -29,10 +29,7 @@
#include <AK/Function.h>
#include <AK/String.h>
-class Font;
struct Metadata {
String path;
@@ -29,10 +29,6 @@
#include <LibGfx/TextAlignment.h>
#include <LibGUI/Frame.h>
class Label : public Frame {
@@ -31,10 +31,7 @@
#include <AK/NonnullRefPtr.h>
#include <LibGUI/MenuItem.h>
@@ -31,13 +31,10 @@
#include <AK/HashTable.h>
#include <AK/RefCounted.h>
-#include <LibGfx/TextAlignment.h>
#include <LibGUI/ModelIndex.h>
#include <LibGUI/Variant.h>
+#include <LibGfx/TextAlignment.h>
@@ -42,10 +42,6 @@
extern WidgetClassRegistration registration_##class_name; \
WidgetClassRegistration registration_##class_name(#class_name, [](Widget* parent) { return class_name::construct(parent); });
class Widget;
}
@@ -29,12 +29,9 @@
#include <LibGfx/Font.h>
#include <LibHTML/CSS/StyleValue.h>
-class Color;
class StyleProperties : public RefCounted<StyleProperties> {
public:
StyleProperties();
@@ -32,18 +32,11 @@
#include <AK/URL.h>
#include <AK/WeakPtr.h>
#include <LibHTML/CSS/StyleResolver.h>
#include <LibHTML/CSS/StyleSheet.h>
#include <LibHTML/DOM/ParentNode.h>
-class Timer;
class Frame;
class HTMLBodyElement;
class HTMLHtmlElement;
struct FontSelector {
String family;
@@ -30,11 +30,7 @@
#include <AK/Weakable.h>
#include <LibGfx/Rect.h>
-class CharacterBitmap;
-class Painter;
namespace WindowServer {
@@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <AK/Badge.h>
#include <AK/SharedBuffer.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/SystemTheme.h>
@@ -30,6 +30,7 @@
#include "Screen.h"
#include "Window.h"
#include "WindowManager.h"
+#include <LibCore/Timer.h>
#include <LibGfx/Painter.h>
#include <LibThread/BackgroundAction.h>
@@ -29,13 +29,8 @@
#include <AK/RefPtr.h>
-#include <LibCore/Timer.h>
-#include <LibGfx/Bitmap.h>
#include <LibGfx/DisjointRectSet.h>
@@ -30,15 +30,12 @@
#include <WindowServer/Cursor.h>
#include <WindowServer/MenuItem.h>
#include <WindowServer/Window.h>
class ClientConnection;
@@ -28,12 +28,9 @@
class Menu;
@@ -25,6 +25,7 @@
#include <AK/FileSystemPath.h>
#include <AK/QuickSort.h>
#include <LibCore/DirIterator.h>
@@ -31,6 +31,7 @@
#include "WindowClientEndpoint.h"
@@ -414,4 +415,9 @@ void Window::set_tiled(WindowTileType tiled)
Core::EventLoop::current().post_event(*this, make<ResizeEvent>(old_rect, m_rect));
+void Window::detach_client(Badge<ClientConnection>)
+{
+ m_client = nullptr;
+}
+
@@ -223,7 +223,7 @@ public:
Window* m_next { nullptr };
Window* m_prev { nullptr };
- void detach_client(Badge<ClientConnection>) { m_client = nullptr; }
+ void detach_client(Badge<ClientConnection>);
private:
void handle_mouse_event(const MouseEvent&);
#include <LibGfx/CharacterBitmap.h>
@@ -26,13 +26,9 @@
#pragma once
-#include <AK/Badge.h>
+#include <AK/Forward.h>
#include <AK/NonnullOwnPtrVector.h>
-class Rect;
#include <AK/Vector.h>
class KeyEvent;