Lines Matching defs:resWidth
377 FindDistance (w, fromPos, fromx, toPos, resWidth, resPos, resHeight)
382 int *resWidth; /* Distance between fromPos and resPos. */
396 *resWidth = 0;
401 *resWidth += CharWidth(w, fromx + *resWidth, c);
414 resPos, resWidth, resHeight)
422 int *resWidth; /* Actual width used. */
437 *resWidth = 0;
440 for (index = fromPos; *resWidth <= width && index < lastPos; index++) {
441 lastWidth = *resWidth;
445 *resWidth += CharWidth(w, fromx + *resWidth, c);
447 if ((c == XawSP || c == XawTAB) && *resWidth <= width) {
450 whiteSpaceWidth = *resWidth;
457 if (*resWidth > width && index > fromPos) {
458 *resWidth = lastWidth;
462 *resWidth = whiteSpaceWidth;
477 int resWidth, resHeight;
480 FindPosition(w, pos, fromx, width, FALSE, leftPos, &resWidth, &resHeight);