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.
15 #include "support/strfwd.h"
21 * A simple class representing rectangular regions.
22 * It is expected that the box be constructed in
23 * normalised form, that is to say : x1,y1 is top-left,
24 * x2,y2 is bottom-right.
26 * Negative values are allowed.
35 /// Zero-initialise the member variables.
37 /// Initialise the member variables.
38 Box(int x1_
, int x2_
, int y1_
, int y2_
);
41 * Returns true if the given co-ordinates are within
42 * the box. Check is exclusive (point on a border
45 bool contains(int x
, int y
);
49 std::ostream
& operator<<(std::ostream
&, Box
const &);