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
21 #include <boost/scoped_ptr.hpp>
27 * Qt implementation of toolkit-specific parts of LyXScreen.
29 class QScreen : public LyXScreen {
36 * draw the screen from a given position
37 * @param y the text position to draw from
39 * Uses as much of the already printed pixmap as possible
41 virtual void draw(LyXText *, BufferView *, unsigned int y);
44 * showManualCursor - display the caret on the work area
45 * @param text the lyx text containing the cursor
46 * @param x the x position of the cursor
47 * @param y the y position of the row's baseline
48 * @param asc ascent of the row
49 * @param desc descent of the row
50 * @param shape the current shape
52 virtual void showManualCursor(LyXText const *, int x, int y,
56 /// unpaint the cursor painted by showManualCursor()
57 virtual void hideCursor();
61 virtual WorkArea & workarea() const { return owner_; }
63 /// repaint the whole content immediately
66 /// copies specified area of pixmap to screen
67 virtual void expose(int x, int y, int exp_width, int exp_height);
73 /// the mini-pixmap used for backing store for the blinking cursor
74 boost::scoped_ptr<QPixmap> nocursor_pixmap_;
76 //{@ the cursor pixmap position/size