XtManageChildren man page

XtManageChildren, XtManageChild, XtUnmanageChildren, XtUnmanageChild, XtChangeManagedSet, XtIsManaged ā€” manage and unmanage children

Syntax

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);

void XtChangeManagedSet(WidgetList unmanage_children, Cardinal num_unmanage_children, XtDoChangeProc do_change_proc, XtPointer client_data, WidgetList manage_children, Cardinal num_manage_children);

Boolean XtIsManaged(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.

do_change_proc

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

client_data

Specifies the client data to be passed to the hook procedure.

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.

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.

See Also

XtMapWidget(3), XtRealizeWidget(3)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface

Referenced By

XtMapWidget(3), XtRealizeWidget(3).

The man pages XtChangeManagedSet(3), XtIsManaged(3), XtManageChild(3), XtUnmanageChild(3) and XtUnmanageChildren(3) are aliases of XtManageChildren(3).

libXt 1.1.5 X Version 11 XT FUNCTIONS