4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
7 * \author John Levon <moz@compsoc.man.ac.uk>
16 * A simple class representing rectangular regions.
17 * It is expected that the box be constructed in
18 * normalised form, that is to say : x1,y1 is top-left,
19 * x2,y2 is bottom-right.
21 * Negative values are allowed.
29 /// Initialise the member variables.
30 Box(int x1_, int x2_, int y1_, int y2_);
33 * Returns true if the given co-ordinates are within
34 * the box. Check is exclusive (point on a border
37 bool contained(int x, int y);
41 std::ostream & operator<<(std::ostream &, Box const &);