Top |
GBytesIcon specifies an image held in memory in a common format (usually png) to be used as icon.
GIcon *
g_bytes_icon_new (GBytes *bytes
);
Creates a new icon for a bytes.
This cannot fail, but loading and interpreting the bytes may fail later on
(for example, if g_loadable_icon_load()
is called) if the image is invalid.
Since: 2.38
GBytes *
g_bytes_icon_get_bytes (GBytesIcon *icon
);
Gets the GBytes associated with the given icon
.
Since: 2.38
typedef struct _GBytesIcon GBytesIcon;
Gets an icon for a GBytes. Implements GLoadableIcon.