NAME
XtParent − return the parent of the specified widget.
SYNOPSIS
Widget XtParent(w)
Widget w;
Inputs
wSpecifies the widget whose parent is to be returned. May be of class Object or any subclass thereof.
Returns
The parent of w.
DESCRIPTION
XtParent() returns the parent widget of the specified object.
USAGE
XtParent() is implemented as a function when called from application code, but is replaced by a more efficient macro when called from widget code that includes the file <X11/IntrinsicP.h>.
If XtParent() is called on a toplevel shell widget which has no parent (such as those created by XtAppInitialize() or XtAppCreateShell(), for example) it returns NULL.