4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
7 * \author John Levon <moz@compsoc.man.ac.uk>
17 #include <boost/smart_ptr.hpp>
20 #include "QWorkArea.h"
25 * Qt implementation of toolkit-specific parts of LyXScreen.
27 class QScreen : public LyXScreen {
34 * draw the screen from a given position
35 * @param y the text position to draw from
37 * Uses as much of the already printed pixmap as possible
39 virtual void draw(LyXText *, BufferView *, unsigned int y);
42 * showManualCursor - display the caret on the work area
43 * @param text the lyx text containing the cursor
44 * @param x the x position of the cursor
45 * @param y the y position of the row's baseline
46 * @param asc ascent of the row
47 * @param desc descent of the row
48 * @param shape the current shape
50 virtual void showManualCursor(LyXText const *, int x, int y,
54 /// unpaint the cursor painted by showManualCursor()
55 virtual void hideCursor();
59 virtual WorkArea & workarea() const { return owner_; }
61 /// copies specified area of pixmap to screen
62 virtual void expose(int x, int y, int exp_width, int exp_height);
68 /// the mini-pixmap used for backing store for the blinking caret
69 boost::scoped_ptr<QPixmap> nocursor_pixmap_;
71 //{@ the cursor pixmap position/size