X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.h;h=1abc177ca469e9708b20100d2dd63c8e14e64bad;hb=f7768c994dc6aa6c79c32a8eee77eaa41662f9a4;hp=dbdd1569b8d577fbc9e5b44b5a8e92eddeca6268;hpb=71623b88b2c613dd4ab826a9783a53e840bcd6e1;p=lyx.git diff --git a/src/Cursor.h b/src/Cursor.h index dbdd1569b8..1abc177ca4 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -399,6 +399,12 @@ public: /// one inset in the selection has confirmDeletion. bool confirmDeletion(bool before = false) const; + /// Determine if x falls to the left or to the side of the middle of the + /// inset, and advance the cursor to match this position. If edit is true, + /// keep the cursor in front of the inset if it matter for dialogs. + /// Note: it does not handle RTL text yet, and is only used in math for now. + void moveToClosestEdge(int x, bool edit = false); + public: //private: