SysTutorials Posts

  • |

    Tk_ResizeWindow (3) Linux Manual Page

    Tk_ConfigureWindow, Tk_MoveWindow, Tk_ResizeWindow, Tk_MoveResizeWindow, Tk_SetWindowBorderWidth, Tk_ChangeWindowAttributes, Tk_SetWindowBackground, Tk_SetWindowBackgroundPixmap, Tk_SetWindowBorder, Tk_SetWindowBorderPixmap, Tk_SetWindowColormap, Tk_DefineCursor, Tk_UndefineCursor – change window configuration or attributes Synopsis #include <tk.h> Tk_ConfigureWindow(tkwin, valueMask, valuePtr) Tk_MoveWindow(tkwin, x, y) Tk_ResizeWindow(tkwin, width, height) Tk_MoveResizeWindow(tkwin, x, y, width, height) Tk_SetWindowBorderWidth(tkwin, borderWidth) Tk_ChangeWindowAttributes(tkwin, valueMask, attsPtr) Tk_SetWindowBackground(tkwin, pixel) Tk_SetWindowBackgroundPixmap(tkwin, pixmap) Tk_SetWindowBorder(tkwin, pixel) Tk_SetWindowBorderPixmap(tkwin, pixmap) Tk_SetWindowColormap(tkwin, colormap) Tk_DefineCursor(tkwin, cursor) Tk_UndefineCursor(tkwin) Arguments…

  • |

    Tk_ResetUserInactiveTime (3) Linux Manual Page

    Tk_GetUserInactiveTime, Tk_ResetUserInactiveTime – discover user inactivity time Synopsis #include <tk.h> long Tk_GetUserInactiveTime(display) Tk_GetUserInactiveTime(display) Arguments Display *display (in) The display on which the user inactivity timer is to be queried or reset. Description Tk_GetUserInactiveTime returns the number of milliseconds that have passed since the last user interaction (usually via keyboard or mouse) with the respective display….

  • |

    Tk_ReqWidth (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_ReqHeight (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_RedrawImage (3) Linux Manual Page

    Tk_GetImage, Tk_RedrawImage, Tk_SizeOfImage, Tk_FreeImage – use an image in a widget Synopsis #include <tk.h> Tk_Image Tk_GetImage(interp, tkwin, name, changeProc, clientData) Tk_RedrawImage(image, imageX, imageY, width, height, drawable, drawableX, drawableY) Tk_SizeOfImage(image, widthPtr, heightPtr) Tk_FreeImage(image) Arguments Tcl_Interp *interp (in) Place to leave error message. Tk_Window tkwin (in) Window in which image will be used. const char *name (in)…

  • |

    Tk_QueueWindowEvent (3) Linux Manual Page

    Tk_CollapseMotionEvents, Tk_QueueWindowEvent – Add a window event to the Tcl event queue Synopsis #include <tk.h> int Tk_CollapseMotionEvents(display, collapse) Tk_QueueWindowEvent(eventPtr, position) Arguments Display *display (in) Display for which to control motion event collapsing. int collapse (in) Indicates whether motion events should be collapsed or not. XEvent *eventPtr (in) An event to add to the event queue….

  • |

    Tk_PreserveColormap (3) Linux Manual Page

    Tk_GetColormap, Tk_PreserveColormap, Tk_FreeColormap – allocate and free colormaps Synopsis #include <tk.h> Colormap Tk_GetColormap(interp, tkwin, string) Tk_PreserveColormap(display, colormap) Tk_FreeColormap(display, colormap) Arguments Tcl_Interp *interp (in) Interpreter to use for error reporting. Tk_Window tkwin (in) Token for window in which colormap will be used. const char *string (in) Selects a colormap: either new or the name of a…

  • |

    Tk_PostscriptFontName (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_PointToChar (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_PhotoSetSize (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_PhotoPutZoomedBlock (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_PhotoPutBlock (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_PhotoGetSize (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_PhotoGetImage (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_PhotoExpand (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_PhotoBlank (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_PathName (3) Linux Manual Page

    Tk_Name, Tk_PathName, Tk_NameToWindow – convert between names and window tokens Synopsis #include <tk.h> Tk_Uid Tk_Name(tkwin) char * Tk_PathName(tkwin) Tk_Window Tk_NameToWindow(interp, pathName, tkwin) Arguments Tk_Window tkwin (in) Token for window. Tcl_Interp *interp (out) Interpreter to use for error reporting. const char *pathName (in) Character string containing path name of window. Description Each window managed by Tk…

  • |

    Tk_ParseArgv (3) Linux Manual Page

    Tk_ParseArgv – process command-line options Synopsis #include <tk.h> int Tk_ParseArgv(interp, tkwin, argcPtr, argv, argTable, flags) Arguments Tcl_Interp *interp (in) Interpreter to use for returning error messages. Tk_Window tkwin (in) Window to use when arguments specify Tk options. If NULL, then no Tk options will be processed. int argcPtr (in/out) Pointer to number of arguments in…

  • |

    Tk_Parent (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_OwnSelection (3) Linux Manual Page

    Tk_OwnSelection – make a window the owner of the primary selection Synopsis #include <tk.h> Tk_OwnSelection(tkwin, selection, proc, clientData) Arguments Tk_Window tkwin (in) Window that is to become new selection owner. Atom selection (in) The name of the selection to be owned, such as XA_PRIMARY. Tk_LostSelProc *proc (in) Procedure to invoke when tkwin loses selection ownership…