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:
parent
2e6ab58117
commit
2143da6434
115 changed files with 220 additions and 338 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue