Merge from layout management branch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1150,6 +1150,23 @@ FrameMoved(origin);
|
||||
break;
|
||||
}
|
||||
|
||||
case B_LAYOUT_WINDOW:
|
||||
{
|
||||
if (fFlags & B_AUTO_UPDATE_SIZE_LIMITS) {
|
||||
// Get min/max constraints of the top view and enforce window
|
||||
// size limits respectively.
|
||||
BSize minSize = fTopView->MinSize();
|
||||
BSize maxSize = fTopView->MaxSize();
|
||||
SetSizeLimits(minSize.width, maxSize.width,
|
||||
minSize.height, maxSize.height);
|
||||
}
|
||||
|
||||
// do the actual layout
|
||||
fTopView->Layout(false);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
BLooper::DispatchMessage(msg, target);
|
||||
break;
|
||||
@@ -2214,6 +2231,27 @@ BWindow::Run()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BWindow::SetLayout(BLayout* layout)
|
||||
{
|
||||
fTopView->SetLayout(layout);
|
||||
}
|
||||
|
||||
|
||||
BLayout*
|
||||
BWindow::GetLayout() const
|
||||
{
|
||||
return fTopView->GetLayout();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BWindow::InvalidateLayout(bool descendants)
|
||||
{
|
||||
fTopView->InvalidateLayout(descendants);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
BWindow::GetSupportedSuites(BMessage *data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user