Gio.BytesIcon - Classes - Gio 2.0 (original) (raw)
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:
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:
Fields¶
Inherited:
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 givenbytes.
Return type:
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.
Returns:
a GLib.Bytes.
Return type:
Gets the GLib.Bytes associated with the given self.
New in version 2.38.
Property Details¶
Gio.BytesIcon.props.bytes¶
Name:
bytes
Type:
Default Value:
Flags:
READABLE, WRITABLE, CONSTRUCT_ONLY
The bytes containing the icon.