GLoadableIcon
GLoadableIcon — Loadable Icons
|
|
Object Hierarchy
GInterface
╰── GLoadableIcon
Prerequisites
GLoadableIcon requires
GIcon and GObject.
Includes
#include <gio/gio.h>
Description
Extends the GIcon interface and adds the ability to
load icons from streams.
Types and Values
GLoadableIcon
typedef struct _GLoadableIcon GLoadableIcon;
Generic type for all kinds of icons that can be loaded
as a stream.
struct GLoadableIconIface
struct GLoadableIconIface {
GTypeInterface g_iface;
/* Virtual Table */
GInputStream * (* load) (GLoadableIcon *icon,
int size,
char **type,
GCancellable *cancellable,
GError **error);
void (* load_async) (GLoadableIcon *icon,
int size,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GInputStream * (* load_finish) (GLoadableIcon *icon,
GAsyncResult *res,
char **type,
GError **error);
};
Interface for icons that can be loaded as a stream.