XtManageChildren(3X) XT FUNCTIONS XtManageChildren(3X)NAMEXtManageChildren - manage children
SYNTAX
void XtManageChildren(children, num_children)
WidgetList children;
Cardinal num_children;
ARGUMENTS
children Specifies a list of child widgets.
num_children
Specifies the number of children.
DESCRIPTION
The XtManageChildren function performs the following:
· Issues an error if the children do not all have the same parent or
if the parent is not a subclass of compositeWidgetClass.
· Returns immediately if the common parent is being destroyed; oth‐
erwise, for each unique child on the list, XtManageChildren
ignores the child if it already is managed or is being destroyed
and marks it if not.
· If the parent is realized and after all children have been marked,
it makes some of the newly managed children viewable:
- Calls the change_managed routine of the widgets' parent.
- Calls XtRealizeWidget on each previously unmanaged child that
is unrealized.
- Maps each previously unmanaged child that has map_when_man‐
aged True.
Managing children is independent of the ordering of children and inde‐
pendent 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, espe‐
cially fixed boxes, call XtManageChild from their insert_child proce‐
dure.
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.
SEE ALSOXtManageChild(3X), XtUnmanageChildren(3X), XtUnmanageChild(3X),
XtChangeManagedSet(3X), XtIsManaged(3X)X Version 11 Release 6 XtManageChildren(3X)