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
-
Methods
- Gtk.NumerableIcon.prototype.get_background_gicon
- Gtk.NumerableIcon.prototype.get_background_icon_name
- Gtk.NumerableIcon.prototype.get_count
- Gtk.NumerableIcon.prototype.get_label
- Gtk.NumerableIcon.prototype.get_style_context
- Gtk.NumerableIcon.prototype.set_background_gicon
- Gtk.NumerableIcon.prototype.set_background_icon_name
- Gtk.NumerableIcon.prototype.set_count
- Gtk.NumerableIcon.prototype.set_label
- Gtk.NumerableIcon.prototype.set_style_context