1Tk_MainWindow(3)             Tk Library Procedures            Tk_MainWindow(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tk_MainWindow,  Tk_GetNumMainWindows - functions for querying main win‐
9       dow information
10

SYNOPSIS

12       #include <tk.h>
13
14       Tk_Window
15       Tk_MainWindow(interp)
16
17       int
18       Tk_GetNumMainWindows()
19
20

ARGUMENTS

22       Tcl_Interp   *interp     (in/out)  Interpreter  associated   with   the
23                                          application.
24_________________________________________________________________
25
26

DESCRIPTION

28       A  main  window is a special kind of toplevel window used as the outer‐
29       most window in an application.
30
31       If interp is  associated  with  a  Tk  application  then  Tk_MainWindow
32       returns  the  application's  main window. If there is no Tk application
33       associated with interp then Tk_MainWindow returns NULL  and  leaves  an
34       error message in interp->result.
35
36       Tk_GetNumMainWindows returns a count of the number of main windows cur‐
37       rently open in the process.
38
39

KEYWORDS

41       application, main window
42
43
44
45Tk                                    7.0                     Tk_MainWindow(3)
Impressum