Beispiel #1
0
BSize
BListView::MinSize()
{
	// We need a stable min size: the BView implementation uses
	// GetPreferredSize(), which by default just returns the current size.
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), BSize(10, 10));
}
Beispiel #2
0
BSize
BTextControl::MinSize()
{
	CALLED();

	_ValidateLayoutData();
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), fLayoutData->min);
}
Beispiel #3
0
BSize
BitmapButton::MinSize()
{
	BSize size = BitmapView::MinSize();
	size.width += 6;
	size.height += 6;
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
}
Beispiel #4
0
BSize
BMenuField::MinSize()
{
	CALLED();

	_ValidateLayoutData();
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), fLayoutData->min);
}
Beispiel #5
0
BSize
BStatusBar::MinSize()
{
    float width, height;
    GetPreferredSize(&width, &height);

    return BLayoutUtils::ComposeSize(ExplicitMinSize(), BSize(width, height));
}
Beispiel #6
0
BSize
BBox::MinSize()
{
	_ValidateLayoutData();

	BSize size = (GetLayout() ? GetLayout()->MinSize() : fLayoutData->min);
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
}
Beispiel #7
0
BSize
URLInputGroup::URLTextView::MinSize()
{
	BSize min;
	min.height = ceilf(LineHeight(0) + kHorizontalTextRectInset);
		// we always add at least one pixel vertical inset top/bottom for
		// the text rect.
	min.width = min.height * 3;
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), min);
}
Beispiel #8
0
BSize
_BTextInput_::MinSize()
{
	BSize min;
	min.height = ceilf(LineHeight(0) + 2.0);
	// we always add at least one pixel vertical inset top/bottom for
	// the text rect.
	min.width = min.height * 3;
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), min);
}
Beispiel #9
0
// MinSize
BSize
ColorField::MinSize()
{
	BSize minSize;
	if (fOrientation == B_VERTICAL)
		minSize = BSize(4 + MAX_X / 17, 4 + MAX_Y / 5);
	else
		minSize = BSize(4 + MAX_X / 5, 4 + MAX_Y / 17);

	return BLayoutUtils::ComposeSize(ExplicitMinSize(), minSize);
}
Beispiel #10
0
BSize
_BMCMenuBar_::MinSize()
{
	BSize size;
	BMenuBar::GetPreferredSize(&size.width, &size.height);
	if (fShowPopUpMarker) {
		// account for popup indicator + a few pixels margin
		size.width += kPopUpIndicatorWidth;
	}

	return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
}
Beispiel #11
0
BSize
BitmapView::MinSize()
{
	BSize size(0.0f, 0.0f);

	if (fBitmap != NULL) {
		BRect bounds = fBitmap->Bounds();
		size.width = bounds.Width();
		size.height = bounds.Height();
	}

	return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
}
Beispiel #12
0
BSize
PaneSwitch::MinSize()
{
	BSize size;
	float onLabelWidth = StringWidth(fLabelOn);
	float offLabelWidth = StringWidth(fLabelOff);
	float labelWidth = max_c(onLabelWidth, offLabelWidth);
	size.width = sLatchSize;
	if (labelWidth > 0.0)
		size.width += ceilf(sLatchSize / 2.0) + labelWidth;

	font_height fontHeight;
	GetFontHeight(&fontHeight);
	size.height = ceilf(fontHeight.ascent) + ceilf(fontHeight.descent);
	size.height = max_c(size.height, sLatchSize);

	return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
}
BSize
BitmapView::MinSize()
{
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), BSize(90, 70));
}
Beispiel #14
0
BSize
BAbstractSpinner::MinSize()
{
	_ValidateLayoutData();
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), fLayoutData->min);
}
Beispiel #15
0
BSize
KeyboardLayoutView::MinSize()
{
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), BSize(100, 50));
}
Beispiel #16
0
BSize
BStringView::MinSize()
{
	return BLayoutUtils::ComposeSize(ExplicitMinSize(),
		_ValidatePreferredSize());
}
Beispiel #17
0
// MinSize
BSize
IconOptionsControl::MinSize()
{
	_ValidateLayoutData();
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), fLayoutData->min);
}
Beispiel #18
0
BSize
BButton::MinSize()
{
	return BLayoutUtils::ComposeSize(ExplicitMinSize(),
		_ValidatePreferredSize());
}
Beispiel #19
0
BSize
RatingView::MinSize()
{
	BSize size(16 * 5 + 2 * 4, 16 + 2);
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), size);
}
Beispiel #20
0
BSize
BSlider::MinSize()
{
	return BLayoutUtils::ComposeSize(ExplicitMinSize(),
		_ValidateMinSize());
}
Beispiel #21
0
/* virtual */
BSize
OutputView::MinSize()
{
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), BSize(620, 300));
}
BSize
PreviewView::MinSize()
{
	return BLayoutUtils::ComposeSize(ExplicitMinSize(), BSize(160, 100));
}