#include <X11/Xlib.h>
class LyXText;
+class WorkArea;
+class Buffer;
+
struct Row;
+
+///
typedef unsigned short Dimension;
-class WorkArea;
-class Buffer;
/** The class LyXScreen is used for the main Textbody.
Concretely, the screen is held in a pixmap. This pixmap is kept up to
*/
class LyXScreen {
public:
-
+ ///
enum Cursor_Shape {
///
BAR_SHAPE,
};
///
- LyXScreen(WorkArea &); //, LyXText * text_ptr);
+ LyXScreen(WorkArea &);
/** Draws the screen form textposition y. Uses as much of
the already printed pixmap as possible */
///
void CursorToggle(LyXText const *);
///
- void ShowManualCursor(LyXText const *, long x, long y, int asc, int desc,
+ void ShowManualCursor(LyXText const *, long x, long y,
+ int asc, int desc,
Cursor_Shape shape);
/// returns 1 if first has changed, otherwise 0
bool FitManualCursor(LyXText *, long, long, int, int);
///
- void ToggleSelection(LyXText *, bool = true);
+ void ToggleSelection(LyXText *, bool = true, int y_offset = 0,
+ int x_offset = 0);
///
void ToggleToggle(LyXText *, int y_offset = 0, int x_offset = 0);