#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);
If text->status is LyXText::NEED_VERY_LITTLE_REFRESH,
we only update the current row. */
void Update(LyXText *, int y_offset=0, int x_offset=0);
+ ///
+ bool forceClear() const { return force_clear; }
///
bool cursor_visible;
int cursor_pixmap_h;
///
GC gc_copy;
+ ///
+ bool force_clear;
};
#endif