3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author John Levon <moz@compsoc.man.ac.uk>
9 // Code moved out of line and out of box.h by Angus (7 Jan 2002)
15 #include "support/LOstream.h"
20 Box::Box(int x1_, int x2_, int y1_, int y2_) :
21 x1(x1_), x2(x2_), y1(y1_), y2(y2_)
25 bool Box::contained(int x, int y)
27 return (x1 < x && x2 > x &&
32 ostream & operator<<(ostream & o, Box const & b)
34 return o << "x1,y1: " << b.x1 << ',' << b.y1
35 << " x2,y2: " << b.x2 << ',' << b.y2