XtUnmanageChild(3)


HOME

XtManageChildren

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO

NAME

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:

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

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

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; otherwise, for each unique child on the list, XtUnmanageChildren performs the following:

Ignores the child if it already is unmanaged or is being destroyed and marks it if not.

If the child is realized, it makes it nonvisible by unmapping it.

Calls the change_managed routine of the widgets’ parent after all children have been marked if the parent is realized.

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:

Issues an error if the widgets specified in the manage_children and the unmanage_children lists to no all have the same parent, or if that parent is not a subclass of compositeWidgetClass.

Returns immediately if the common parent is being destroyed.

If no CompositeClassExtension is defined, or a CompositeClassExtension is defined but with an allows_change_managed_set field with a value of False, and XtChangeManagedSet was invoked with a non-NULL do_change_proc procedure then XtChangeManagedSet performs the following:

Calls XtUnmanageChildren (unmanage_children, num_unmanage_children).

Calls the do_change_proc specified.

Calls XtManageChildren (manage_children, num_manage_children) and then returns immediately.

Otherwise, if a CompositeClassExtension is defined with an allows_change_managed_set field with a value of True, or if no CompositeClassExtension is defined, and XtChangeManagedSetwas do_change_proc procedure, then the following is performed:

For each child on the unmanage_children list; if the child is already unmanaged or is being destroyed it is ignored, otherwise it is marked as being unmanaged and if it is realized it is made nonvisible by being unmapped.

If the do_change_proc procedure is non-NULL then it is invoked as specified.

For each child on the manage_children list; if the child is already managed or it is being destroyed it is ignored, otherwise it is marked as managed

If the parent is realized and after all children have been marked, the change_managed method of the parent is invoked and subsequently some of the newly managed children are made viewable by:

Calling XtRealizeWidget on each of the previously unmanaged child that is unrealized.

Mapping each previously unmanaged child that has map_when_managed True.

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(3Xt), XtRealizeWidget(3Xt)
X Toolkit Intrinsics − C Language Interface
Xlib − C Language X Interface



More Linux Commands

manpages/sha512sum.1.html
sha512sum(1) - compute and check SHA512 message digest......
Print or check SHA512 (512-bit) checksums. With no FILE, or when FILE is -, read standard input. -b, --binary read in binary mode -c, --check read SHA512 sums f

manpages/bind.n.html
bind(n) - Arrange for X events to invoke Tcl scripts........
The bind command associates Tcl scripts with X events. If all three arguments are specified, bind will arrange for script (a Tcl script) to be evaluated wheneve

manpages/ExtUtils::Installed.3pm.html
ExtUtils::Installed(3pm) - Inventory management of installed
ExtUtils::Installed provides a standard way to find out what core and module files have been installed. It uses the information stored in .packlist files create

manpages/postcat.1.html
postcat(1) - show Postfix queue file contents (Man Page)....
The postcat(1) command prints the contents of the named files in human-readable form. The files are expected to be in Postfix queue file format. If no files are

manpages/gnutls_pkcs12_deinit.3.html
gnutls_pkcs12_deinit(3) - API function - Linux manual page
This function will deinitialize a PKCS12 structure. REPORTING BUGS Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page: http://www.gnu.org/software/gnutls/ Ge

manpages/Encode::Unicode.3pm.html
Encode::Unicode(3pm) - Various Unicode Transformation Format
xmlgraphics-fop - Formatter for Printing XSLT Processed XML Files Classname: org.apache.fop.cli.Main xmlgraphicsfop [fo | xml] infile [xsl file] [awt | ....

manpages/glutExtensionSupported.3.html
glutExtensionSupported(3) - helps to easily determine whethe
glutExtensionSupported helps to easily determine whether a given OpenGL extension is supported or not. The extension parameter names the extension to query. The

manpages/wcscpy.3.html
wcscpy(3) - copy a wide-character string - Linux man page...
The wcscpy() function is the wide-character equivalent of the strcpy(3) function. It copies the wide-character string pointed to by src, including the terminati

manpages/ifcfg-bonding.5.html
ifcfg-bonding(5) - interface bonding configuration (ManPage)
To setup a bonding interface you need a configuration file ifcfg-bond<X> with the usual network settings. But you must add additional variables BONDING_MASTER..

manpages/libc.7.html
libc(7) - Overview of standard C libraries on Linux.........
libc.7 - The term libc is commonly used as a shorthand for the standard C library, a library of standard functions that can be used by all C programs (and somet

manpages/gnutls_compression_get_id.3.html
gnutls_compression_get_id(3) - API function - Linux man page
The names are compared in a case insensitive way. RETURNS an id of the specified in a string compression method, or GNUTLS_COMP_UNKNOWN on error. REPORTING BUGS

manpages/kismet_drone.conf.5.html
kismet_drone.conf(5) Wireless sniffing and monitoring drone
kismet_drone uses a minimalized configuration file, similar in options to the main kismet server configuration file. By default, the drone config is in /usr/loc





We can't live, work or learn in freedom unless the software we use is free.