2023-10-15 14:32:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AModule.hpp"
|
|
|
|
#include "gtkmm/scale.h"
|
|
|
|
|
|
|
|
namespace waybar {
|
|
|
|
|
|
|
|
class ASlider : public AModule {
|
|
|
|
public:
|
|
|
|
ASlider(const Json::Value& config, const std::string& name, const std::string& id);
|
|
|
|
virtual void onValueChanged();
|
|
|
|
|
|
|
|
protected:
|
2024-02-27 20:17:50 +00:00
|
|
|
bool vertical_{false};
|
|
|
|
int min_{0}, max_{100}, curr_{50};
|
2023-10-15 14:32:05 +00:00
|
|
|
Gtk::Scale scale_;
|
|
|
|
};
|
|
|
|
|
2024-02-27 20:17:50 +00:00
|
|
|
} // namespace waybar
|