#include "Box.h"
-#include "support/std_ostream.h"
+#include <ostream>
+using namespace std;
namespace lyx {
-using std::ostream;
-
Box::Box()
: x1(0), x2(0), y1(0), y2(0)
{}
-bool Box::contains(int x, int y)
+bool Box::contains(int x, int y) const
{
return (x1 < x && x2 > x && y1 < y && y2 > y);
}
{
return os << "x1,y1: " << b.x1 << ',' << b.y1
<< " x2,y2: " << b.x2 << ',' << b.y2
- << std::endl;
+ << endl;
}