GBytesIcon

GBytesIcon — An icon stored in memory as a GBytes

Functions

Properties

GBytes * bytes Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GBytesIcon

Implemented Interfaces

GBytesIcon implements GIcon and GLoadableIcon.

Includes

#include <gio/gio.h>

Description

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

Functions

g_bytes_icon_new ()

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.

Parameters

bytes

a GBytes.

 

Returns

a GIcon for the given bytes .

[transfer full][type GBytesIcon]

Since: 2.38


g_bytes_icon_get_bytes ()

GBytes *
g_bytes_icon_get_bytes (GBytesIcon *icon);

Gets the GBytes associated with the given icon .

Parameters

icon

a GIcon.

 

Returns

a GBytes.

[transfer none]

Since: 2.38

Types and Values

GBytesIcon

typedef struct _GBytesIcon GBytesIcon;

Gets an icon for a GBytes. Implements GLoadableIcon.

Property Details

The “bytes” property

  “bytes”                    GBytes *

The bytes containing the icon.

Owner: GBytesIcon

Flags: Read / Write / Construct Only

See Also

GIcon, GLoadableIcon, GBytes