Lines Matching refs:width
74 u_int start, u_int width) in format_update_ranges() argument
85 if (fr->end <= start || fr->start >= start + width) { in format_update_ranges()
92 if (fr->end > start + width) in format_update_ranges()
93 fr->end = start + width; in format_update_ranges()
111 u_int width) in format_draw_put() argument
118 screen_write_fast_copy(octx, s, start, 0, width, 1); in format_draw_put()
119 format_update_ranges(frs, s, offset, start, width); in format_draw_put()
125 u_int ocx, u_int ocy, u_int offset, u_int width, struct screen *list, in format_draw_put_list() argument
132 if (width >= list->cx) { in format_draw_put_list()
133 format_draw_put(octx, ocx, ocy, list, frs, offset, 0, width); in format_draw_put_list()
139 if (focus_centre < width / 2) in format_draw_put_list()
142 start = focus_centre - width / 2; in format_draw_put_list()
143 if (start + width > list->cx) in format_draw_put_list()
144 start = list->cx - width; in format_draw_put_list()
147 if (start != 0 && width > list_left->cx) { in format_draw_put_list()
152 width -= list_left->cx; in format_draw_put_list()
154 if (start + width < list->cx && width > list_right->cx) { in format_draw_put_list()
155 screen_write_cursormove(octx, ocx + offset + width - in format_draw_put_list()
159 width -= list_right->cx; in format_draw_put_list()
163 format_draw_put(octx, ocx, ocy, list, frs, offset, start, width); in format_draw_put_list()
647 format_leading_hashes(const char *cp, u_int *n, u_int *width) in format_leading_hashes() argument
652 *width = 0; in format_leading_hashes()
657 *width = (*n / 2); in format_leading_hashes()
659 *width = (*n / 2) + 1; in format_leading_hashes()
662 *width = (*n / 2); in format_leading_hashes()
713 u_int ocx = os->cx, ocy = os->cy, n, i, width[TOTAL]; in format_draw() local
746 width[i] = 0; in format_draw()
766 width[current] += n; in format_draw()
777 width[current] += (n / 2); in format_draw()
781 width[current]++; in format_draw()
809 width[current] += ud->width; in format_draw()
966 log_debug("%s: width %s is %u", __func__, names[i], width[i]); in format_draw()
1078 u_int n, leading_width, width = 0; in format_width() local
1086 width += leading_width; in format_width()
1098 width += ud.width; in format_width()
1102 width++; in format_width()
1107 return (width); in format_width()
1120 u_int n, width = 0, leading_width; in format_trim_left() local
1126 if (width >= limit) in format_trim_left()
1130 if (leading_width > limit - width) in format_trim_left()
1131 leading_width = limit - width; in format_trim_left()
1139 width += leading_width; in format_trim_left()
1154 if (width + ud.width <= limit) { in format_trim_left()
1158 width += ud.width; in format_trim_left()
1164 if (width + 1 <= limit) in format_trim_left()
1166 width++; in format_trim_left()
1181 u_int width = 0, total_width, skip, n; in format_trim_right() local
1196 if (width <= skip) { in format_trim_right()
1197 if (skip - width >= copy_width) in format_trim_right()
1200 copy_width -= (skip - width); in format_trim_right()
1210 width += leading_width; in format_trim_right()
1224 if (width >= skip) { in format_trim_right()
1228 width += ud.width; in format_trim_right()
1234 if (width >= skip) in format_trim_right()
1236 width++; in format_trim_right()