SysTutorials Posts

  • |

    Tk_FontId (3) Linux Manual Page

    Tk_FontId, Tk_GetFontMetrics, Tk_PostscriptFontName – accessor functions for fonts Synopsis #include <tk.h> Font Tk_FontId(tkfont) Tk_GetFontMetrics(tkfont, fmPtr) int Tk_PostscriptFontName(tkfont, dsPtr) Arguments Tk_Font tkfont (in) Opaque font token being queried. Must have been returned by a previous call to Tk_GetFont. Tk_FontMetrics *fmPtr (out) Pointer to structure in which the font metrics for tkfont will be stored. See DATA…

  • |

    Tk_FindPhoto (3) Linux Manual Page

    Tk_FindPhoto, Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock, Tk_PhotoGetImage, Tk_PhotoBlank, Tk_PhotoExpand, Tk_PhotoGetSize, Tk_PhotoSetSize – manipulate the image data stored in a photo image. Synopsis #include <tk.h> Tk_PhotoHandle Tk_FindPhoto(interp, imageName) int Tk_PhotoPutBlock(interp, handle, blockPtr, x, y, width, height,compRule) int Tk_PhotoPutZoomedBlock(interp, handle, blockPtr, x, y, width, height,zoomX, zoomY, subsampleX, subsampleY, compRule) int Tk_PhotoGetImage(handle, blockPtr) void Tk_PhotoBlank(handle) int Tk_PhotoExpand(interp, handle, width, height) void…

  • |

    Tk_Fill3DRectangle (3) Linux Manual Page

    Tk_Alloc3DBorderFromObj, Tk_Get3DBorder, Tk_Get3DBorderFromObj, Tk_Draw3DRectangle, Tk_Fill3DRectangle, Tk_Draw3DPolygon, Tk_Fill3DPolygon, Tk_3DVerticalBevel, Tk_3DHorizontalBevel, Tk_SetBackgroundFromBorder, Tk_NameOf3DBorder, Tk_3DBorderColor, Tk_3DBorderGC, Tk_Free3DBorderFromObj, Tk_Free3DBorder – draw borders with three-dimensional appearance Synopsis #include <tk.h> Tk_3DBorder Tk_Alloc3DBorderFromObj(interp, tkwin, objPtr) Tk_3DBorder Tk_Get3DBorder(interp, tkwin, colorName) Tk_3DBorder Tk_Get3DBorderFromObj(tkwin, objPtr) void Tk_Draw3DRectangle(tkwin, drawable, border, x, y, width, height, borderWidth, relief) void Tk_Fill3DRectangle(tkwin, drawable, border, x, y, width, height, borderWidth, relief)…

  • |

    Tk_Fill3DPolygon (3) Linux Manual Page

    Tk_Alloc3DBorderFromObj, Tk_Get3DBorder, Tk_Get3DBorderFromObj, Tk_Draw3DRectangle, Tk_Fill3DRectangle, Tk_Draw3DPolygon, Tk_Fill3DPolygon, Tk_3DVerticalBevel, Tk_3DHorizontalBevel, Tk_SetBackgroundFromBorder, Tk_NameOf3DBorder, Tk_3DBorderColor, Tk_3DBorderGC, Tk_Free3DBorderFromObj, Tk_Free3DBorder – draw borders with three-dimensional appearance Synopsis #include <tk.h> Tk_3DBorder Tk_Alloc3DBorderFromObj(interp, tkwin, objPtr) Tk_3DBorder Tk_Get3DBorder(interp, tkwin, colorName) Tk_3DBorder Tk_Get3DBorderFromObj(tkwin, objPtr) void Tk_Draw3DRectangle(tkwin, drawable, border, x, y, width, height, borderWidth, relief) void Tk_Fill3DRectangle(tkwin, drawable, border, x, y, width, height, borderWidth, relief)…

  • |

    Tk_DrawTextLayout (3) Linux Manual Page

    Tk_ComputeTextLayout, Tk_FreeTextLayout, Tk_DrawTextLayout, Tk_UnderlineTextLayout, Tk_PointToChar, Tk_CharBbox, Tk_DistanceToTextLayout, Tk_IntersectTextLayout, Tk_TextLayoutToPostscript – routines to measure and display single-font, multi-line, justified text. Synopsis #include <tk.h> Tk_TextLayout Tk_ComputeTextLayout(tkfont, string, numChars, wrapLength, justify, flags, widthPtr, heightPtr) void Tk_FreeTextLayout(layout) void Tk_DrawTextLayout(display, drawable, gc, layout, x, y, firstChar, lastChar) void Tk_UnderlineTextLayout(display, drawable, gc, layout, x, y, underline) int Tk_PointToChar(layout, x, y) int…

  • |

    Tk_DrawFocusHighlight (3) Linux Manual Page

    Tk_DrawFocusHighlight – draw the traversal highlight ring for a widget Synopsis #include <tk.h> Tk_DrawFocusHighlight(tkwin, gc, width, drawable) Arguments Tk_Window tkwin (in) Window for which the highlight is being drawn. Used to retrieve the window’s dimensions, among other things. GC gc (in) Graphics context to use for drawing the highlight. int width (in) Width of the…

  • |

    Tk_DrawChars (3) Linux Manual Page

    Tk_MeasureChars, Tk_TextWidth, Tk_DrawChars, Tk_UnderlineChars – routines to measure and display simple single-line strings. Synopsis #include <tk.h> int Tk_MeasureChars(tkfont, string, numBytes, maxPixels, flags, lengthPtr) int Tk_TextWidth(tkfont, string, numBytes) Tk_DrawChars(display, drawable, gc, tkfont, string, numBytes, x, y) Tk_UnderlineChars(display, drawable, gc, tkfont, string, x, y, firstByte, lastByte) Arguments Tk_Font tkfont (in) Token for font in which text is…

  • |

    Tk_Draw3DRectangle (3) Linux Manual Page

    Tk_Alloc3DBorderFromObj, Tk_Get3DBorder, Tk_Get3DBorderFromObj, Tk_Draw3DRectangle, Tk_Fill3DRectangle, Tk_Draw3DPolygon, Tk_Fill3DPolygon, Tk_3DVerticalBevel, Tk_3DHorizontalBevel, Tk_SetBackgroundFromBorder, Tk_NameOf3DBorder, Tk_3DBorderColor, Tk_3DBorderGC, Tk_Free3DBorderFromObj, Tk_Free3DBorder – draw borders with three-dimensional appearance Synopsis #include <tk.h> Tk_3DBorder Tk_Alloc3DBorderFromObj(interp, tkwin, objPtr) Tk_3DBorder Tk_Get3DBorder(interp, tkwin, colorName) Tk_3DBorder Tk_Get3DBorderFromObj(tkwin, objPtr) void Tk_Draw3DRectangle(tkwin, drawable, border, x, y, width, height, borderWidth, relief) void Tk_Fill3DRectangle(tkwin, drawable, border, x, y, width, height, borderWidth, relief)…

  • |

    Tk_Draw3DPolygon (3) Linux Manual Page

    Tk_Alloc3DBorderFromObj, Tk_Get3DBorder, Tk_Get3DBorderFromObj, Tk_Draw3DRectangle, Tk_Fill3DRectangle, Tk_Draw3DPolygon, Tk_Fill3DPolygon, Tk_3DVerticalBevel, Tk_3DHorizontalBevel, Tk_SetBackgroundFromBorder, Tk_NameOf3DBorder, Tk_3DBorderColor, Tk_3DBorderGC, Tk_Free3DBorderFromObj, Tk_Free3DBorder – draw borders with three-dimensional appearance Synopsis #include <tk.h> Tk_3DBorder Tk_Alloc3DBorderFromObj(interp, tkwin, objPtr) Tk_3DBorder Tk_Get3DBorder(interp, tkwin, colorName) Tk_3DBorder Tk_Get3DBorderFromObj(tkwin, objPtr) void Tk_Draw3DRectangle(tkwin, drawable, border, x, y, width, height, borderWidth, relief) void Tk_Fill3DRectangle(tkwin, drawable, border, x, y, width, height, borderWidth, relief)…

  • |

    Tk_DistanceToTextLayout (3) Linux Manual Page

    Tk_ComputeTextLayout, Tk_FreeTextLayout, Tk_DrawTextLayout, Tk_UnderlineTextLayout, Tk_PointToChar, Tk_CharBbox, Tk_DistanceToTextLayout, Tk_IntersectTextLayout, Tk_TextLayoutToPostscript – routines to measure and display single-font, multi-line, justified text. Synopsis #include <tk.h> Tk_TextLayout Tk_ComputeTextLayout(tkfont, string, numChars, wrapLength, justify, flags, widthPtr, heightPtr) void Tk_FreeTextLayout(layout) void Tk_DrawTextLayout(display, drawable, gc, layout, x, y, firstChar, lastChar) void Tk_UnderlineTextLayout(display, drawable, gc, layout, x, y, underline) int Tk_PointToChar(layout, x, y) int…

  • |

    Tk_DisplayName (3) Linux Manual Page

    Tk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsContainer, Tk_IsEmbedded, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop, Tk_InternalBorderBottom, Tk_Visual, Tk_Depth, Tk_Colormap, Tk_Interp – retrieve information from Tk’s local data structure Synopsis #include <tk.h> Window Tk_WindowId(tkwin) Tk_Window Tk_Parent(tkwin) Display * Tk_Display(tkwin) const char * Tk_DisplayName(tkwin) int Tk_ScreenNumber(tkwin) Screen * Tk_Screen(tkwin)…

  • |

    Tk_Display (3) Linux Manual Page

    Tk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsContainer, Tk_IsEmbedded, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop, Tk_InternalBorderBottom, Tk_Visual, Tk_Depth, Tk_Colormap, Tk_Interp – retrieve information from Tk’s local data structure Synopsis #include <tk.h> Window Tk_WindowId(tkwin) Tk_Window Tk_Parent(tkwin) Display * Tk_Display(tkwin) const char * Tk_DisplayName(tkwin) int Tk_ScreenNumber(tkwin) Screen * Tk_Screen(tkwin)…

  • |

    Tk_DestroyWindow (3) Linux Manual Page

    Tk_CreateWindow, Tk_CreateWindowFromPath, Tk_DestroyWindow, Tk_MakeWindowExist – create or delete window Synopsis #include <tk.h> Tk_Window Tk_CreateWindow(interp, parent, name, topLevScreen) Tk_Window Tk_CreateAnonymousWindow(interp, parent, topLevScreen) Tk_Window Tk_CreateWindowFromPath(interp, tkwin, pathName, topLevScreen) Tk_DestroyWindow(tkwin) Tk_MakeWindowExist(tkwin) Arguments Tcl_Interp *interp (out) Tcl interpreter to use for error reporting. If no error occurs, then *interp is not modified. Tk_Window parent (in) Token for the window…

  • |

    Tk_Depth (3) Linux Manual Page

    Tk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsContainer, Tk_IsEmbedded, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_InternalBorderLeft, Tk_InternalBorderRight, Tk_InternalBorderTop, Tk_InternalBorderBottom, Tk_Visual, Tk_Depth, Tk_Colormap, Tk_Interp – retrieve information from Tk’s local data structure Synopsis #include <tk.h> Window Tk_WindowId(tkwin) Tk_Window Tk_Parent(tkwin) Display * Tk_Display(tkwin) const char * Tk_DisplayName(tkwin) int Tk_ScreenNumber(tkwin) Screen * Tk_Screen(tkwin)…

  • |

    Tk_DeleteSelHandler (3) Linux Manual Page

    Tk_CreateSelHandler, Tk_DeleteSelHandler – arrange to handle requests for a selection Synopsis #include <tk.h> Tk_CreateSelHandler(tkwin, selection, target, proc, clientData, format) Tk_DeleteSelHandler(tkwin, selection, target) Arguments Tk_Window tkwin (in) Window for which proc will provide selection information. Atom selection (in) The name of the selection for which proc will provide selection information. Atom target (in) Form in which…

  • |

    Tk_DeleteOptionTable (3) Linux Manual Page

    Tk_CreateOptionTable, Tk_DeleteOptionTable, Tk_InitOptions, Tk_SetOptions, Tk_FreeSavedOptions, Tk_RestoreSavedOptions, Tk_GetOptionValue, Tk_GetOptionInfo, Tk_FreeConfigOptions, Tk_Offset – process configuration options Synopsis #include <tk.h> Tk_OptionTable Tk_CreateOptionTable(interp, templatePtr) Tk_DeleteOptionTable(optionTable) int Tk_InitOptions(interp, recordPtr, optionTable, tkwin) int Tk_SetOptions(interp, recordPtr, optionTable, objc, objv, tkwin, savePtr, maskPtr) Tk_FreeSavedOptions(savedPtr) Tk_RestoreSavedOptions(savedPtr) Tcl_Obj * Tk_GetOptionValue(interp, recordPtr, optionTable, namePtr, tkwin) Tcl_Obj * Tk_GetOptionInfo(interp, recordPtr, optionTable, namePtr, tkwin) Tk_FreeConfigOptions(recordPtr, optionTable, tkwin) int…

  • |

    Tk_DeleteImage (3) Linux Manual Page

    Tk_DeleteImage – Destroy an image. Synopsis #include <tk.h> Tk_DeleteImage(interp, name) Arguments Tcl_Interp *interp (in) Interpreter for which the image was created. const char *name (in) Name of the image. Description Tk_DeleteImage deletes the image given by interp and name, if there is one. All instances of that image will redisplay as empty regions. If the…

  • |

    Tk_DeleteGenericHandler (3) Linux Manual Page

    Tk_CreateGenericHandler, Tk_DeleteGenericHandler – associate procedure callback with all X events Synopsis #include <tk.h> Tk_CreateGenericHandler(proc, clientData) Tk_DeleteGenericHandler(proc, clientData) Arguments Tk_GenericProc *proc (in) Procedure to invoke whenever any X event occurs on any display. ClientData clientData (in) Arbitrary one-word value to pass to proc. Description Tk_CreateGenericHandler arranges for proc to be invoked in the future whenever any…

  • |

    Tk_DeleteEventHandler (3) Linux Manual Page

    Tk_CreateEventHandler, Tk_DeleteEventHandler – associate procedure callback with an X event Synopsis #include <tk.h> Tk_CreateEventHandler(tkwin, mask, proc, clientData) Tk_DeleteEventHandler(tkwin, mask, proc, clientData) Arguments Tk_Window tkwin (in) Token for window in which events may occur. unsigned long mask (in) Bit-mask of events (such as ButtonPressMask) for which proc should be called. Tk_EventProc *proc (in) Procedure to invoke…

  • |

    Tk_DeleteErrorHandler (3) Linux Manual Page

    Tk_CreateErrorHandler, Tk_DeleteErrorHandler – handle X protocol errors Synopsis #include <tk.h> Tk_ErrorHandler Tk_CreateErrorHandler(display, error, request, minor, proc, clientData) Tk_DeleteErrorHandler(handler) Arguments Display *display (in) Display whose errors are to be handled. int error (in) Match only error events with this value in the error_code field. If -1, then match any error_code value. int request (in) Match only…