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

ARGUMENTS

21       Tcl_Interp *interp (in/out)        Interpreter  associated   with   the
22                                          application.
23______________________________________________________________________________
24

DESCRIPTION

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

KEYWORDS

38       application, main window
39
40
41
42Tk                                    7.0                     Tk_MainWindow(3)
Impressum