1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:57:35 +00:00

LibGUI: Split HorizontalSlider to separate header

This patch splits HorizontalSlider to separate header so it can be used
as a component in .gml files with new GML compiler.
This commit is contained in:
tetektoza 2023-10-03 20:59:23 +02:00 committed by Tim Schumacher
parent f47a14b9d6
commit 9deaa74ad6
7 changed files with 32 additions and 13 deletions

View file

@ -0,0 +1,27 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGUI/Slider.h>
namespace GUI {
class HorizontalSlider final : public Slider {
C_OBJECT(HorizontalSlider);
public:
virtual ~HorizontalSlider() override = default;
private:
HorizontalSlider()
: Slider(Orientation::Horizontal)
{
}
};
}

View file

@ -6,6 +6,7 @@
*/
#include <AK/StdLibExtras.h>
#include <LibGUI/HorizontalSlider.h>
#include <LibGUI/Painter.h>
#include <LibGUI/Slider.h>
#include <LibGfx/Palette.h>

View file

@ -82,17 +82,4 @@ private:
}
};
class HorizontalSlider final : public Slider {
C_OBJECT(HorizontalSlider);
public:
virtual ~HorizontalSlider() override = default;
private:
HorizontalSlider()
: Slider(Orientation::Horizontal)
{
}
};
}