Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xtunrealizewidget(1) [hpux man page]

XtUnrealizeWidget()													       XtUnrealizeWidget()

Name
  XtUnrealizeWidget - destroy the windows associated with a widget and its descendants.

Synopsis
  void XtUnrealizeWidget(w)
	 Widget w;

Inputs
  w	    Specifies the widget.  Must be of class Core or any subclass thereof.

Description
  XtUnrealizeWidget()  unmanages  the  specified  widget and destroys the windows associated with the widget and all of its non-popup descen-
  dants.

  The "Algorithm" section below explains the details of this process.

Usage
  Note that this call simply destroys the windows associated with the widgets.	The widget instances themselves remain intact.	 To  recreate
  the windows at a later time, call XtRealizeWidget() again.  Compare this to XtDestroyWidget(), which destroys the widgets themselves.

  Unmanaging  a  widget  is  the  usual method for temporarily removing it from the screen.  Unrealizing a widget frees up resources on the X
  server, and may be a better choice for widgets that are only infrequently visible.

Algorithm
  If the widget is currently unrealized, XtUnrealizeWidget() simply returns; otherwise, it performs the following:

  o  Unmanages the widget if the widget is managed.

  o  Makes a post-order (child to parent) traversal of the widget tree rooted at the specified widget and, for each widget that has  declared
     a callback list named unrealizeCallback, executes the procedures on the XtNunrealizeCallback list.

  o  Destroys the widget's window and any subwindows by calling XDestroyWindow() on the specified widget's window.

  Any  events  that  are either in the queue or that arrive following a call to XtUnrealizeWidget() will be dispatched as if the window(s) of
  the unrealized widget(s) had never existed.

See Also
  XtDestroyWidget(1), XtRealizeWidget(1), XtUnmanageWidget(1).

Xt - Widget Lifecycle													       XtUnrealizeWidget()

Check Out this Related Man Page

XtRealizeWidget(3)						   XT FUNCTIONS 						XtRealizeWidget(3)

NAME
XtRealizeWidget, XtIsRealized, XtUnrealizeWidget - realize and unrealize widgets SYNTAX
void XtRealizeWidget(Widget w); Boolean XtIsRealized(Widget w); void XtUnrealizeWidget(Widget w); ARGUMENTS
w Specifies the widget. DESCRIPTION
If the widget is already realized, XtRealizeWidget simply returns. Otherwise, it performs the following: o Binds all action names in the widget's translation table to procedures (see Section 10.1.2). o Makes a post-order traversal of the widget tree rooted at the specified widget and calls the change_managed procedure of each compos- ite widget that has one or more managed children. o Constructs an XSetWindowAttributes structure filled in with information derived from the Core widget fields and calls the realize pro- cedure for the widget, which adds any widget-specific attributes and creates the X window. o If the widget is not a subclass of compositeWidgetClass, XtRealizeWidget returns; otherwise, it continues and performs the following: - Descends recursively to each of the widget's managed children and calls the realize procedures. Primitive widgets that instanti- ate children are responsible for realizing those children themselves. - Maps all of the managed children windows that have mapped_when_managed True. (If a widget is managed but mapped_when_managed is False, the widget is allocated visual space but is not displayed. Some people seem to like this to indicate certain states.) If the widget is a top-level shell widget (that is, it has no parent), and mapped_when_managed is True, XtRealizeWidget maps the widget window. The XtIsRealized function returns True if the widget has been realized, that is, if the widget has a nonzero X window ID. Some widget procedures (for example, set_values) might wish to operate differently after the widget has been realized. The XtUnrealizeWidget function destroys the windows of an existing widget and all of its children (recursively down the widget tree). To recreate the windows at a later time, call XtRealizeWidget again. If the widget was managed, it will be unmanaged automatically before its window is freed. SEE ALSO
XtManageChildren(3) X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.1.3 XtRealizeWidget(3)
Man Page