// -*- C++ -*-
/**
- * You are free to use and modify this code under the terms of
- * the GNU General Public Licence version 2 or later.
- */
-
-/** \class MathArray
- \brief Low level container for math insets
- * \author Alejandro Aguilar Sierra
- * \author André Pönitz
- * \author Lars Gullik Bjønnes
+ * \file math_data.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Alejandro Aguilar Sierra
+ * \author André Pönitz
+ * \author Lars Gullik Bjønnes
*
- * Full author contact details are available in file CREDITS
- \version February 2001
- */
+ * Full author contact details are available in file CREDITS.
+ */
#ifndef MATH_DATA_H
#define MATH_DATA_H
int xm() const { return xo_ + dim_.wid / 2; }
/// access to cached y coordinate of mid point of last drawing
int ym() const { return yo_ + (dim_.des - dim_.asc) / 2; }
+ ///
+ bool contains(int x, int y) const;
/// write access to coordinate;
void setXY(int x, int y) const;
/// returns x coordinate of given position in the array