1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00
polybar/include/drawtypes/iconset.hpp
patrick96 0ab9fcdc38 refactor: Remove all mentions of icon_t
Is exactly the same label_t
2019-04-08 09:01:48 +02:00

26 lines
518 B
C++

#pragma once
#include <map>
#include "common.hpp"
#include "drawtypes/label.hpp"
#include "utils/mixins.hpp"
POLYBAR_NS
namespace drawtypes {
class iconset : public non_copyable_mixin<iconset> {
public:
void add(string id, label_t&& icon);
bool has(const string& id);
label_t get(const string& id, const string& fallback_id = "", bool fuzzy_match = false);
operator bool();
protected:
std::map<string, label_t> m_icons;
};
using iconset_t = shared_ptr<iconset>;
}
POLYBAR_NS_END