Gio.Emblem - Classes - Gio 2.0 (original) (raw)
g GObject.GInterface GObject.GInterface Gio.Icon Gio.Icon GObject.GInterface->Gio.Icon GObject.Object GObject.Object Gio.Emblem Gio.Emblem GObject.Object->Gio.Emblem Gio.Icon->Gio.Emblem
Subclasses:
None
Methods¶
Inherited:
GObject.Object (37), Gio.Icon (6)
Structs:
class | new (icon) |
---|---|
class | new_with_origin (icon, origin) |
get_icon () | |
get_origin () |
Virtual Methods¶
Inherited:
GObject.Object (7), Gio.Icon (4)
Properties¶
Name | Type | Flags | Short Description |
---|---|---|---|
icon | GObject.Object | r/w/co | |
origin | Gio.EmblemOrigin | r/w/co |
Signals¶
Inherited:
Fields¶
Inherited:
Class Details¶
class Gio.Emblem(**kwargs)¶
Bases:
Abstract:
No
Structure:
GEmblem
is an implementation of [iface`Gio`.Icon] that supports having an emblem, which is an icon with additional properties. It can than be added to a [class`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.Icon containing the icon.
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:
- icon (Gio.Icon) – a Gio.Icon containing the icon.
- origin (Gio.EmblemOrigin) – a Gio.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.
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.
Returns:
the origin of the emblem
Return type:
Gets the origin of the emblem.
New in version 2.18.
Property Details¶
Gio.Emblem.props.icon¶
Name:
icon
Type:
Default Value:
Flags:
READABLE, WRITABLE, CONSTRUCT_ONLY
The actual icon of the emblem.
New in version 2.18.
Gio.Emblem.props.origin¶
Name:
origin
Type:
Default Value:
Flags:
READABLE, WRITABLE, CONSTRUCT_ONLY
The origin the emblem is derived from.
New in version 2.18.