Lines Matching refs:visual

20  * The table below maps from symbolic names for visual classes
50 Visual *visual; /* Visual for which colormap was
60 * visual, so it can be shared. */
71 * Given a string identifying a particular kind of visual, this
72 * procedure returns a visual and depth that matches the specification.
75 * The return value is normally a pointer to a visual. If an
76 * error occurred in looking up the visual, NULL is returned and
78 * visual is returned to *depthPtr under normal returns. If
80 * suitable colormap for use with the visual in tkwin, and it
93 Tk_Window tkwin; /* Window in which visual will be
95 char *string; /* String describing visual. See
97 int *depthPtr; /* The depth of the returned visual
100 * colormap for visual is placed here.
107 Visual *visual;
116 * an appropriate visual.
123 * same screen as tkwin, then just use its visual. Otherwise
124 * use the information about the visual as a template for the
132 visual = Tk_Visual(tkwin2);
151 return visual;
154 template.class = visual->class;
155 template.red_mask = visual->red_mask;
156 template.green_mask = visual->green_mask;
157 template.blue_mask = visual->blue_mask;
158 template.colormap_size = visual->map_entries;
159 template.bits_per_rgb = visual->bits_per_rgb;
166 * Use the default visual for the window's screen.
178 * This is a visual ID.
183 Tcl_AppendResult(interp, "bad X identifier for visual: ",
211 Tcl_AppendResult(interp, "unknown or ambiguous visual name \"",
246 interp->result = "couldn't find an appropriate visual";
255 * 1. Depth: choose a visual with exactly the desired depth,
259 * 2. Class: some visual classes are more desirable than others;
260 * pick the visual with the most desirable class.
261 * 3. Default: the default visual for the screen gets preference
277 if (visInfoList[i].visual
304 visual = bestPtr->visual;
308 * If we need to find a colormap for this visual, do it now.
309 * If the visual is the default visual for the screen, then
316 if (visual == DefaultVisualOfScreen(Tk_Screen(tkwin))) {
321 if (cmapPtr->shareable && (cmapPtr->visual == visual)) {
329 RootWindowOfScreen(Tk_Screen(tkwin)), visual,
331 cmapPtr->visual = visual;
341 return visual;
390 cmapPtr->visual = Tk_Visual(tkwin);
400 * visual as tkwin (which means, among other things, that the