waybar/include/ALabel.hpp

20 lines
335 B
C++
Raw Normal View History

#pragma once
#include <json/json.h>
#include "IModule.hpp"
namespace waybar {
class ALabel : public IModule {
public:
2018-08-20 14:50:45 +02:00
ALabel(const Json::Value&);
2018-08-18 15:05:18 +02:00
virtual ~ALabel() = default;
virtual auto update() -> void;
virtual operator Gtk::Widget &();
protected:
Gtk::Label label_;
2018-08-20 14:50:45 +02:00
const Json::Value& config_;
};
}