Lines Matching refs:width
136 … size_t width; /* If == 0 format this as wide as necessary. If SIZE_MAX format this to console member
168 .width = SIZE_MAX, in table_new_raw()
1079 void table_set_width(Table *t, size_t width) { in table_set_width() argument
1082 t->width = width; in table_set_width()
1848 size_t width, height; in table_data_requested_width_height() local
1867 r = console_width_height(t, &width, &height); in table_data_requested_width_height()
1871 if (d->maximum_width != SIZE_MAX && width > d->maximum_width) in table_data_requested_width_height()
1872 width = d->maximum_width; in table_data_requested_width_height()
1874 if (width < d->minimum_width) in table_data_requested_width_height()
1875 width = d->minimum_width; in table_data_requested_width_height()
1878 *ret_width = width; in table_data_requested_width_height()
1985 *width = NULL; in table_print() local
2053 width ? width[j] : SIZE_MAX, in table_print()
2067 width ? width[j] : SIZE_MAX, in table_print()
2121 if (t->width != 0 && t->width != SIZE_MAX) in table_print()
2122 table_effective_width = t->width; in table_print()
2123 else if (t->width == 0 || in table_print()
2135 if (!width) in table_print()
2136 width = newa(size_t, display_columns); in table_print()
2150 … width[j] = requested_width[j] + extra / (display_columns - j); /* Avoid division by zero */ in table_print()
2152 … width[j] = requested_width[j] + (extra * column_weight[j]) / weight_sum; in table_print()
2154 if (maximum_width[j] != SIZE_MAX && width[j] > maximum_width[j]) in table_print()
2155 width[j] = maximum_width[j]; in table_print()
2157 if (width[j] < minimum_width[j]) in table_print()
2158 width[j] = minimum_width[j]; in table_print()
2160 delta = LESS_BY(width[j], requested_width[j]); in table_print()
2182 width[j] = SIZE_MAX; in table_print()
2191 if (width[j] != SIZE_MAX) in table_print()
2211 width[j] = w; in table_print()
2264 field = table_data_format(t, d, false, width[j], NULL); in table_print()
2282 if (l > width[j]) { in table_print()
2285 …buffer = ellipsize(field, width[j], /* ellipsize at the end if we truncated coming lines, otherwis… in table_print()
2305 buffer = ellipsize(padded, width[j], 100); in table_print()
2313 if (l < width[j]) { in table_print()
2317 … aligned = align_string_mem(field, d->url, width[j], d->align_percent); in table_print()
2332 if (l >= width[j] && d->url) { in table_print()