---
name: "XtDisplay"
section: "3"
platform: "linux"
package: "libxt"
version: "1.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XtDisplay"
---

# XtDisplay(3)

obtain window information about a widget

## NAME

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

## SYNTAX

\#include \<X11/Intrinsic.h\>

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

- *w*

  Specifies the widget.

- *object*

  Specifies the widget.

## 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

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