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