Lines Matching defs:atom
7 * doesn't have to provide permanent storage for atom names,
22 * The following are a list of the predefined atom strings.
65 * Given a string, produce the equivalent X atom. This
74 * A new entry may be added to the local atom cache.
81 Tk_Window tkwin; /* Window token; map name to atom
83 char *name; /* Name to turn into atom. */
97 Atom atom;
99 atom = XInternAtom(dispPtr->display, name, False);
100 Tcl_SetHashValue(hPtr, atom);
101 hPtr2 = Tcl_CreateHashEntry(&dispPtr->atomTable, (char *) atom,
115 * it uses the local atom cache to avoid contacting the
120 * the atom given by "atom". This string's storage space
122 * not be modified by the caller. If "atom" doesn't exist
123 * on tkwin's display, then the string "?bad atom?" is returned.
132 Tk_GetAtomName(tkwin, atom)
133 Tk_Window tkwin; /* Window token; map atom to name
136 Atom atom; /* Atom whose name is wanted. */
146 hPtr = Tcl_FindHashEntry(&dispPtr->atomTable, (char *) atom);
154 name = XGetAtomName(dispPtr->display, atom);
157 name = "?bad atom?";
163 Tcl_SetHashValue(hPtr, atom);
168 hPtr = Tcl_CreateHashEntry(&dispPtr->atomTable, (char *) atom,
181 * Initialize atom-related information for a display.
197 Atom atom;
203 for (atom = 1; atom <= XA_LAST_PREDEFINED; atom++) {
204 hPtr = Tcl_FindHashEntry(&dispPtr->atomTable, (char *) atom);
209 name = atomNameArray[atom - 1];
212 Tcl_SetHashValue(hPtr, atom);
214 hPtr = Tcl_CreateHashEntry(&dispPtr->atomTable, (char *) atom,