| 1 |
# Copyright (c) 1995-1996 Sun Microsystems, Inc. |
| 2 |
# See the file "license.terms" for information on usage and redistribution |
| 3 |
# of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 4 |
# |
| 5 |
# |
| 6 |
|
| 7 |
=head1 NAME |
| 8 |
|
| 9 |
Tk_IdToWindow - Find Tk's window information for an X window |
| 10 |
|
| 11 |
=for category C Programming |
| 12 |
|
| 13 |
=head1 SYNOPSIS |
| 14 |
|
| 15 |
B<#include E<lt>tk.hE<gt>> |
| 16 |
|
| 17 |
Tk_Window |
| 18 |
B<Tk_IdToWindow>(I<display, window>) |
| 19 |
|
| 20 |
=head1 ARGUMENTS |
| 21 |
|
| 22 |
=over 4 |
| 23 |
|
| 24 |
=item Display *display (in) |
| 25 |
|
| 26 |
X display containing the window. |
| 27 |
|
| 28 |
=item Window window (in) |
| 29 |
|
| 30 |
X id for window. |
| 31 |
|
| 32 |
=back |
| 33 |
|
| 34 |
=head1 DESCRIPTION |
| 35 |
|
| 36 |
Given an X window identifier and the X display it corresponds to, |
| 37 |
this procedure returns the corresponding Tk_Window handle. |
| 38 |
If there is no Tk_Window corresponding to $widget then |
| 39 |
NULL is returned. |
| 40 |
|
| 41 |
=head1 KEYWORDS |
| 42 |
|
| 43 |
X window id |