mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(modules): generic label module to allow max-length on all labels
This commit is contained in:
19
include/ALabel.hpp
Normal file
19
include/ALabel.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <json/json.h>
|
||||
#include "IModule.hpp"
|
||||
|
||||
namespace waybar {
|
||||
|
||||
class ALabel : public IModule {
|
||||
public:
|
||||
ALabel(Json::Value);
|
||||
virtual ~ALabel();
|
||||
virtual auto update() -> void;
|
||||
virtual operator Gtk::Widget &();
|
||||
protected:
|
||||
Gtk::Label label_;
|
||||
Json::Value config_;
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user