gio.EmblemedIcon
gio.EmblemedIcon — Icon with emblems.
Synopsis
class gio.EmblemedIcon(gobject.GObject, gio.Icon): |
Description
The gio.EmblemedIcon
class is an implementation of gio.Icon
that supports adding an emblem to an icon. Adding multiple emblems to an icon is ensured via
gio.EmblemedIcon.add_emblem
().
Note that
gio.EmblemedIcon
allows no control over the position of the emblems. See also
gio.Emblem
for more information.
Constructor
gio.EmblemedIcon(icon
, emblem
)
| a
gio.Icon .
|
| a
gio.Emblem .
|
Returns : | a new
gio.Icon .
|
Creates a new gio.Icon
for icon with the emblem emblem.
Methods
gio.EmblemedIcon.add_emblem
def add_emblem(emblem
)
| a
gio.Emblem
|
The add_emblem
() method adds emblem to the
list of gio.Emblem
s.
gio.EmblemedIcon.get_icon
def get_icon()
Returns : | a
gio.Icon
that is owned by emblemed.
|
The get_icon
() method gets the main icon for emblemed.