gtk.numerable_icon
Module for [NumerableIcon] class
Types 3
GtkNumerableIcon is a subclass of #GEmblemedIcon 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 #GtkStyleContext; see gtk.numerable_icon.NumerableIcon.setStyleContext.
Typical numerable icons:  
Methods
NumerableIconGidBuilder builder() static nothrowGet builder for [gtk.numerable_icon.NumerableIcon] Returns: New builder objectgio.icon.Icon newWithStyleContext(gio.icon.Icon baseIcon, gtk.style_context.StyleContext context) static nothrowCreates a new #GtkNumerableIcon which will themed according to the passed #GtkStyleContext. This is a convenience constructor that calls [gtk.numerable_icon.NumerableIcon.setStyleContext] internally.gio.icon.Icon getBackgroundGicon() nothrowReturns the #GIcon that was set as the base background image, or null if there’s none. The caller of this function does not own a reference to the returned #GIcon. Returns: a #GIcon, or nullstring getBackgroundIconName() nothrowReturns the icon name used as the base background image, or null if there’s none. Returns: an icon name, or nullint getCount() nothrowReturns the value currently displayed by self. Returns: the currently displayed valuestring getLabel() nothrowReturns the currently displayed label of the icon, or null. Returns: the currently displayed labelgtk.style_context.StyleContext getStyleContext() nothrowReturns the #GtkStyleContext used by the icon for theming, or null if there’s none. Returns: a #GtkStyleContext, or null. This object is internal to GTK+ and should not be unreffed. Use [gobject....void setBackgroundGicon(gio.icon.Icon icon = null) nothrowUpdates the icon to use icon as the base background image. If icon is null, self will go back using style information or default theming for its background image.void setBackgroundIconName(string iconName = null) nothrowUpdates the icon to use the icon named icon_name from the current icon theme as the base background image. If icon_name is null, self will go back using style information or default theming for its...void setLabel(string label = null) nothrowSets the currently displayed value of self to the string in label. Setting an empty label removes the emblem.void setStyleContext(gtk.style_context.StyleContext style) nothrowUpdates the icon to fetch theme information from the given #GtkStyleContext.Fluent builder implementation template for gtk.numerable_icon.NumerableIcon
Methods
T backgroundIcon(gio.icon.Icon propval) nothrowT backgroundIconName(string propval) nothrowT count(int propval) nothrowT label(string propval) nothrowT styleContext(gtk.style_context.StyleContext propval) nothrowFluent builder for gtk.numerable_icon.NumerableIcon
Methods