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: ![](numerableicon.png) ![](numerableicon2.png)

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
NumerableIcon self() nothrowReturns `this`, for use in `with` statements.
NumerableIconGidBuilder builder() static nothrowGet builder for [gtk.numerable_icon.NumerableIcon] Returns: New builder object
gio.icon.Icon backgroundIcon() @property nothrow
void backgroundIcon(gio.icon.Icon propval) @property nothrow
string backgroundIconName() @property nothrow
void backgroundIconName(string propval) @property nothrow
int count() @property nothrow
void count(int propval) @property nothrow
string label() @property nothrow
void label(string propval) @property nothrow
void styleContext(gtk.style_context.StyleContext propval) @property nothrow
gio.icon.Icon new_(gio.icon.Icon baseIcon) static nothrowCreates a new unthemed #GtkNumerableIcon.
gio.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 null
string getBackgroundIconName() nothrowReturns the icon name used as the base background image, or null if there’s none. Returns: an icon name, or null
int getCount() nothrowReturns the value currently displayed by self. Returns: the currently displayed value
string getLabel() nothrowReturns the currently displayed label of the icon, or null. Returns: the currently displayed label
gtk.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 setCount(int count) nothrowSets the currently displayed value of self to count.
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.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtk.numerable_icon.NumerableIcon

Methods
T backgroundIcon(gio.icon.Icon propval) nothrow
T backgroundIconName(string propval) nothrow
T count(int propval) nothrow
T label(string propval) nothrow
Methods
NumerableIcon build() nothrowCreate object from builder. Returns: New object