3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
11 // Code moved out of line and out of box.h by Angus (7 Jan 2002)
17 #include "support/LOstream.h"
22 Box::Box(int x1_, int x2_, int y1_, int y2_) :
23 x1(x1_), x2(x2_), y1(y1_), y2(y2_)
27 bool Box::contained(int x, int y)
29 return (x1 < x && x2 > x && y1 < y && y2 > y);
33 ostream & operator<<(ostream & os, Box const & b)
35 return os << "x1,y1: " << b.x1 << ',' << b.y1
36 << " x2,y2: " << b.x2 << ',' << b.y2