Gio.Emblem¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The actual icon of the emblem |
||
r/w/co |
Tells which origin the emblem is derived from |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gio.Emblem(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gio.Emblem
is an implementation ofGio.Icon
that 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:
- Returns:
a new
Gio.Emblem
.- Return type:
Creates a new emblem for icon.
New in version 2.18.
- classmethod new_with_origin(icon, origin)[source]¶
- Parameters:
origin (
Gio.EmblemOrigin
) – aGio.EmblemOrigin
enum defining the emblem’s origin
- Returns:
a new
Gio.Emblem
.- Return type:
Creates a new emblem for icon.
New in version 2.18.
- get_icon()[source]¶
- Returns:
a
Gio.Icon
. The returned object belongs to the emblem and should not be modified or freed.- Return type:
Gives back the icon from self.
New in version 2.18.
Property Details¶
- Gio.Emblem.props.icon¶
- Name:
icon
- Type:
- Default Value:
- Flags:
The actual icon of the emblem
- Gio.Emblem.props.origin¶
- Name:
origin
- Type:
- Default Value:
- Flags:
Tells which origin the emblem is derived from