Class

GtkNumerableIcon

Description [src]

class Gtk.NumerableIcon : Gio.EmblemedIcon {
  parent: GEmblemedIcon
}

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_set_style_context().

Typical numerable icons:

Hierarchy

hierarchy this GtkNumerableIcon implements_0 GIcon this--implements_0 ancestor_0 GEmblemedIcon ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Implements

Functions

gtk_numerable_icon_new

Creates a new unthemed GtkNumerableIcon.

Available since: 3.0

gtk_numerable_icon_new_with_style_context

Creates a new GtkNumerableIcon which will themed according to the passed GtkStyleContext. This is a convenience constructor that calls gtk_numerable_icon_set_style_context() internally.

Available since: 3.0

Instance methods

gtk_numerable_icon_get_background_gicon

Returns 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.

Available since: 3.0

gtk_numerable_icon_get_background_icon_name

Returns the icon name used as the base background image, or NULL if there’s none.

Available since: 3.0

gtk_numerable_icon_get_count

Returns the value currently displayed by self.

Available since: 3.0

gtk_numerable_icon_get_label

Returns the currently displayed label of the icon, or NULL.

Available since: 3.0

gtk_numerable_icon_get_style_context

Returns the GtkStyleContext used by the icon for theming, or NULL if there’s none.

Available since: 3.0

gtk_numerable_icon_set_background_gicon

Updates 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.

Available since: 3.0

gtk_numerable_icon_set_background_icon_name

Updates 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 background image.

Available since: 3.0

gtk_numerable_icon_set_count

Sets the currently displayed value of self to count.

Available since: 3.0

gtk_numerable_icon_set_label

Sets the currently displayed value of self to the string in label. Setting an empty label removes the emblem.

Available since: 3.0

gtk_numerable_icon_set_style_context

Updates the icon to fetch theme information from the given GtkStyleContext.

Available since: 3.0

Methods inherited from GEmblemedIcon (4)
Methods inherited from GObject (42)

Properties

Gtk.NumerableIcon:background-icon
No description available.
Gtk.NumerableIcon:background-icon-name
No description available.
Gtk.NumerableIcon:count
No description available.
Gtk.NumerableIcon:label
No description available.
Gtk.NumerableIcon:style-context
No description available.
Properties inherited from GEmblemedIcon (1)

Signals

Signals inherited from GObject (1)

Class structure

struct GtkNumerableIconClass {
  GEmblemedIconClass parent_class;
  None padding;
  
}
Class members
parent_class
GEmblemedIconClass
  No description available.
padding
None
  No description available.