BytesIcon.this

Creates a new icon for a bytes.

This cannot fail, but loading and interpreting the bytes may fail later on (for example, if gio.loadable_icon.LoadableIcon.load is called) if the image is invalid.

  1. this(void* ptr, Flag!"Take" take)
  2. this(glib.bytes.Bytes bytes)
    class BytesIcon

Parameters

bytes glib.bytes.Bytes

a #GBytes.

Return Value

a #GIcon for the given bytes.