Lines Matching defs:resWidth
353 FindDistance (w, fromPos, fromx, toPos, resWidth, resPos, resHeight)
358 int *resWidth; /* Distance between fromPos and resPos. */
372 *resWidth = 0;
377 *resWidth += CharWidth(w, fromx + *resWidth, c);
390 resPos, resWidth, resHeight)
398 int *resWidth; /* Actual width used. */
413 *resWidth = 0;
416 for (index = fromPos; *resWidth <= width && index < lastPos; index++) {
417 lastWidth = *resWidth;
421 *resWidth += CharWidth(w, fromx + *resWidth, c);
423 if ((c == SP || c == TAB) && *resWidth <= width) {
426 whiteSpaceWidth = *resWidth;
433 if (*resWidth > width && index > fromPos) {
434 *resWidth = lastWidth;
438 *resWidth = whiteSpaceWidth;
453 int resWidth, resHeight;
456 FindPosition(w, pos, fromx, width, FALSE, leftPos, &resWidth, &resHeight);