Waybar/include/util/gtk_icon.hpp

15 lines
308 B
C++
Raw Normal View History

#pragma once
#include <gtkmm/icontheme.h>
2023-07-04 20:35:27 +00:00
#include <mutex>
#include <string>
class DefaultGtkIconThemeWrapper {
2023-07-04 20:35:27 +00:00
private:
static std::mutex default_theme_mutex;
public:
static bool has_icon(const std::string&);
static Glib::RefPtr<Gdk::Pixbuf> load_icon(const char*, int, Gtk::IconLookupFlags);
};