X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbox.h;h=adcb4958c49fa94c6cc0b5beb96585e68b5b533b;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=884a28eb5d563995298e42e0c71b800f4514b03b;hpb=685c37df7f9dba82ca210f6340fee083e842a21d;p=lyx.git diff --git a/src/box.h b/src/box.h index 884a28eb5d..adcb4958c4 100644 --- a/src/box.h +++ b/src/box.h @@ -1,10 +1,12 @@ // -*- C++ -*- /** * \file box.h - * Copyright 2001 the LyX Team - * Read the file COPYING + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * \author John Levon + * \author John Levon + * + * Full author contact details are available in file CREDITS. */ #ifndef BOX_H @@ -12,6 +14,9 @@ #include + +namespace lyx { + /** * A simple class representing rectangular regions. * It is expected that the box be constructed in @@ -20,12 +25,15 @@ * * 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_); @@ -34,10 +42,13 @@ struct Box { * 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