Emblem#
Superclasses: Object
Implemented Interfaces: Icon
GEmblem
is an implementation of Icon
that supports
having an emblem, which is an icon with additional properties.
It can than be added to a EmblemedIcon
.
Currently, only metainformation about the emblem’s origin is supported. More may be added in the future.
Constructors#
- class Emblem
- classmethod new(icon: Icon) Emblem #
Creates a new emblem for
icon
.Added in version 2.18.
- Parameters:
icon – a GIcon containing the icon.
- classmethod new_with_origin(icon: Icon, origin: EmblemOrigin) Emblem #
Creates a new emblem for
icon
.Added in version 2.18.
- Parameters:
icon – a GIcon containing the icon.
origin – a GEmblemOrigin enum defining the emblem’s origin
Methods#
- class Emblem
-
- get_origin() EmblemOrigin #
Gets the origin of the emblem.
Added in version 2.18.
Properties#
- class Emblem
-
- props.origin: EmblemOrigin#
The type of the None singleton.
Added in version 2.18.