perl/Tk Documentation

# Tk Documentation Table of Contents

License terms

## Index

- `Tk Widget Classes`
- `Partially Converted Methods`
- `Perl/Tk Constructs`
- `Tix Extensions`
- `Tk Generic Methods`
- `Tk Geometry Management`
- `Tk Image Classes`
- `Tk Selection Handling`
- `Tk User Interaction`
- `tix`
- `Tk Library Procedures`

## Tk Widget Classes

- HList Create and manipulate Tix Hierarchial List widgets
- InputOnly Create and manipulate TIX InputOnly widgets
- button Create and manipulate button widgets
- canvas Create and manipulate canvas widgets
- checkbutton Create and manipulate checkbutton widgets
- entry Create and manipulate entry widgets
- frame Create and manipulate frame widgets
- label Create and manipulate label widgets
- listbox Create and manipulate listbox widgets
- menu Create and manipulate menu widgets
- menubutton Create and manipulate menubutton widgets
- message Create and manipulate message widgets
- radiobutton Create and manipulate radiobutton widgets
- scale Create and manipulate scale widgets
- scrollbar Create and manipulate scrollbar widgets
- text Create and manipulate text widgets
- tixGrid Create and manipulate Tix Grid widgets
- tixTList Create and manipulate Tix Tabular List widgets
- toplevel Create and manipulate toplevel widgets

## Partially Converted Methods

- fileevent Execute a callback when a file becomes readable or writable
- send Execute a command in a different application

## Perl/Tk Constructs

- Composite composite widget class
- ConfigSpec Defining behaviour of 'configure' for composite widgets.
- OnDestroy Arrange for callback when widget is destroyed.
- Tk An overview of an Object Oriented Tk4.0 extension for perl5
- Tk::Error Method invoked to process background errors
- callbacks Specifying code for Tk to call.

## Tix Extensions

- Mwm Communicate with the Motif(tm) window manager.
- Wm Tix's addition to the standard TK wm command.

## Tk Generic Methods

- after Execute a command after a time delay
- appname Application name for options and send
- bind Arrange for X events to invoke callbacks
- bindtags Determine which bindings apply to a window, and order of evaluation
- configure Change or inquire the attributes of an object.
- destroy Destroy one or more windows
- exit Exit the process
- option Add/retrieve window options to/from the option database
- options Standard options supported by widgets
- setPalette Modify the Tk color palette
- update Process pending events and/or when-idle handlers
- winfo Return window-related information
- wm Communicate with window manager

## Tk Geometry Management

- form Geometry manager based on attachment rules
- lower Change a window's position in the stacking order
- pack Geometry manager that packs around edges of cavity
- place Geometry manager for fixed or rubber-sheet placement
- raise Change a window's position in the stacking order

## Tk Image Classes

- bitmap Images that display two colors
- image Create and manipulate images
- photo Full-color images

## Tk Selection Handling

- clipboard Manipulate Tk clipboard
- selection Manipulate the X selection

## Tk User Interaction

- bell Ring a display's bell
- focus Manage the input focus
- focusNext Utility methods for managing the input focus.
- grab Confine pointer and keyboard events to a window sub-tree
- tkwait Wait for variable to change or window to be destroyed

## tix

- tixItemType

## Tk Library Procedures

- Tk_BackgroundError report Tcl error that occurred in background processing
- Tk_CanvasPsY utility procedures for generating Postscript for canvases
- Tk_CanvasTextInfo additional information for managing text items in canvases
- Tk_CanvasTkwin utility procedures for canvas type managers
- Tk_ClearSelection Deselect a selection
- Tk_ClipboardClear Manage the clipboard
- Tk_ConfigureWidget process configuration options for widgets
- Tk_ConfigureWindow change window configuration or attributes
- Tk_CoordsToWindow Find window containing a point
- Tk_CreateBindingTable invoke scripts in response to X events
- Tk_CreateErrorHandler handle X protocol errors
- Tk_CreateEventHandler associate procedure callback with an X event
- Tk_CreateFileHandler associate procedure callbacks with files or devices
- Tk_CreateGenericHandler associate procedure callback with all X events
- Tk_CreateImageType define new kind of image
- Tk_CreateItemType define new kind of canvas item
- Tk_CreateMainWindow create or delete window
- Tk_CreatePhotoImageFormat define new file format for photo images
- Tk_CreateSelHandler arrange to handle requests for a selection
- Tk_CreateTimerHandler call a procedure at a
- Tk_DeleteImage Destroy an image.
- Tk_DoOneEvent wait for events and
- Tk_DoWhenIdle invoke a procedure when there are no pending events
- Tk_DrawFocusHighlight draw the traversal highlight ring for a widget
- Tk_EventInit Use the Tk event loop without the rest of Tk
- Tk_FindPhoto manipulate the image data stored in a photo image.
- Tk_FreeXId make X resource identifier available for reuse
- Tk_GeometryRequest specify desired geometry or internal border for a window
- Tk_Get3DBorder draw borders with three-dimensional appearance
- Tk_GetAnchor translate between strings and anchor positions
- Tk_GetBitmap maintain database of single-plane pixmaps
- Tk_GetCapStyle translate between strings and cap styles
- Tk_GetColor maintain database of colors
- Tk_GetColormap allocate and free colormaps
- Tk_GetCursor maintain database of cursors
- Tk_GetFontStruct maintain database of fonts
- Tk_GetGC maintain database of read-only graphics contexts
- Tk_GetImage use an image in a widget
- Tk_GetJoinStyle translate between strings and join styles
- Tk_GetJustify translate between strings and justification styles
- Tk_GetOption retrieve an option from the option database
- Tk_GetPixels translate between strings and screen units
- Tk_GetPixmap allocate and free pixmaps
- Tk_GetRelief translate between strings and relief values
- Tk_GetRootCoords Compute root-window coordinates of window
- Tk_GetScrollInfo parse arguments for scrolling commands
- Tk_GetSelection retrieve the contents of a selection
- Tk_GetUid convert from string to unique identifier
- Tk_GetVRootGeometry Get location and size of virtual root for window
- Tk_GetVisual translate from string to visual
- Tk_IdToWindow Find Tk's window information for an X window
- Tk_ImageChanged notify widgets that image needs to be redrawn
- Tk_InternAtom manage cache of X atoms
- Tk_Main main program for Tk-based applications
- Tk_MainWindow find the main window for an application
- Tk_MaintainGeometry maintain geometry of one window relative to another
- Tk_ManageGeometry arrange to handle geometry requests for a window
- Tk_MapWindow map or unmap a window
- Tk_MoveToplevelWindow Adjust the position of a top-level window
- Tk_Name convert between names and window tokens
- Tk_NameOfImage Return name of image.
- Tk_OwnSelection make a window the owner of the primary selection
- Tk_Preserve avoid freeing storage while it's being used
- Tk_RestackWindow Change a window's position in the stacking order
- Tk_RestrictEvents filter and selectively delay X events
- Tk_SetAppName Set the name of an application for ``send'' commands
- Tk_SetClass set or retrieve a window's class
- Tk_SetGrid control the grid for interactive resizing
- Tk_SetWindowVisual change visual characteristics of window
- Tk_Sleep delay execution for a given number of milliseconds
- Tk_StrictMotif Return value of tk_strictMotif variable
- Tk_WindowId retrieve information from Tk's local data structure