#include <iosfwd>
+
+namespace lyx {
+
/**
* A simple class representing rectangular regions.
* It is expected that the box be constructed in
*
* Negative values are allowed.
*/
-struct Box {
+class Box {
+public:
int x1;
int x2;
int y1;
int y2;
+ /// Zero-initialise the member variables.
+ Box();
/// Initialise the member variables.
Box(int x1_, int x2_, int y1_, int y2_);
* the box. Check is exclusive (point on a border
* returns false).
*/
- bool contained(int x, int y);
+ bool contains(int x, int y);
};
std::ostream & operator<<(std::ostream &, Box const &);
+
+} // namespace lyx
+
#endif // BOX_H