Package: gtk

Accessor gtk:inscription-attributes

Lambda List

gtk:inscription-attributes (object)

Syntax

(gtk:inscription-attributes object) => attrs
(setf (gtk:inscription-attributes object) attrs)

Arguments

object -- a gtk:inscription widget
attrs -- a pango:attr-list instance

Details

The accessor for the attributes slot of the gtk:inscription class gets or sets the attribute list of the inscription. These attributes will not be evaluated for sizing the inscription.

Since 4.8

Examples

Set text with Pango markup and retrieve the attributes:
(defvar inscription (make-instance 'gtk:inscription))
=> INSCRIPTION
(setf (gtk:inscription-markup inscription) "<b>Bold Text</b>")
=> "<b>Bold Text</b>"
(gtk:inscription-text inscription)
=> "Bold Text"
(gtk:inscription-attributes inscription)
=> #<PANGO:ATTR-LIST {1002E2D353}>
(pango:attr-list-to-string *)
=> "0 9 weight bold"    
 

See also

2025-09-28