1.7 <GBytesIcon>

Class: <GBytesIcon>

It derives from <GObject>.

<GBytesIcon> specifies an image held in memory in a common format (usually PNG) to be used as icon.

Properties

Property: bytes-icon:bytes self

The bytes containing the icon.

Its value is a <GBytes>, or #f.

It can only be set when the object is made, with #:bytes.

Procedures

Method: bytes-icon:get-bytes self ⇒ %return
Method: get-bytes self ⇒ %return

Gets the <GBytes> associated with the given self.

self

Passed: a <GBytesIcon>.

a <GIcon>.

%return

Returned: a <GBytes>.

a <GBytes>.

Procedure: bytes-icon:new bytes ⇒ %return

Creates a new icon for a bytes.

This cannot fail, but loading and interpreting the bytes may fail later on (for example, if loadable-icon:load is called) if the image is invalid.

bytes

Passed: a <GBytes>.

a <GBytes>.

%return

Returned: a <GBytesIcon>.

a <GIcon> for the given bytes.