Tk_GetNumMainWindows(3tk)

Tk_GetNumMainWindows3tk

Functions for querying main window information

Part of Tk_MainWindow(3tk).

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

12 releases since Debian 3.0 (Woody); the text changed 5 times.

  1. 3.0–4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8–11
  6. 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.