![]() |
![]()
| ![]() |
![]()
NAMEXmtGetShell(), XmtGetApplicationShell(), XmtGetTopLevelShell() - return shell ancestors of a widget. SYNOPSIS#include <Xmt/Xmt.h>
Widget XmtGetShell(Widget w) Widget XmtGetApplicationShell(Widget w) Widget XmtGetTopLevelShell(Widget w) ARGUMENTSINPUTS
RETURNS The appropriate shell ancestor of w. DESCRIPTIONXmtGetShell() returns the closest widget ancestor of w that is a shell widget-i.e. is any subclass of Shell. XmtGetTopLevelShell() returns the closest ancestor of w that is a TopLevelShell or a subclass. Thus if w is a descendent of a dialog box, this function will skip the dialog shell and return the main window shell that is the ancestor of the dialog box. XmtGetApplicationShell() returns the ``root'' of the widget hierarchy. This is the ancestor of w which has no ancestors of its own. This shell is usually created with XtAppInitialize() or XtAppCreateShell(), and is usually an ApplicationShell widget. SEE ALSOChapter 8, Utility Functions,
|