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

Properties

Name Type Flags Short Description
bytes GLib.Bytes r/w/co The bytes containing the icon

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

Gio.BytesIcon 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, or None on error.
Return type:Gio.BytesIcon

Creates a new icon for a bytes.

New in version 2.38.

get_bytes()[source]
Returns:a GLib.Bytes, or None.
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.