4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
18 * A simple class representing rectangular regions.
19 * It is expected that the box be constructed in
20 * normalised form, that is to say : x1,y1 is top-left,
21 * x2,y2 is bottom-right.
23 * Negative values are allowed.
32 /// Zero-initialise the member variables.
34 /// Initialise the member variables.
35 Box(int x1_, int x2_, int y1_, int y2_);
38 * Returns true if the given co-ordinates are within
39 * the box. Check is exclusive (point on a border
42 bool contains(int x, int y);
46 std::ostream & operator<<(std::ostream &, Box const &);