DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
X Version 11 (Release 6.1)

XtManageChildren(X3xt)


XtManageChildren -- manage and unmanage children

Synopsis

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;

void XtChangeManagedSet(unmanage_children, num_unmanage_children, manage_children, num_manage_children, post_unmanage_pre_manage_hook, client_data) WidgetList unmanage_children; Cardinal num_unmanage_children; WidgetList manage_children; Cardinal num_manage_children; XtCSMProc post_unmanage_pre_manage_hook; XtPointer client_data;

Boolean XtIsManaged(widget) Widget widget

Arguments


child
Specifies the child.

children
Specifies a list of child widgets.

num_children
Specifies the number of children.

widget
Specifies the widget.

manage_children
Specifies the list of widget children to add to the managed set.

num_manage_children
Specifies the number of entries in the manage_children list.

unmanage_children
Specifies the list of widget children to remove from the managed set.

num_unmanage_children
Specifies the number of entries in the unmanage_children list.

post_unmanage_pre_manage_hook
Specifies the post unmanage, pre manage hook procedure to invoke.

client_data
Specifies the client data to be passed to the hook precedure.

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: 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.

The XtChangeManagedSet function performs the following:

The XtIsManaged function returns True if the specified widget is of class RectObj or any subclass thereof and is managed, or False otherwise.

References

XtMapWidget(X3xt), XtRealizeWidget(X3xt)

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


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004