MainWin(3tk)

MainWin3tk

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 interp->result.

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

Keywords

application, main window

Releases

10 releases since Debian 1.1 (Buzz); the text changed 5 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

From tk8.3-doc 8.3.5-14 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.