Package: gtk

Accessor gtk:text-visibility

Lambda List

gtk:text-visibility (object)

Syntax

(gtk:text-visibility object) => visible
(setf (gtk:text-visibility object) visible)

Arguments

object -- a gtk:text widget
visible -- a boolean whether the text is visible

Details

Accessor of the visibility slot of the gtk:text class. The gtk:text-visibility function retrieves whether the text in the text entry is visible. The (setf gtk:text-visibility) function sets whether the contents of the text entry are visible or not. When visibility is set to false, characters are displayed as the invisible char, and will also appear that way when the text in the text entry is copied to the clipboard.

By default, GTK picks the best invisible character available in the current font, but it can be changed with the gtk:text-invisible-char function.

Note that you probably want to set the input-purpose property to the :password or :pin value to inform input methods about the purpose of the text entry, in addition to setting the visibility property to false.
 

See also

2024-5-17