Tk_MainWindow(3tk)

Tk_MainWindow3tk

Functions for querying main window information

Usage

#include <tk.h>

Tk_Window
Tk_MainWindow(interp)

int
Tk_GetNumMainWindows()

    


    

Arguments

Tcl_Interp *interp (in/out)

Interpreter associated with the application.


    


            

Overview

A main window is a special kind of toplevel window used as the outermost window in an application.

If interp is associated with a Tk application then Tk_MainWindow returns the application's main window. If there is no Tk application associated with interp then Tk_MainWindow returns NULL and leaves an error message in interpreter interp's result.

Tk_GetNumMainWindows returns a count of the number of main windows currently open in the current thread.

Keywords

application, main window

Releases

18 releases since Debian 1.1 (Buzz); the text changed 9 times.

  1. 1.1–1.3
  2. 2.0–2.1
  3. 2.2–3.0
  4. 3.1
  5. 4.0
  6. 5.0
  7. 6.0
  8. 7
  9. 8–11
  10. 12–13

From tk8.6-doc 8.6.16-1 in Debian 13 (Trixie). Also shipped by tk9.0-doc. Parsed by carta from the page's man source.