AppStream.Icon¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.Icon(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.Icon.
- get_filename()¶
- Returns:
The absolute path for the icon on disk. This is only set for icons of kind
AppStream.IconKind.LOCALorAppStream.IconKind.CACHED.- Return type:
- get_kind()¶
- Returns:
- Return type:
Gets the icon kind.
- get_name()¶
- Returns:
the stock name of the icon. In case the icon is not of kind “stock”, the basename of the icon filename or URL is returned.
- Return type:
- get_url()¶
- Returns:
the URL
- Return type:
Gets the icon URL, pointing at a remote location. HTTPS and FTP urls are allowed. This property is only set for icons of type
AppStream.IconKind.REMOTE
- set_filename(filename)¶
- Parameters:
filename (
str) – the new icon URL.
Sets the icon absolute filename.
- set_kind(kind)¶
- Parameters:
kind (
AppStream.IconKind) – theAppStream.IconKind, e.g.AppStream.IconKind.CACHED.
Sets the icon kind.
- set_name(name)¶
- Parameters:
name (
str) – the icon stock name, e.g. “gwenview”
Sets the stock name or basename to use for the icon.