Catch up with the recent API changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21122 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -25,13 +25,6 @@ enum {
|
|||||||
|
|
||||||
// missing operators in BPoint
|
// missing operators in BPoint
|
||||||
|
|
||||||
BPoint
|
|
||||||
operator-(const BPoint& p)
|
|
||||||
{
|
|
||||||
return BPoint(-p.x, -p.y);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BPoint
|
BPoint
|
||||||
operator+(const BPoint& p, const BSize& size)
|
operator+(const BPoint& p, const BSize& size)
|
||||||
{
|
{
|
||||||
@@ -100,7 +93,7 @@ public:
|
|||||||
|
|
||||||
BSize Size() const
|
BSize Size() const
|
||||||
{
|
{
|
||||||
return BSize(Frame());
|
return Frame().Size();
|
||||||
}
|
}
|
||||||
|
|
||||||
BPoint LocationInContainer() const
|
BPoint LocationInContainer() const
|
||||||
@@ -798,8 +791,7 @@ public:
|
|||||||
// wrapper view
|
// wrapper view
|
||||||
fWrapperView = new WrapperView(BRect(10, 10, 100, 100),
|
fWrapperView = new WrapperView(BRect(10, 10, 100, 100),
|
||||||
new BButton(BRect(0, 0, 9, 9), "test button", "Ooh, press me!",
|
new BButton(BRect(0, 0, 9, 9), "test button", "Ooh, press me!",
|
||||||
(BMessage*)NULL, B_FOLLOW_NONE,
|
(BMessage*)NULL, B_FOLLOW_NONE));
|
||||||
B_WILL_DRAW | B_NAVIGABLE | B_FULL_UPDATE_ON_RESIZE));
|
|
||||||
fWrapperView->GetView()->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNLIMITED));
|
fWrapperView->GetView()->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNLIMITED));
|
||||||
view->AddChild(fWrapperView);
|
view->AddChild(fWrapperView);
|
||||||
fWrapperView->SetSize(fWrapperView->PreferredSize());
|
fWrapperView->SetSize(fWrapperView->PreferredSize());
|
||||||
@@ -973,7 +965,7 @@ private:
|
|||||||
_UpdateSizeViews(fPreferredWidthView, fPreferredHeightView,
|
_UpdateSizeViews(fPreferredWidthView, fPreferredHeightView,
|
||||||
fWrapperView->GetView()->PreferredSize());
|
fWrapperView->GetView()->PreferredSize());
|
||||||
_UpdateSizeViews(fCurrentWidthView, fCurrentHeightView,
|
_UpdateSizeViews(fCurrentWidthView, fCurrentHeightView,
|
||||||
BRect(fWrapperView->GetView()->Frame()));
|
fWrapperView->GetView()->Frame().Size());
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user