NumerableIcon
Object Hierarchy:
Description:
[ CCode ( type_id = "gtk_numerable_icon_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "3.14" ) ]
public class NumerableIcon : EmblemedIcon, Icon
Warning: NumerableIcon is deprecated since 3.14.
GtkNumerableIcon is a subclass of 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 StyleContext;
see set_style_context.
Typical numerable icons: ![](numerableicon.png) ![](numerableicon2.png)
Content:
Properties:
Creation methods:
Methods:
- public unowned Icon? get_background_gicon ()
Returns the Icon that was set as the
base background image, or null if there’s none.
- public unowned string? get_background_icon_name ()
Returns the icon name used as the base background image, or
null if there’s none.
- public int get_count ()
Returns the value currently displayed by
this.
- public unowned string? get_label ()
Returns the currently displayed label of the icon, or
null.
- public unowned StyleContext? get_style_context ()
Returns the StyleContext
used by the icon for theming, or null if there’s none.
- public void set_background_gicon (Icon? icon)
Updates the icon to use icon
as the base background
image.
- public void set_background_icon_name (string? icon_name)
Updates the icon to use the icon named icon_name
from the
current icon theme as the base background image.
- public void set_count (int count)
Sets the currently displayed value of this
to count
.
- public void set_label (string? label)
Sets the currently displayed value of this
to the string in label
.
- public void set_style_context (StyleContext style)
Updates the icon to fetch theme information from the given
StyleContext.
Inherited Members:
All known members inherited from class GLib.EmblemedIcon
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.Icon
- deserialize
- equal
- from_tokens
- hash
- new_for_string
- serialize