XtDisplay(3) XT FUNCTIONS XtDisplay(3)

# [NAME](#NAME)

XtDisplay, XtDisplayOfObject, XtScreen, XtScreenOfObject, XtWindow, XtWindowOfObject - obtain window information about a widget

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

Display \*XtDisplay(Widget *w*);

Display \*XtDisplayOfObject(Widget *object*);

Screen \*XtScreen(Widget *w*);

Screen \*XtScreenOfObject(Widget *object*);

Window XtWindow(Widget *w*);

Window XtWindowOfObject(Widget *object*);

# [ARGUMENTS](#ARGUMENTS)

[*w*](#w)

Specifies the widget.

[*object*](#object)

Specifies the widget.

# [DESCRIPTION](#DESCRIPTION)

**XtDisplay** returns the display pointer for the specified widget.

**XtDisplayOfObject** returns the display pointer for the specified object.

**XtScreen** returns the screen pointer for the specified widget.

**XtScreenOfObject** returns the screen pointer for the specified object.

**XtWindow** returns the window of the specified widget.

**XtWindowOfObject** returns the window of the specified object.

# [SEE ALSO](#SEE_ALSO)

*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

Document: XtScreenOfObject(3) from libxt 1.3.1-r9 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
