Enums¶
Details¶
- class AppStreamCompose.ComposeError(value)¶
Bases:
GObject.GEnumA metadata composition error.
- FAILED = 0¶
Generic failure.
- class AppStreamCompose.IconState(value)¶
Bases:
GObject.GEnumDesignated state for an icon of a given size.
- classmethod from_string(state_str)¶
- Parameters:
state_str (
str) – the string.- Returns:
- Return type:
Converts the text representation to an enumerated value.
- classmethod to_string(istate)¶
- Parameters:
istate (
AppStreamCompose.IconState) – theAppStreamCompose.IconState.- Returns:
string version of istate
- Return type:
Converts the enumerated value to an text representation.
- IGNORED = 0¶
Ignore icons of this size.
- CACHED_REMOTE = 1¶
Create cache for the icon, and provide remote link as well.
- CACHED_ONLY = 2¶
Set if the icon should be stored in an icon tarball and be cached locally.
- REMOTE_ONLY = 3¶
Set if this icon should be stored remotely and fetched on demand.
- class AppStreamCompose.ImageError(value)¶
Bases:
GObject.GEnumAn image processing error.
- FAILED = 0¶
Generic failure.
- UNSUPPORTED = 1¶
The graphic type is not supported.
- class AppStreamCompose.ImageFormat(value)¶
Bases:
GObject.GEnumFile format of an image.
- classmethod from_filename(fname)¶
- Parameters:
fname (
str) – the filename.- Returns:
a
AppStreamCompose.ImageFormatorAppStreamCompose.ImageFormat.UNKNOWNfor unknown- Return type:
Returns the image format type based on the given file’s filename.
- classmethod from_string(str)¶
- Parameters:
str (
str) – the string.- Returns:
a
AppStreamCompose.ImageFormatorAppStreamCompose.ImageFormat.UNKNOWNfor unknown- Return type:
Converts the text representation to an enumerated value.
- classmethod to_string(format)¶
- Parameters:
format (
AppStreamCompose.ImageFormat) – theAppStreamCompose.ImageFormat.- Returns:
string version of format
- Return type:
Converts the enumerated value to an text representation.
- UNKNOWN = 0¶
Unknown image format.
- PNG = 1¶
PNG format
- JXL = 2¶
JPEG-XL format
- AVIF = 3¶
AVIF format
- WEBP = 4¶
WebP format
- SVG = 5¶
SVG format
- SVGZ = 6¶
Compressed SVG format
- JPEG = 7¶
JPEG format
- GIF = 8¶
GIF format
- XPM = 9¶
XPM format