]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_data.h
small up/down tweaking
[lyx.git] / src / mathed / math_data.h
index 34db878f915b8491243a981d3245bf34bb8f2c84..b4fa7785d4685dc2dfadc84874356da79b5d9d68 100644 (file)
@@ -1,14 +1,16 @@
 // -*- 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
+ *  \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
   */
 
@@ -56,7 +58,7 @@ public:
        ///
        typedef size_type idx_type;
        typedef size_type pos_type;
-       
+
 public:
        ///
        MathArray();
@@ -125,7 +127,7 @@ public:
        /// access to cached y coordinate of mid point of last drawing
        int ym() const { return yo_ + (dim_.d - dim_.a) / 2; }
        /// write access to coordinate;
-       void setXY(int x, int y);
+       void setXY(int x, int y) const;
        /// returns x coordinate of given position in the array
        int pos2x(size_type pos) const;
        /// returns position of given x coordinate
@@ -156,6 +158,8 @@ public:
        void center(int & x, int & y) const;
        /// adjust (x,y) to point on boundary on a straight line from the center
        void towards(int & x, int & y) const;
+       /// clean up if necessary
+       void notifyCursorLeaves();
 
 private:
        /// is this an exact match at this position?