Gio.EmblemedIcon¶
Subclasses: | None |
---|
Methods¶
Inherited: | GObject.Object (37), Gio.Icon (6) |
---|---|
Structs: | GObject.ObjectClass (5) |
class | new (icon, emblem) |
add_emblem (emblem) |
|
clear_emblems () |
|
get_emblems () |
|
get_icon () |
Virtual Methods¶
Inherited: | GObject.Object (7), Gio.Icon (3) |
---|
Properties¶
Name | Type | Flags | Short Description |
---|---|---|---|
gicon |
Gio.Icon |
r/w/co | The Gio.Icon to attach emblems to |
Signals¶
Inherited: | GObject.Object (1) |
---|
Class Details¶
-
class
Gio.
EmblemedIcon
(**kwargs)¶ Bases: GObject.Object
,Gio.Icon
Abstract: No Structure: Gio.EmblemedIconClass
Gio.EmblemedIcon
is an implementation ofGio.Icon
that supports adding an emblem to an icon. Adding multiple emblems to an icon is ensured viaGio.EmblemedIcon.add_emblem
().Note that
Gio.EmblemedIcon
allows no control over the position of the emblems. See alsoGio.Emblem
for more information.-
classmethod
new
(icon, emblem)[source]¶ Parameters: - icon (
Gio.Icon
) – aGio.Icon
- emblem (
Gio.Emblem
orNone
) – aGio.Emblem
, orNone
Returns: a new
Gio.Icon
Return type: Creates a new emblemed icon for icon with the emblem emblem.
New in version 2.18.
- icon (
-
add_emblem
(emblem)[source]¶ Parameters: emblem ( Gio.Emblem
) – aGio.Emblem
Adds emblem to the
GLib.List
ofGio.Emblems
.New in version 2.18.
-
get_emblems
()[source]¶ Returns: a GLib.List
ofGio.Emblems
that is owned by selfReturn type: [ Gio.Emblem
]Gets the list of emblems for the icon.
New in version 2.18.
-
classmethod