Package: gtk

Accessor gtk-widget-parent

Lambda List

gtk-widget-parent (object)

Syntax

(gtk-widget-parent object) => parent
(setf (gtk-widget-parent object) parent)

Arguments

object -- a gtk-widget object
parent -- a gtk-widget parent container

Details

Accessor of the parent slot of the gtk-widget class.

The gtk-widget-parent slot access function returns the parent container of the widget. The (setf gtk-widget-parent) slot access function sets the container as the parent of the widget, and takes care of some details such as updating the state and style of the child to reflect its new location. The opposite is the gtk-widget-unparent function.

This function is useful only when implementing subclasses of the gtk-container class.
 

See also

2021-9-15