AppStreamCompose.IconPolicy¶
- 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 AppStreamCompose.IconPolicy(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
Creates a new
AppStreamCompose.IconPolicy
.
- from_string(serialized_policy)¶
- Parameters:
serialized_policy (
str
) – A policy string as returned byAppStreamCompose.IconPolicy.to_string
- Raises:
- Return type:
Loads the icon policy from a textual representation.
- set_policy(icon_size, icon_scale, state)¶
- Parameters:
icon_size (
int
) – the size of the icon to set policy for (e.g. 64 for 64x64px icons)icon_scale (
int
) – the icon scale factor, e.g. 1state (
AppStreamCompose.IconState
) – the designatedAppStreamCompose.IconState
Sets a designated state for an icon of the given size.