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.IconAbstract: No Structure: Gio.EmblemedIconClassGio.EmblemedIconis an implementation ofGio.Iconthat supports adding an emblem to an icon. Adding multiple emblems to an icon is ensured viaGio.EmblemedIcon.add_emblem().Note that
Gio.EmblemedIconallows no control over the position of the emblems. See alsoGio.Emblemfor more information.-
classmethod
new(icon, emblem)[source]¶ Parameters: - icon (
Gio.Icon) – aGio.Icon - emblem (
Gio.EmblemorNone) – aGio.Emblem, orNone
Returns: a new
Gio.IconReturn 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.EmblemAdds emblem to the
GLib.ListofGio.Emblems.New in version 2.18.
-
get_emblems()[source]¶ Returns: a GLib.ListofGio.Emblemsthat is owned by selfReturn type: [ Gio.Emblem]Gets the list of emblems for the icon.
New in version 2.18.
-
classmethod