Package: gtk

Accessor gtk-stack-visible-child-name

Lambda List

gtk-stack-visible-child-name (object)

Syntax

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

Arguments

object -- a gtk-stack widget
name -- a string with the name of the visible child of the stack

Details

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

The gtk-stack-visible-child-name slot access function returns the name of the currently visible child of the stack, or nil if there is no visible child. The (setf gtk-stack-visible-child-name) slot access function makes the child widget with the given name visible.

If the child widget is different from the currently visible child, 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