AppStream.Image¶
- 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.Image(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.Image
.
- get_kind()¶
- Returns:
- Return type:
Gets the image kind.
- get_locale()¶
- Returns:
Locale string
- Return type:
Get locale for this image.
New in version 0.9.5.
- get_url()¶
- Returns:
URL
- Return type:
Gets the full qualified URL for the image, usually pointing at some mirror.
- set_kind(kind)¶
- Parameters:
kind (
AppStream.ImageKind
) – theAppStream.ImageKind
, e.g.AppStream.ImageKind.THUMBNAIL
.
Sets the image kind.
- set_locale(locale)¶
- Parameters:
locale (
str
) – the BCP47 locale string.
Sets the locale for this image.
New in version 0.9.5.
- set_scale(scale)¶
- Parameters:
scale (
int
) – the integer scale factor, e.g. 2
Sets the image scale factor.