AppStreamCompose.IconPolicy

g AppStreamCompose.IconPolicy AppStreamCompose.IconPolicy GObject.Object GObject.Object GObject.Object->AppStreamCompose.IconPolicy

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

from_string (serialized_policy)

set_policy (icon_size, icon_scale, state)

to_string ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class AppStreamCompose.IconPolicy(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

AppStreamCompose.IconPolicyClass

classmethod new()
Return type:

AppStreamCompose.IconPolicy

Creates a new AppStreamCompose.IconPolicy.

from_string(serialized_policy)
Parameters:

serialized_policy (str) – A policy string as returned by AppStreamCompose.IconPolicy.to_string

Raises:

GLib.Error

Return type:

bool

Loads the icon policy from a textual representation.

set_policy(icon_size, icon_scale, state)
Parameters:

Sets a designated state for an icon of the given size.

to_string()
Returns:

The icon policy serialized into a string. Free with GLib.free()

Return type:

str

Converts the current icon policy into a textual representation.