Lines Matching defs:template
105 XVisualInfo template, *visInfoList, *bestPtr;
115 * Parse string and set up a template for use in searching for
124 * use the information about the visual as a template for the
153 template.depth = Tk_Depth(tkwin2);
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;
187 template.visualid = visualId;
201 template.class = -1;
206 template.class = dictPtr->class;
210 if (template.class == -1) {
223 template.depth = 10000;
225 if (Tcl_GetInt(interp, p, &template.depth) != TCL_OK) {
237 * Find all visuals that match the template we've just created,
241 template.screen = Tk_ScreenNumber(tkwin);
243 visInfoList = XGetVisualInfo(Tk_Display(tkwin), mask, &template,
285 if (visInfoList[i].depth >= template.depth) {
289 if (bestPtr->depth < template.depth) {