Move operator<<(std::ostream&, wxRect) overload to a header
This will allow reusing it in other tests too. Also make the output slightly more readable by formatting the rectangle as "{x,y w*h}" instead of "{x,y,w,h}". No real changes.
This commit is contained in:
@@ -67,3 +67,11 @@ std::ostream& operator<<(std::ostream& os, const wxPoint& p)
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const wxRect& r)
|
||||
{
|
||||
os << "{"
|
||||
<< r.x << ", " << r.y << " " << r.width << "*" << r.height
|
||||
<< "}";
|
||||
return os;
|
||||
}
|
||||
|
Reference in New Issue
Block a user