Gio.BytesIcon

g GObject.GInterface GObject.GInterface Gio.Icon Gio.Icon GObject.GInterface->Gio.Icon Gio.LoadableIcon Gio.LoadableIcon GObject.GInterface->Gio.LoadableIcon GObject.Object GObject.Object Gio.BytesIcon Gio.BytesIcon GObject.Object->Gio.BytesIcon Gio.Icon->Gio.BytesIcon Gio.LoadableIcon->Gio.BytesIcon

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.Icon (6), Gio.LoadableIcon (3)

Structs:

GObject.ObjectClass (5)

class

new (bytes)

get_bytes ()

Virtual Methods

Inherited:

GObject.Object (7), Gio.Icon (4), Gio.LoadableIcon (3)

Properties

Name

Type

Flags

Short Description

bytes

GLib.Bytes

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gio.BytesIcon(**kwargs)
Bases:

GObject.Object, Gio.Icon, Gio.LoadableIcon

Abstract:

No

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

New in version 2.38.

classmethod new(bytes)[source]
Parameters:

bytes (GLib.Bytes) – a GLib.Bytes.

Returns:

a Gio.Icon for the given bytes.

Return type:

Gio.BytesIcon

Creates a new icon for a bytes.

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

New in version 2.38.

get_bytes()[source]
Returns:

a GLib.Bytes.

Return type:

GLib.Bytes

Gets the GLib.Bytes associated with the given self.

New in version 2.38.

Property Details

Gio.BytesIcon.props.bytes
Name:

bytes

Type:

GLib.Bytes

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The bytes containing the icon.