Rename Point to Point2D to avoid a cocoa name clash

This commit is contained in:
Henrik Rydgård
2024-05-24 22:51:50 +02:00
parent 7e7d1d587a
commit 455e28da6c
11 changed files with 43 additions and 43 deletions
+2 -2
View File
@@ -288,7 +288,7 @@ bool ScrollView::SubviewFocused(View *view) {
return true;
}
NeighborResult ScrollView::FindScrollNeighbor(View *view, const Point &target, FocusDirection direction, NeighborResult best) {
NeighborResult ScrollView::FindScrollNeighbor(View *view, const Point2D &target, FocusDirection direction, NeighborResult best) {
if (ContainsSubview(view) && views_[0]->IsViewGroup()) {
ViewGroup *vg = static_cast<ViewGroup *>(views_[0]);
int found = -1;
@@ -315,7 +315,7 @@ NeighborResult ScrollView::FindScrollNeighbor(View *view, const Point &target, F
}
// Okay, now where is our ideal target?
Point targetPos = view->GetBounds().Center();
Point2D targetPos = view->GetBounds().Center();
if (orientation_ == ORIENT_VERTICAL)
targetPos.y += mult * bounds_.h;
else