Package: gtk
Function gtk-widget-path-iter-state
Lambda Listgtk-widget-path-iter-state (path pos) SyntaxArgumentsDetails
Accessor of the state flags. The gtk-widget-path-iter-state function returns the state flags corresponding to the widget found at the position pos in the widget hierarchy defined by path. The (setf gtk-widget-path-iter-state) function sets the state flags. If you want to update just a single state flag, you need to do this manually, as this function updates all state flags. Example(let ((flags (gtk-widget-path-iter-state path pos))) (setf (gtk-widget-path-iter-state path pos) (union flags '(:dir-ltr :selected))))Unsetting a flag (let ((flags (gtk-widget-path-iter-state path pos))) (setf (gtk-widget-path-iter-state path pos) (set-difference flags '(:active)))) | See also |
2021-11-27