Lines Matching refs:width
154 * Calculate width and height of displayed text in pixels
166 unsigned int width, height, bw, depth;
168 &width, &height, &bw, &depth)) {
170 lw->label.label_width = width;
186 int width = XTextWidth(fs, label, (int)(nl - label));
187 if (width > lw->label.label_width) lw->label.label_width = width;
194 int width = XTextWidth(fs, label, strlen(label));
195 if (width > lw->label.label_width) lw->label.label_width = width;
257 if (lw->core.width == 0)
258 lw->core.width = lw->label.label_width + 2 * lw->label.internal_width;
325 static void _Reposition(lw, width, height, dx, dy)
327 Dimension width, height;
338 newPos = width -
343 newPos = (width - lw->label.label_width) / 2;
360 _Reposition(lw, w->core.width, w->core.height, &dx, &dy);
418 if ((curlw->core.width == reqlw->core.width) && !checks[WIDTH])
419 newlw->core.width = (newlw->label.label_width +
443 _Reposition(newlw, curlw->core.width, curlw->core.height, &dx, &dy);
469 preferred->width = lw->label.label_width + 2 * lw->label.internal_width;
473 intended->width == preferred->width &&
476 else if (preferred->width == w->core.width &&