Data Types

The more commonly used Tk data structures are listed here:

Tk_3DBorder

Token for a three-dimensional window border

Tk_Anchor

Enumerated type describing point by which to anchor an object

Tk_ArgvInfo

Structure used to specify how to handle argv options

Tk_BindingTable

Token for a binding table

Tk_Canvas

Token for a canvas object

Tk_CanvasTextInfo

Structure providing information about the selection and insertion cursors

Tk_ConfigSpec

Structure used to specify information for configuring a widget

Tk_Cursor

Token for a cursor

Tk_ErrorHandler

Token for an X protocol error handler

Tk_ErrorProc

Type of procedure used to handle X protocol errors

Tk_EventProc

Type of procedure used to handle events

Tk_Font

Token for a font

Tk_FontMetrics

Data structure describing properties of a font

Tk_GenericProc

Type of procedure used to handle generic X events

Tk_GeomMgr

Structure describing a geometry manager

Tk_GetSelProc

Type of procedure to process the selection

Tk_Image

Token for an image

Tk_ImageChangedProc

Type of procedure to invoke when an image changes

Tk_ImageMaster

Token for an image master

Tk_ImageType

Token for an image instance

Tk_ItemType

Structure defining a type of canvas item

Tk_Justify

Enumerated type describing a style of justification

Tk_LostSelProc

Type of procedure invoked when window loses selection

Tk_PhotoHandle

Token for a photo image

Tk_PhotoImageBlock

Structure describing a block of pixels in memory

Tk_PhotoImageFormat

Structure representing a particular file format for storing images

Tk_RestrictProc

Type of procedure ...

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.