mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 07:16:48 +00:00
661921bca3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7679 a592a061-630c-0410-9148-cb99ea01b6c8
64 lines
1.2 KiB
C++
64 lines
1.2 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file qscreen.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef QSCREEN_H
|
|
#define QSCREEN_H
|
|
|
|
|
|
#include "screen.h"
|
|
#include <qrect.h>
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
class QWorkArea;
|
|
class WorkArea;
|
|
|
|
|
|
/**
|
|
* Qt implementation of toolkit-specific parts of LyXScreen.
|
|
*/
|
|
class QScreen : public LyXScreen {
|
|
public:
|
|
QScreen(QWorkArea &);
|
|
|
|
virtual ~QScreen();
|
|
|
|
protected:
|
|
/// get the work area
|
|
virtual WorkArea & workarea() const;
|
|
|
|
/// repaint the whole content immediately
|
|
void repaint();
|
|
|
|
/// copies specified area of pixmap to screen
|
|
virtual void expose(int x, int y, int exp_width, int exp_height);
|
|
|
|
/// paint the cursor and store the background
|
|
virtual void showCursor(int x, int y, int h, Cursor_Shape shape);
|
|
|
|
/// hide the cursor
|
|
virtual void removeCursor();
|
|
|
|
private:
|
|
/// our owning widget
|
|
QWorkArea & owner_;
|
|
|
|
boost::scoped_ptr<QPixmap> nocursor_pixmap_;
|
|
|
|
//@{ the cursor pixmap position/size
|
|
int cursor_x_;
|
|
int cursor_y_;
|
|
int cursor_w_;
|
|
int cursor_h_;
|
|
//@}
|
|
};
|
|
|
|
#endif // QSCREEN_H
|