Skip to content

Gio.EmblemedIcon

class — extends GObject.Object, Icon

GEmblemedIcon is an implementation of Icon that supports adding an emblem to an icon. Adding multiple emblems to an icon is ensured via EmblemedIcon.add_emblem.

Note that GEmblemedIcon allows no control over the position of the emblems. See also Emblem for more information.

Constructors

new

@classmethod
def new(cls, icon: Icon, emblem: Emblem | None = ...) -> EmblemedIcon

Creates a new emblemed icon for icon with the emblem emblem.

Parameters:

Methods

add_emblem

def add_emblem(self, emblem: Emblem) -> None

Adds emblem to the GLib.List of GEmblems.

Parameters:

clear_emblems

def clear_emblems(self) -> None

Removes all the emblems from icon.

get_emblems

def get_emblems(self) -> list[Emblem]

Gets the list of emblems for the icon.

get_icon

def get_icon(self) -> Icon

Gets the main icon for emblemed.

Properties

gicon

gicon: Icon  # read/write

The Icon to attach emblems to.