| 1 |
# Copyright (c) 1990 The Regents of the University of California. |
| 2 |
# Copyright (c) 1994-1996 Sun Microsystems, Inc. |
| 3 |
# See the file "license.terms" for information on usage and redistribution |
| 4 |
# of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 5 |
# |
| 6 |
# |
| 7 |
|
| 8 |
=head1 NAME |
| 9 |
|
| 10 |
Tk_MainWindow - find the main window for an application |
| 11 |
|
| 12 |
=for category C Programming |
| 13 |
|
| 14 |
=head1 SYNOPSIS |
| 15 |
|
| 16 |
B<#include E<lt>tk.hE<gt>> |
| 17 |
|
| 18 |
Tk_Window |
| 19 |
B<Tk_MainWindow>(I<interp>) |
| 20 |
|
| 21 |
=head1 ARGUMENTS |
| 22 |
|
| 23 |
=over 4 |
| 24 |
|
| 25 |
=item Tcl_Interp *interp (in/out) |
| 26 |
|
| 27 |
Interpreter associated with the application. |
| 28 |
|
| 29 |
=back |
| 30 |
|
| 31 |
=head1 DESCRIPTION |
| 32 |
|
| 33 |
If I<interp> is associated with a Tk application then B<Tk_MainWindow> |
| 34 |
returns the application's main window. |
| 35 |
If there is no Tk application associated with I<interp> then |
| 36 |
B<Tk_MainWindow> returns NULL and leaves an error message |
| 37 |
in I<interp-E<gt>result>. |
| 38 |
|
| 39 |
=head1 KEYWORDS |
| 40 |
|
| 41 |
application, main window |