Chapter 5. The Tk C Interface

This chapter presents a summary of the Tk C-language interface. Everything described here is defined in the header file tk.h, part of the Tk distribution. For clarity, ANSI C function prototypes are shown here, although the actual header file supports non-ANSI compilers.

To avoid name conflicts, all functions are prefixed with Tk_ and constants are pre-fixed with TK_. See the full Tk reference documentation for the most detailed and up-to-date information. C interfaces are typically found in Section 3 of the Tk manpages.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.