DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 
X Version 11 (Release 5)

XtManageChildren(Xt)


XtManageChildren -- manage and unmanage children

Syntax

typedef Widget *WidgetList;
void XtManageChildren(children, num_children)
WidgetList children;
Cardinal num_children;

void XtManageChild(child) Widget child;

void XtUnmanageChildren(children, num_children) WidgetList children; Cardinal num_children;

void XtUnmanageChild(child) Widget child;

Arguments


child
Specifies the child.

children
Specifies a list of child widgets.

num_children
Specifies the number of children.

Description

The XtManageChildren 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 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, which first updates the x and y fields and then calls XMoveWindow if the widget is realized.

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

The XtUnmanageChildren function performs the following:

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

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

See also

XtMapWidget(Xt) and XtRealizeWidget(Xt).

X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003