Package: gtk

Accessor gtk-stack-visible-child

Lambda List

gtk-stack-visible-child (object)

Syntax

(gtk-stack-visible-child object) => child
(setf (gtk-stack-visible-child object) child)

Arguments

object -- a gtk-stack widget
child -- a gtk-widget child widget of the stack

Details

Accessor of the visible-child slot of the gtk-stack class.

The gtk-stack-visible-child slot access function gets the currently visible child widget of the stack, or nil if there are no visible children. The (setf gtk-stack-visible-child) slot access function makes the child widget the visible child widget of the stack.

If the child widget is different from the currently visible child widget, the transition between the two will be animated with the current transition type of stack.

Note that the child widget has to be visible itself, see the gtk-widget-show function, in order to become the visible child of the stack.
 

See also

2021-12-7