Gio.Emblem¶
| Subclasses: | None |
|---|
Methods¶
| Inherited: | GObject.Object (37), Gio.Icon (6) |
|---|---|
| Structs: | GObject.ObjectClass (5) |
| class | new (icon) |
| class | new_with_origin (icon, origin) |
get_icon () |
|
get_origin () |
Virtual Methods¶
| Inherited: | GObject.Object (7), Gio.Icon (3) |
|---|
Properties¶
| Name | Type | Flags | Short Description |
|---|---|---|---|
icon |
GObject.Object |
r/w/co | The actual icon of the emblem |
origin |
Gio.EmblemOrigin |
r/w/co | Tells which origin the emblem is derived from |
Signals¶
| Inherited: | GObject.Object (1) |
|---|
Fields¶
| Inherited: | GObject.Object (1) |
|---|
Class Details¶
-
class
Gio.Emblem(**kwargs)¶ Bases: GObject.Object,Gio.IconAbstract: No Structure: Gio.EmblemClassGio.Emblemis an implementation ofGio.Iconthat supports having an emblem, which is an icon with additional properties. It can than be added to aGio.EmblemedIcon.Currently, only metainformation about the emblem’s origin is supported. More may be added in the future.
-
classmethod
new(icon)[source]¶ Parameters: icon ( Gio.Icon) – aGio.Iconcontaining the icon.Returns: a new Gio.Emblem.Return type: Gio.EmblemCreates a new emblem for icon.
New in version 2.18.
-
classmethod
new_with_origin(icon, origin)[source]¶ Parameters: - icon (
Gio.Icon) – aGio.Iconcontaining the icon. - origin (
Gio.EmblemOrigin) – aGio.EmblemOriginenum defining the emblem’s origin
Returns: a new
Gio.Emblem.Return type: Creates a new emblem for icon.
New in version 2.18.
- icon (
-
get_icon()[source]¶ Returns: a Gio.Icon. The returned object belongs to the emblem and should not be modified or freed.Return type: Gio.IconGives back the icon from self.
New in version 2.18.
-
get_origin()[source]¶ Returns: the origin of the emblem Return type: Gio.EmblemOriginGets the origin of the emblem.
New in version 2.18.
-
classmethod
Property Details¶
-
Gio.Emblem.props.icon¶ Name: iconType: GObject.ObjectDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe actual icon of the emblem
-
Gio.Emblem.props.origin¶ Name: originType: Gio.EmblemOriginDefault Value: Gio.EmblemOrigin.UNKNOWNFlags: READABLE,WRITABLE,CONSTRUCT_ONLYTells which origin the emblem is derived from