XtDisplayOfObject() XtDisplayOfObject()
Name
XtDisplayOfObject - return the display pointer for the nearest ancestor of object that is of class Core.
Synopsis
Display *XtDisplayOfObject(object)
Widget object;
Inputs
object Specifies the object; may be of class Object or any subclass thereof.
Returns
The display of object or of its nearest widget ancestor.
Availability
Release 4 and later.
Description
XtDisplayOfObject() is identical in function to XtDisplay() if the object is a widget; otherwise XtDisplayOfObject() returns the display
pointer for the nearest ancestor of object that is of class Core.
Usage
If you are working with windowed objects, use XtDisplay() rather than XtDisplayOfObject(). XtDisplay() may be implemented as an efficient
macro for widget code that includes the file <X11/IntrinsicP.h>.
See Also
XtScreenOfObject(1), XtWindowOfObject(1).
Xt - Object Information XtDisplayOfObject()