multiplevisual(3w) — OLIT Widget Set
NAME
OlColormapOfObject, OlDepthOfObject, OlInternAtom, OlVisualOfObject
SYNOPSIS and DESCRIPTION
Each multiple visuals function returns a characteristic of an object. An object can be a widget or gadget.
OlColormapOfObject
#include <Xol/OpenLook.h>
. . .
extern Colormap OlColormapOfObject(
OlColormapOfObject
obtains the colormap associated with the
object.
OlDepthOfObject
#include <Xol/OpenLook.h>
. . .
extern int OlDepthOfObject(
OlDepthOfObject obtains the depth associated with the object.
OlInternAtom
#include <Xol/OpenLook.h>
. . .
Atom OlInternAtom(
Display ∗dpy,
String atom_name);
This function uses the Intrinsics XtRString to XtRAtom resource converter and the converter cache to store Atoms in the resource cache on a per display basis.
Applications using multiple display connections should use this function to cache Atoms across displays.
Note that for efficient use of the resource converter cache, the string ’name’ should be the same physical string for each invocation:
OlInternAtom(dpy, "foo");
OlInternAtom(dpy, "foo");
results in TWO entries in the resource converter cache, while
char ∗foo = "foo";
OlInternAtom(dpy, foo);
OlInternAtom(dpy, foo);
results in only one cache entry.
OlVisualOfObject
#include <Xol/OpenLook.h>
. . .
extern Visual ∗OlVisualOfObject(
Widget object);
OlVisualOfObject obtains the visual structure associated with the object.
Version 3.0 — Last change: 19 July 91