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 (3), Gio.LoadableIcon (3) |
|---|
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.LoadableIconAbstract: No Gio.BytesIconspecifies 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) – aGLib.Bytes.Returns: a Gio.Iconfor the given bytes, orNoneon error.Return type: Gio.BytesIconCreates a new icon for a bytes.
New in version 2.38.
-
get_bytes()[source]¶ Returns: a GLib.Bytes, orNone.Return type: GLib.BytesGets the
GLib.Bytesassociated with the given self.New in version 2.38.
-
classmethod
Property Details¶
-
Gio.BytesIcon.props.bytes¶ Name: bytesType: GLib.BytesDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe bytes containing the icon.