Package: gtk

Function gtk:widget-state-flags

Lambda List

gtk:widget-state-flags (widget)

Syntax

(gtk:widget-state-flags widget) => flags
(setf (gtk:widget-state-flags widget clear) flags)

Arguments

widget -- a gtk:widget object
flags -- a gtk:state-flags value
clear -- an optional boolean whether to clear the state flags before turning on flags

Details

The gtk:widget-state-flags function returns the widget state as a flag set. The (setf gtk:widget-state-flags) function sets the widget state flags.

It is worth mentioning that the effective :insensitive state will be returned, that is, also based on parent insensitivity, even if widget itself is sensitive.

Also note that if you are looking for a way to obtain the gtk:state-flags values to pass to a gtk:style-context function, you should look at the gtk:style-context-state function.

This function is for use in widget implementations. Turns on flag values in the current widget state, insensitive, prelighted, and so on.
 

See also

2025-2-15