Gio.BytesIcon¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gio.BytesIcon(**kwargs)¶
- Bases:
- 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
) – aGLib.Bytes
.- Returns:
a
Gio.Icon
for the given bytes.- 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.
- get_bytes()[source]¶
- 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:
The bytes containing the icon.