1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-25 13:55:47 -05:00
polybar/include/drawtypes/iconset.hpp
2016-11-19 06:26:07 +01:00

24 lines
447 B
C++

#pragma once
#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, icon_t&& icon);
bool has(string id);
icon_t get(string id, string fallback_id = "");
operator bool();
protected:
map<string, icon_t> m_icons;
};
using iconset_t = shared_ptr<iconset>;
}
POLYBAR_NS_END