]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_cursor.h
try to correct x position where curosr drops of inset.
[lyx.git] / src / mathed / math_cursor.h
index bd2da28ad7c8092257a475fbc7a5150afc4bc870..74903c75c07121265146adf4814018ab1db2ad6a 100644 (file)
@@ -102,7 +102,9 @@ public:
        /// in pixels from top of screen
        void setPos(int x, int y);
        /// in pixels from top of screen
-       void getPos(int & x, int & y);
+       void getPos(int & x, int & y) const;
+       /// in pixels from left of screen
+       int targetX() const;
        /// current inset
        MathInset * par() const;
        /// return the next enclosing grid inset and the cursor's index in it