"Fossies" - the Fresh Open Source Software Archive

Member "SAOImageDS9/tk8.6/doc/InternAtom.3" (13 Nov 2019, 1912 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_InternAtom

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
KEYWORDS

NAME

Tk_InternAtom, Tk_GetAtomName − manage cache of X atoms

SYNOPSIS

#include <tk.h>

Atom
Tk_InternAtom(
tkwin, name)

const char *
Tk_GetAtomName(
tkwin, atom)

ARGUMENTS

Token for window. Used to map atom or name relative to a particular display. String name for which atom is desired. Atom for which corresponding string name is desired.

DESCRIPTION

These procedures are similar to the Xlib procedures XInternAtom and XGetAtomName. Tk_InternAtom returns the atom identifier associated with string given by name; the atom identifier is only valid for the display associated with tkwin. Tk_GetAtomName returns the string associated with atom on tkwin’s display. The string returned by Tk_GetAtomName is in Tk’s storage: the caller need not free this space when finished with the string, and the caller should not modify the contents of the returned string. If there is no atom atom on tkwin’s display, then Tk_GetAtomName returns the string

Tk caches the information returned by Tk_InternAtom and Tk_GetAtomName so that future calls for the same information can be serviced from the cache without contacting the server. Thus Tk_InternAtom and Tk_GetAtomName are generally much faster than their Xlib counterparts, and they should be used in place of the Xlib procedures.

KEYWORDS

atom, cache, display