MainWin(3)

MainWin3

Functions for querying main window information

Usage

#include <tk.h>

Tk_Window
Tk_MainWindow(interp)

int
Tk_GetNumMainWindows()

Arguments

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

109 releases since Mac OS X 10.4; the text changed 1 time.

  1. 10.4–10.4.2
  2. 10.6–26.5

From tcl 152 in macOS 26.5. Parsed by carta from the page's man source.