#ifndef ICON_H
#define ICON_H
#include "../ui/icons.h"
#ifdef __cplusplus
extern "C" {
#endif
#if GTK_MAJOR_VERSION >=
3 &&
GTK_MINOR_VERSION >=
10
#define UI_SUPPORTS_SCALE
#endif
struct UiIcon {
#if GTK_MAJOR_VERSION >=
4
GtkIconPaintable *info;
#else
GtkIconInfo *info;
#endif
GdkPixbuf *pixbuf;
};
struct UiImage {
GdkPixbuf *pixbuf;
};
void ui_image_init(
void);
GdkPixbuf* ui_get_image(
const char *name);
GdkPixbuf* ui_icon_pixbuf(UiIcon *icon);
#ifdef __cplusplus
}
#endif
#endif