X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fscreen.h;h=d0d3dc741e4f455fbd76a4ea5e70419e2f07aac9;hb=39ec3d0eb81f6e3ade7bc183f7590f3a0bcd6cf7;hp=89cadb24285eca550972e74477897cc564ef09b8;hpb=1dffc5cfe45c34d9ef42d3d58d2ed4ce855339e2;p=lyx.git diff --git a/src/frontends/screen.h b/src/frontends/screen.h index 89cadb2428..d0d3dc741e 100644 --- a/src/frontends/screen.h +++ b/src/frontends/screen.h @@ -14,7 +14,7 @@ #define SCREEN_H class LyXText; -class LyXCursor; +class CursorSlice; class WorkArea; class BufferView; @@ -36,46 +36,21 @@ public: virtual ~LyXScreen(); - /** - * fit the cursor onto the visible work area, scrolling if necessary - * @param bv the buffer view - * @param vheight the height of the visible region - * @param base_y the top of the lyxtext to look at - * @param x the new x position - * @param y the new y position - * @param a ascent of the cursor's row - * @param d descent of the cursor's row - * @return true if the work area needs scrolling as a result - */ - bool fitManualCursor(BufferView * bv, LyXText * text, - int x, int y, int a, int d); - /// redraw the screen, without using existing pixmap virtual void redraw(BufferView & bv); - /** - * topCursorVisible - get a new "top" to make the cursor visible - * in a LyXText - * - * This helper function calculates a new y co-ordinate for - * the top of the containing region such that the cursor contained - * within the LyXText is "nicely" visible. - */ - virtual unsigned int topCursorVisible(LyXText *); - /** * fitCursor - fit the cursor onto the work area - * @param text the text containing the cursor * @param bv the bufferview * @return true if a change was necessary * * Scrolls the screen so that the cursor is visible */ - virtual bool fitCursor(LyXText *, BufferView *); + virtual bool fitCursor(BufferView *); /// hide the visible cursor, if it is visible void hideCursor(); - + /// show the cursor if it is not visible void showCursor(BufferView & bv);