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 -- the gtk-state-flags state flags
clear -- an optional boolean whether to clear state before turning on flags

Details

Accessor of the stage flags of the widget.

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.

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

It is worth mentioning that any other state than :insensitive, will be propagated down to all non-internal children if the widget is a gtk-container widget, while :insensitive itself will be propagated down to all gtk-container children by different means than turning on the state flag down the hierarchy, both gtk-widget-state-flags and gtk-widget-is-sensitive functions will make use of these.
 

See also

2020-9-20