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

25 lines
447 B
C++
Raw Normal View History

2016-06-14 23:32:35 -04:00
#pragma once
#include "common.hpp"
#include "drawtypes/label.hpp"
#include "utils/mixins.hpp"
2016-11-19 00:22:44 -05:00
POLYBAR_NS
2016-06-14 23:32:35 -04:00
namespace drawtypes {
class iconset : public non_copyable_mixin<iconset> {
public:
2016-11-02 15:22:45 -04:00
void add(string id, icon_t&& icon);
bool has(string id);
icon_t get(string id, string fallback_id = "");
operator bool();
2016-06-14 23:32:35 -04:00
protected:
map<string, icon_t> m_icons;
};
using iconset_t = shared_ptr<iconset>;
}
2016-11-19 00:22:44 -05:00
POLYBAR_NS_END