BSize BListView::PreferredSize() { // We need a stable preferred size: the BView implementation uses // GetPreferredSize(), which by default just returns the current size. return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), BSize(100, 50)); }
BSize BAbstractSpinner::PreferredSize() { _ValidateLayoutData(); return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), fLayoutData->min); }
BSize BTextControl::PreferredSize() { CALLED(); _ValidateLayoutData(); return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), fLayoutData->min); }
BSize BMenuField::PreferredSize() { CALLED(); _ValidateLayoutData(); return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), fLayoutData->min); }
BSize BBox::PreferredSize() { _ValidateLayoutData(); BSize size = (GetLayout() ? GetLayout()->PreferredSize() : fLayoutData->preferred); return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), size); }
BSize BStatusBar::PreferredSize() { float width, height; GetPreferredSize(&width, &height); return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), BSize(width, height)); }
BSize BSlider::PreferredSize() { BSize preferredSize = _ValidateMinSize(); if (fOrientation == B_HORIZONTAL) preferredSize.width = max_c(100.0, preferredSize.width); else preferredSize.height = max_c(100.0, preferredSize.height); return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), preferredSize); }
BSize BButton::PreferredSize() { return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), _ValidatePreferredSize()); }
BSize BStringView::PreferredSize() { return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), _ValidatePreferredSize()); }
// PreferredSize BSize IconOptionsControl::PreferredSize() { _ValidateLayoutData(); return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), fLayoutData->min); }
BSize RatingView::PreferredSize() { return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), MinSize()); }
BSize BitmapView::PreferredSize() { BSize size = MinSize(); return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), size); }
BSize PaneSwitch::PreferredSize() { return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), MinSize()); }
// PreferredSize BSize ColorField::PreferredSize() { return BLayoutUtils::ComposeSize(ExplicitPreferredSize(), MinSize()); }