An Overview of the Tk C library. in .NET Integration QR Code in .NET An Overview of the Tk C library.

How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
An Overview of the Tk C library. using none toprint none in web,windows application barcode There are supp none for none ort routines for the managers of new item types. The CanvTkwin man page describes Tk_CanvasTkwin, Tk_CanvasGetCoord, Tk_CanvasDrawableCoords, Tk_CanvasSetStippleOrigin, Tk_CanvasWindowCoords, and Tk_CanvasEventuallyRedraw. The following procedures help with the generation of postscript: Tk_CanvasPsY, Tk_CanvasPsBitmap, Tk_CanvasPsColor, Tk_CanvasPsFont, Tk_CanvasPsPath, and Tk_CanvasPsStipple.

These are described by the CanvPsY man page. If you are manipulating text items directly, then you can use the Tk_CanvasTextInfo procedure to get a description of the selection state and other details about the text item. This procedure is described in the CanvTxtInfo man page.

Geometry managment A widget requests a certain size with the Tk_GeometryRequest procedure. If it draws a border inside that area, it calls Tk_SetInternalBorder. The geometery manager responds to these requests, although the widget may get a different size.

These are described in the GeomReq man page. The Tk_ManageGeometry procedure sets up the relationship between the geometry manager and a widget. This is described in the ManageGeom man page.

The Tk_MaintainGeometry arranges for one window to stay at a xed position relative to another widget. This is used by the place geometry manager. The relationship is broken with the Tk_UnmaintainGeometry call.

These are described in the MaintGeom man page. The Tk_SetGrid enabled gridded geometry management. The grid is turned off with Tk_UnsetGrid.

These are described in the SetGrid man page. String identi ers (UIDS) Tk maintains a database of string values such that a string only appears in it once. The Tk_Uid type refers to such a string.

You can test for equality by using the value of Tk_Uid, which is the strings address, as an identi er A Tk_Uid is . used as a name in the various GetByName calls introduced below. The Tk_GetUid procedure installs a string into the registry.

It is described in the GetUid man page. Colors and Colormaps Use Tk_GetColor and Tk_GetColorByValue to allocate a color. You can retrieve the string name of a color with Tk_NameOfColor.

When you are done using a color you need to call Tk_FreeColor. Colors are shared among widgets, so it is important to free them when you are done using them. These are described in the GetColor man page.

Use Tk_GetColormap and Tk_FreeColormap to allocate and free a colormap. Colormaps are shared, if possible, so you should use these routines instead of the lower-level X routines to allocate colormaps. These are described in the GetClrmap man page.

. Created: Decem ber 15, 1994 CProgTk.fm3 Copyright Prentice Hall DRAFT: 1/13/95. C Programming and Tk Chap.30 The color mode none for none l used by the screen can be set and queried with Tk_SetColorModel and Tk_GetColorModel. For example, you can force a window into mono-. chrome mode wh en it runs on a color screen. These are described in the SetCModel man page. The window s visual type is set with Tk_SetWindowVisual.

This is described in the SetVisual man page. 3D Borders The three dimensional relief used for widget borders is supported by a collection of routines described by the 3DBorder man page. The routines are Tk_Get3DBorder, Tk_Draw3DRectangle, Tk_Fill3DRectangle, Tk_Draw3DPolygon, Tk_Fill3DPolygon, Tk_3DVerticalBevel, Tk_3DHorizontalBevel, Tk_SetBackgroundFromBorder, Tk_NameOf3DBorder, Tk_3DBorderColor, Tk_3DBorderGC, and Tk_Free3DBorder.

Mouse cursors Allocate a cursor with Tk_GetCursor and Tk_GetCursorFromData. Map back to the name of the cursor with Tk_NameOfCursor. Release the cursor resource with Tk_FreeCursor.

These are described in the GetCursor man page. Font structures Allocate a font with Tk_GetFontStruct. Get the name of a font with Tk_NameOfFontStruct.

Release the font with Tk_FreeFontStruct. These are described in the GetFontStr man page. Graphics Contexts Allocate a graphics context with Tk_GetGC, and free it with Tk_FreeGC.

These are described in the GetGC man page. Allocate a pixmap Allocate and free pixmaps with Tk_GetPixmap and Tk_FreePixmap. These are described in the GetPixmap man page.

Screen measurements Translate between strings like 4c or 72p and screen distances with Tk_GetPixels and Tk_GetScreenMM. The rst call returns pixels (integers), the second returns millimeters as a oating point number These are described in the Get. Pixels man page.

. Created: Decem none none ber 15, 1994 CProgTk.fm3 Copyright Prentice Hall DRAFT: 1/13/95.
Copyright © . All rights reserved.