:right-sidebar: True EmblemedIcon =================================================================== .. currentmodule:: gi.repository.Gio .. class:: EmblemedIcon(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.Icon` ``GEmblemedIcon`` is an implementation of :obj:`~gi.repository.Gio.Icon` that supports adding an emblem to an icon. Adding multiple emblems to an icon is ensured via :obj:`~gi.repository.Gio.EmblemedIcon.add_emblem`\. Note that ``GEmblemedIcon`` allows no control over the position of the emblems. See also :obj:`~gi.repository.Gio.Emblem` for more information. Constructors ------------ .. rst-class:: interim-class .. class:: EmblemedIcon :no-index: .. classmethod:: new(icon: ~gi.repository.Gio.Icon, emblem: ~gi.repository.Gio.Emblem | None = None) -> ~gi.repository.Gio.EmblemedIcon Creates a new emblemed icon for ``icon`` with the emblem ``emblem``\. .. versionadded:: 2.18 :param icon: a :obj:`~gi.repository.Gio.Icon` :param emblem: a :obj:`~gi.repository.Gio.Emblem`\, or :const:`None` Methods ------- .. rst-class:: interim-class .. class:: EmblemedIcon :no-index: .. method:: add_emblem(emblem: ~gi.repository.Gio.Emblem) -> None Adds ``emblem`` to the :obj:`~gi.repository.GLib.List` of :obj:`~gi.repository.Gio.Emblem`\. .. versionadded:: 2.18 :param emblem: a :obj:`~gi.repository.Gio.Emblem` .. method:: clear_emblems() -> None Removes all the emblems from ``icon``\. .. versionadded:: 2.28 .. method:: get_emblems() -> list[~gi.repository.Gio.Emblem] Gets the list of emblems for the ``icon``\. .. versionadded:: 2.18 .. method:: get_icon() -> ~gi.repository.Gio.Icon Gets the main icon for ``emblemed``\. .. versionadded:: 2.18 Properties ---------- .. rst-class:: interim-class .. class:: EmblemedIcon :no-index: .. attribute:: props.gicon :type: ~gi.repository.Gio.Icon The type of the None singleton. .. versionadded:: 2.18 Fields ------ .. rst-class:: interim-class .. class:: EmblemedIcon :no-index: .. attribute:: parent_instance .. attribute:: priv