Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xtmanagechb(3) [hpux man page]

XtManageChildren()														XtManageChildren()

Name
  XtManageChildren - bring an array of widgets under their parent's geometry management.

Synopsis
     void XtManageChildren(children, num_children)
	 WidgetList children;
	 Cardinal num_children;

Inputs
  children    Specifies an array of child widgets.  The widgets must all be siblings and must be of class RectObj or any subclass thereof.

  num_children
	      Specifies the number of children in the array.

Description
  XtManageChildren()  brings  a  list  of  widgets  created with XtCreateWidget() under the geometry management of their parent.  All widgets
  (except shell widgets) must be managed  in  order  to  be  visible.	Managing  a  widget  will  generally  make  it	visible,  unless  its
  XtNmappedWhenManaged resource is False.

  The "Algorithm" section below details the procedure followed by XtManageChildren().

Usage
  To manage a single widget, you can use XtManageChild().  To unmanage widgets, use XtUnmanageChild() and XtUnmanageChildren().

  If  you  are going to manage multiple children of the same managed and realized parent, it is more efficient to place those children widget
  into an array and call XtManageChildren() just once than it is to manage them individually.  The former technique results in only a  single
  call to the parent's change_managed() method.  If you are creating widgets before the widget tree has been realized, however, managing them
  one at a time is fine.

Algorithm
  XtManageChildren() performs the following:

  o  Issues an error if the children do not all have the same parent or if the parent is not a subclass of compositeWidgetClass.

  o  Returns immediately if the common parent is being destroyed; otherwise, for each unique child on the  list,  XtManageChildren()  ignores
     the child if it already is managed or is being destroyed, and marks it otherwise.

  o  If the parent is realized XtManageChildren() does the following:

     -	Calls the change_managed() method of the widgets' parent.

     -	Calls XtRealizeWidget() on each marked child that is unrealized.

     -	Maps each marked child that has its XtNmappedWhenManaged resource True.

  The  management of children is independent of the creation and ordering of the children.  There is no special list of managed children; the
  layout routine of the parent should loop through the list of all children and simply ignore those that are not managed (see XtIsManaged()).

Structures
     typedef Widget *WidgetList;

See Also
  XtCreateManagedWidget(1),  XtIsManaged(1),  XtManageChild(1),  XtMoveWidget(1),  XtRealizeWidget(1),	XtSetMappedWhenManaged(1),   XtUnman-
  ageChild(1), XtUnmanageChildren(1).

Xt - Widget Lifecycle														XtManageChildren()

Check Out this Related Man Page

XtManageChildren(3X)						   XT FUNCTIONS 					      XtManageChildren(3X)

NAME
XtManageChildren - 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: o Issues an error if the children do not all have the same parent or if the parent is not a subclass of compositeWidgetClass. o Returns immediately if the common parent is being destroyed; otherwise, 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. o 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_managed True. 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, espe- cially 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. SEE ALSO
XtManageChild(3X), XtUnmanageChildren(3X), XtUnmanageChild(3X), XtChangeManagedSet(3X), XtIsManaged(3X) X Version 11 Release 6 XtManageChildren(3X)
Man Page