Package: gtk

Accessor gtk:numerable-icon-count

Lambda List

gtk:numerable-icon-count (object)

Syntax

(gtk:numerable-icon-count object) => count
(setf (gtk:numerable-icon-count object) count)

Arguments

object -- a gtk:numerable-icon object
count -- an integer between -99 and 99

Details

Accessor of the count slot of the gtk:numerable-icon class. The gtk:numerable-icon-count function returns the value currently displayed by the numerable icon. The (setf gtk:numerable-icon-count) function sets the currently displayed value.

The numeric value is always clamped to make it two digits, that is between -99 and 99. Setting a count of zero removes the emblem. If this method is called, and a label was already set on the numerable icon, it will automatically be reset to nil before rendering the number, that is, the last method called between the gtk:numerable-icon-count and gtk:numerable-icon-label functions has always priority.

Warning

The gtk:numerable-icon-count function has been deprecated since version 3.14 and should not be used in newly written code.
 

See also

2024-12-31