1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

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.
This commit is contained in:
Andreas Kling 2020-02-16 09:17:49 +01:00
parent 2e6ab58117
commit 2143da6434
115 changed files with 220 additions and 338 deletions

View file

@ -27,7 +27,6 @@
#pragma once
#include <AK/Function.h>
#include <LibCore/Timer.h>
#include <LibGUI/Widget.h>
namespace GUI {
@ -37,7 +36,7 @@ class ScrollBar final : public Widget {
public:
virtual ~ScrollBar() override;
Orientation orientation() const { return m_orientation; }
Gfx::Orientation orientation() const { return m_orientation; }
bool is_scrollable() const { return max() != min(); }
@ -101,7 +100,7 @@ private:
int m_scrub_start_value { 0 };
Gfx::Point m_scrub_origin;
Orientation m_orientation { Orientation::Vertical };
Gfx::Orientation m_orientation { Gfx::Orientation::Vertical };
Component m_hovered_component { Component::Invalid };
bool m_scrubber_in_use { false };