mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 17:35:07 +00:00

These widgets attach to a processor parameter and keep the two sides in sync. They will become very useful for smart processor interfaces.
25 lines
588 B
C++
25 lines
588 B
C++
/*
|
|
* Copyright (c) 2021, kleines Filmröllchen <malu.bertsch@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "WidgetWithLabel.h"
|
|
#include <LibDSP/ProcessorParameter.h>
|
|
#include <LibGUI/Label.h>
|
|
#include <LibGUI/Slider.h>
|
|
#include <LibGfx/Orientation.h>
|
|
|
|
class ProcessorParameterSlider
|
|
: public GUI::Slider
|
|
, public WidgetWithLabel {
|
|
C_OBJECT(ProcessorParameterSlider);
|
|
|
|
public:
|
|
ProcessorParameterSlider(Orientation, LibDSP::ProcessorRangeParameter&, RefPtr<GUI::Label>);
|
|
|
|
protected:
|
|
LibDSP::ProcessorRangeParameter& m_parameter;
|
|
};
|