4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
18 #include <boost/scoped_ptr.hpp>
24 * Qt implementation of toolkit-specific parts of LyXScreen.
26 class QScreen : public LyXScreen {
33 * draw the screen from a given position
34 * @param y the text position to draw from
36 * Uses as much of the already printed pixmap as possible
38 virtual void draw(LyXText *, BufferView *, unsigned int y);
41 * showManualCursor - display the caret on the work area
42 * @param text the lyx text containing the cursor
43 * @param x the x position of the cursor
44 * @param y the y position of the row's baseline
45 * @param asc ascent of the row
46 * @param desc descent of the row
47 * @param shape the current shape
49 virtual void showManualCursor(LyXText const *, int x, int y,
53 /// unpaint the cursor painted by showManualCursor()
54 virtual void hideCursor();
58 virtual WorkArea & workarea() const { return owner_; }
60 /// repaint the whole content immediately
63 /// copies specified area of pixmap to screen
64 virtual void expose(int x, int y, int exp_width, int exp_height);
70 /// the mini-pixmap used for backing store for the blinking cursor
71 boost::scoped_ptr<QPixmap> nocursor_pixmap_;
73 //@{ the cursor pixmap position/size