mirror of
https://github.com/polybar/polybar.git
synced 2024-10-27 05:23:39 -04:00
24 lines
453 B
C++
24 lines
453 B
C++
#pragma once
|
|
|
|
#include "common.hpp"
|
|
#include "drawtypes/label.hpp"
|
|
#include "utils/mixins.hpp"
|
|
|
|
LEMONBUDDY_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>;
|
|
}
|
|
|
|
LEMONBUDDY_NS_END
|