---
name: "IdToWindow"
section: "3"
platform: "macos"
package: "tcl"
version: "152"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/IdToWindow/3"
---

# IdToWindow(3)

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
