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.LoadableIcon- Abstract: - 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) – a- GLib.Bytes.- Returns: - a - Gio.Iconfor the given bytes, or- Noneon 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.Bytesassociated with the given self.- New in version 2.38. 
 
- 
classmethod 
Property Details¶
- 
Gio.BytesIcon.props.bytes¶
- Name: - bytes- Type: - GLib.Bytes- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The bytes containing the icon.