X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbox.h;h=002ba6d96b146b76f0864ca7e263e1c5930e66ae;hb=e94889a041628203c50b66b9a4add63210de6928;hp=1d083663bacdcdfc89494063ee75f54cb28b5b79;hpb=c99b2f4819b178c8d6af6f46ce6fbbf8f62a1e45;p=lyx.git diff --git a/src/box.h b/src/box.h index 1d083663ba..002ba6d96b 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 @@ -20,12 +22,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 +39,10 @@ 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 &); - + +std::ostream & operator<<(std::ostream &, Box const &); + #endif // BOX_H