Lines Matching refs:width

34 BTitledColumn::BTitledColumn(const char* title, float width, float minWidth,
37 BColumn(width, minWidth, maxWidth, align),
50 float width = rect.Width() - (2 * kTEXT_MARGIN);
53 parent->TruncateString(&out_string, B_TRUNCATE_END, width + 2);
68 float width = rect.Width() - (2 * kTEXT_MARGIN);
86 + ((width - font.StringWidth(string)) / 2), y);
157 BStringField::SetWidth(float width)
159 fWidth = width;
194 BStringColumn::BStringColumn(const char* title, float width, float minWidth,
197 BTitledColumn(title, width, minWidth, maxWidth, align),
206 float width = rect.Width() - (2 * kTEXT_MARGIN);
209 bool updateNeeded = width != fieldWidth;
214 if (width < preferredWidth) {
215 parent->TruncateString(&out_string, fTruncate, width + 2);
219 field->SetWidth(width);
267 BDateField::SetWidth(float width)
269 fWidth = width;
311 BDateColumn::BDateColumn(const char* title, float width, float minWidth,
314 BTitledColumn(title, width, minWidth, maxWidth, align),
323 float width = rect.Width() - (2 * kTEXT_MARGIN);
350 if (output >= 0 && font.StringWidth(dateString) <= width)
357 if (font.StringWidth(dateString) > width) {
360 parent->TruncateString(&out_string, B_TRUNCATE_MIDDLE, width + 2);
364 field->SetWidth(width);
405 BSizeColumn::BSizeColumn(const char* title, float width, float minWidth,
408 BTitledColumn(title, width, minWidth, maxWidth, align)
424 float width = rect.Width() - (2 * kTEXT_MARGIN);
429 // we cannot use string_for_size due to the precision/cell width logic
454 if (font.StringWidth(string) > width) {
466 if (font.StringWidth(string) <= width)
473 parent->TruncateString(&string, B_TRUNCATE_MIDDLE, width + 2);
519 BIntegerColumn::BIntegerColumn(const char* title, float width, float minWidth,
522 BTitledColumn(title, width, minWidth, maxWidth, align)
533 float width = rect.Width() - (2 * kTEXT_MARGIN);
534 parent->TruncateString(&string, B_TRUNCATE_MIDDLE, width + 2);
549 GraphColumn::GraphColumn(const char* name, float width, float minWidth,
552 BIntegerColumn(name, width, minWidth, maxWidth, align)
585 float width = be_plain_font->StringWidth(percentString);
587 parent->MovePenTo(rect.left + rect.Width() / 2 - width / 2, rect.bottom - FontHeight());
619 BBitmapColumn::BBitmapColumn(const char* title, float width, float minWidth,
622 BTitledColumn(title, width, minWidth, maxWidth, align)