Gtk.NumerableIcon

const Gtk = imports.gi.Gtk;

let numerable_icon = new Gtk.NumerableIcon({
    background_icon: value,
    background_icon_name: value,
    count: value,
    label: value,
    style_context: value,
});
  

GtkNumerableIcon is a subclass of Gio.EmblemedIcon that can show a number or short string as an emblem. The number can be overlayed on top of another emblem, if desired.

It supports theming by taking font and color information from a provided Gtk.StyleContext; see Gtk.set_style_context.

<example> <title>Typical numerable icons</title> <inlinegraphic fileref="numerableicon.png" format="PNG"/> <inlinegraphic fileref="numerableicon2.png" format="PNG"/> </example>

Hierarchy

  • GObject.Object
    • Gio.EmblemedIcon
      • Gtk.NumerableIcon