Package: gtk

Accessor gtk:widget-can-focus

Lambda List

gtk:widget-can-focus (object)

Syntax

(gtk:widget-can-focus object) => setting
(setf (gtk:widget-can-focus object) setting)

Arguments

object -- a gtk:widget object
setting -- a boolean whether or not widget can own the input focus

Details

The accessor for the can-focus slot of the gtk:widget class gets or sets whether the widget can accept the input focus. Returns true if the widget can own the input focus, false otherwise.

See the gtk:widget-grab-focus function for actually setting the input focus on a widget.
 

See also

2025-08-14