mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
26 lines
578 B
C++
26 lines
578 B
C++
|
#pragma once
|
||
|
|
||
|
#include <gtkmm/box.h>
|
||
|
#include <gtkmm/image.h>
|
||
|
|
||
|
#include "ALabel.hpp"
|
||
|
|
||
|
namespace waybar {
|
||
|
|
||
|
class AIconLabel : public ALabel {
|
||
|
public:
|
||
|
AIconLabel(const Json::Value &config, const std::string &name, const std::string &id,
|
||
|
const std::string &format, uint16_t interval = 0, bool ellipsize = false,
|
||
|
bool enable_click = false, bool enable_scroll = false);
|
||
|
virtual ~AIconLabel() = default;
|
||
|
virtual auto update() -> void;
|
||
|
|
||
|
protected:
|
||
|
Gtk::Image image_;
|
||
|
Gtk::Box box_;
|
||
|
|
||
|
bool iconEnabled() const;
|
||
|
};
|
||
|
|
||
|
} // namespace waybar
|