Lines Matching defs:property
52 * Given a screen, a visual, and a property, XmuLookupStandardColormap()
53 * will determine the best allocation for the property under the specified
58 * If replace is true, any previous definition of the property will be
59 * replaced. If retain is true, the property and the colormap will be
61 * pre-existing property definitions which are not replaced cannot be made
68 * standard colormap property on a monochrome visual, or, requesting an
74 unsigned int depth, Atom property,
81 * property - a standard colormap property
113 /* If the requested property already exists on this screen, and,
118 if (lookup(dpy, screen, visualid, property, (XStandardColormap *) NULL,
124 /* Determine the best allocation for this property under the requested
129 if (!XmuGetColormapAllocation(vinfo, property, &r_max, &g_max, &b_max)) {
134 cmap = (property == XA_RGB_DEFAULT_MAP &&
150 colormap = XmuStandardColormap(dpy, screen, visualid, depth, property,
153 /* Set the standard colormap property */
158 if (lookup(dpy, screen, visualid, property, colormap, replace) &&
160 /* Someone has defined the property since we last looked.
184 /* Lookup a standard colormap property. If the property is RGB_DEFAULT_MAP,
187 * by the map and remove the property. Return true if the map exists,
193 * describes a standard colormap of the specified property. It will be made
199 lookup(Display *dpy, int screen, VisualID visualid, Atom property,
205 * property - specifies colormap property name
215 /* The property does not already exist */
217 if (! XGetRGBColormaps(dpy, win, &stdcmaps, &count, property)) {
219 XSetRGBColormaps(dpy, win, cnew, 1, property);
223 /* The property exists and is not describing the RGB_DEFAULT_MAP */
225 if (property != XA_RGB_DEFAULT_MAP) {
227 XmuDeleteStandardColormap(dpy, screen, property);
229 XSetRGBColormaps(dpy, win, cnew, 1, property);
235 /* The property exists and is RGB_DEFAULT_MAP */
240 /* No RGB_DEFAULT_MAP property matches the given visualid */
271 XSetRGBColormaps(dpy, win, s, ++count, property);
278 /* Found an RGB_DEFAULT_MAP property with a matching visualid */
288 XmuDeleteStandardColormap(dpy, screen, property);
290 XSetRGBColormaps(dpy, win, cnew, 1, property);
317 XSetRGBColormaps(dpy, win, stdcmaps, count, property);