"Fossies" - the Fresh Open Source Software Archive

Member "SAOImageDS9/tk8.6/doc/SetVisual.3" (13 Nov 2019, 1770 Bytes) of package /linux/misc/ds9.8.1.tar.gz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

Tk_SetWindowVisual

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
KEYWORDS

NAME

Tk_SetWindowVisual − change visual characteristics of window

SYNOPSIS

#include <tk.h>

int
Tk_SetWindowVisual
(tkwin, visual, depth, colormap)

ARGUMENTS

Token for window. New visual type to use for tkwin. Number of bits per pixel desired for tkwin. New colormap for tkwin, which must be compatible with visual and depth.

DESCRIPTION

When Tk creates a new window it assigns it the default visual characteristics (visual, depth, and colormap) for its screen. Tk_SetWindowVisual 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 does not 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.

KEYWORDS

colormap, depth, visual