Query: tk_setwindowvisual
OS: opensolaris
Section: 3tk
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Tk_SetWindowVisual(3TK) Tk Library Procedures Tk_SetWindowVisual(3TK) __________________________________________________________________________________________________________________________________________________NAMETk_SetWindowVisual - change visual characteristics of windowSYNOPSIS#include <tk.h> int Tk_SetWindowVisual(tkwin, visual, depth, colormap)ARGUMENTSTk_Window tkwin (in) Token for window. Visual *visual (in) New visual type to use for tkwin. int depth (in) Number of bits per pixel desired for tkwin. Colormap colormap (in) New colormap for tkwin, which must be compatible with visual and depth. _________________________________________________________________DESCRIPTIONWhen Tk creates a new window it assigns it the default visual characteristics (visual, depth, and colormap) for its screen. Tk_SetWin- dowVisual may be called to change them. Tk_SetWindowVisual must be called before the window has actually been created in X (e.g. before Tk_MapWindow or Tk_MakeWindowExist has been invoked for the window). The safest thing is to call Tk_SetWindowVisual immediately after calling Tk_CreateWindow. If tkwin has already been created before Tk_SetWindowVisual is called then it returns 0 and doesn't make any changes; otherwise it returns 1 to signify that the operation completed successfully. Note: Tk_SetWindowVisual should not be called if you just want to change a window's colormap without changing its visual or depth; call Tk_SetWindowColormap instead.KEYWORDScolormap, depth, visualATTRIBUTESSee attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTk | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+NOTESSource for Tk is available on http://opensolaris.org. Tk 4.0 Tk_SetWindowVisual(3TK)
Related Man Pages |
---|
tk_freecolormap(3) - mojave |
tk_getcolormap(3) - mojave |
tk_freecolormap(3) - centos |
tk_freecolormap(3tk) - opensolaris |
tk_getvisual(3tk) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
Search/replace using visual block |