XtManageChildren()

NAME

XtManageChildren(), XtManageChild(), XtUnmanageChildren(), XtUnmanageChild() - manage and unmanage children

SYNOPSIS

typedef Widget *WidgetList

void XtManageChildren (WidgetList children, Cardinal num_children)
void XtManageChild (Widget child)
void XtUnmanageChildren (WidgetList children, Cardinal num_children)
void XtUnmanageChild (Widget child)

ARGUMENTS

child
Specifies the child.
children
Specifies a list of child widgets.
num_children
Specifies the number of children.

DESCRIPTION

The XtManageChildren(3) function performs the following:

Managing children is independent of the ordering of children and independent of creating and deleting children. The layout routine of the parent should consider children whose managed field is True and should ignore all other children. Note that some composite widgets, especially fixed boxes, call XtManageChild(3) from their insert_child procedure.

If the parent widget is realized, its change_managed procedure is called to notify it that its set of managed children has changed. The parent can reposition and resize any of its children. It moves each child as needed by calling XtMoveWidget(3), which first updates the x and y fields and then calls XMoveWindow(3) if the widget is realized.

The XtManageChild(3) function constructs a WidgetList of length one and calls XtManageChildren(3).

The XtUnmanageChildren(3) function performs the following:

XtUnmanageChildren(3) does not destroy the children widgets. Removing widgets from a parent's managed set is often a temporary banishment, and, some time later, you might manage the children again.

The XtUnmanageChild(3) function constructs a widget list of length one and calls XtUnmanageChildren(3).

SEE ALSO

XtMapWidget()

XtRealizeWidget()

X Toolkit Intrinsics - C Language Interface

Xlib - C Language X Interface