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.Icon- Abstract: - No - Structure: - Gio.EmblemClass- Gio.Emblemis an implementation of- Gio.Iconthat supports having an emblem, which is an icon with additional properties. It can than be added to a- Gio.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) – a- Gio.Iconcontaining the icon.- Returns: - a new - Gio.Emblem.- Return type: - Gio.Emblem- Creates 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.Icon- Gives back the icon from self. - New in version 2.18. 
 - 
get_origin()[source]¶
- Returns: - the origin of the emblem - Return type: - Gio.EmblemOrigin- Gets the origin of the emblem. - New in version 2.18. 
 
- 
classmethod 
Property Details¶
- 
Gio.Emblem.props.icon¶
- Name: - icon- Type: - GObject.Object- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The actual icon of the emblem 
- 
Gio.Emblem.props.origin¶
- Name: - origin- Type: - Gio.EmblemOrigin- Default Value: - Gio.EmblemOrigin.UNKNOWN- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- Tells which origin the emblem is derived from