---
name: "IdToWindow"
section: "2"
platform: "linux"
package: "perl-tk"
version: "b11.02-5"
release: "Debian 1.3 (Bo)"
platforms: ["linux"]
url: "https://new.carta.tech/IdToWindow"
---

# IdToWindow(2)

Find Tk's window information for an X window

## NAME

Tk\_IdToWindow - Find Tk's window information for an X window

## SYNOPSIS

```
#include <tk.h>

Tk_Window
Tk_IdToWindow(display, window)
```

## ARGUMENTS

X display containing the window. X id for window.

## DESCRIPTION

Given an X window identifier and the X display it corresponds to, this procedure returns the corresponding Tk\_Window handle. If there is no Tk\_Window corresponding to *window* then NULL is returned.

## KEYWORDS

X window id
