48 #include <QtGui/QWidget> 57 mUseFrontBuffer(false)
59 #if defined(QBBRASTERWINDOWSURFACE_DEBUG) 60 qDebug() <<
"QBBRasterWindowSurface::QBBRasterWindowSurface - w=" <<
window;
69 #if defined(QBBRASTERWINDOWSURFACE_DEBUG) 70 qDebug() <<
"QBBRasterWindowSurface::~QBBRasterWindowSurface - w=" <<
window();
88 #if defined(QBBRASTERWINDOWSURFACE_DEBUG) 89 qDebug() <<
"QBBRasterWindowSurface::flush - w=" <<
window();
110 #if defined(QBBRASTERWINDOWSURFACE_DEBUG) 111 qDebug() <<
"QBBRasterWindowSurface::resize - w=" <<
window() <<
", s=" << size;
115 QWindowSurface::resize(size);
123 #if defined(QBBRASTERWINDOWSURFACE_DEBUG) 124 qDebug() <<
"QBBRasterWindowSurface::scroll - w=" <<
window();
143 qWarning(
"QBB: pending scroll operations overlap but not equal");
157 #if defined(QBBRASTERWINDOWSURFACE_DEBUG) 158 qDebug() <<
"QBBRasterWindowSurface::beginPaint - w=" <<
window();
171 #if defined(QBBRASTERWINDOWSURFACE_DEBUG) 172 qDebug() <<
"QBBRasterWindowSurface::endPaint - w=" <<
window();
QBBWindow * mPlatformWindow
QRegion intersected(const QRegion &r) const
Returns a region which is the intersection of this region and r.
virtual void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)
Flushes the given region from the specified widget onto the screen.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
virtual QPoint offset(const QWidget *widget) const
Returns the offset of widget in the coordinates of this window surface.
void setBufferSize(const QSize &size)
virtual bool scroll(const QRegion &area, int dx, int dy)
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative...
virtual void beginPaint(const QRegion ®ion)
This function is called before painting onto the surface begins, with the region in which the paintin...
virtual QPixmap grabWidget(const QWidget *widget, const QRect &rectangle=QRect()) const
Returns a QPixmap generated from the part of the backing store corresponding to widget.
Q_CORE_EXPORT void qDebug(const char *,...)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QBBRasterWindowSurface(QWidget *window)
Q_CORE_EXPORT void qWarning(const char *,...)
void post(const QRegion &dirty)
The QRegion class specifies a clip region for a painter.
QBBBuffer & renderBuffer()
The QWindowSurface class provides the drawing area for top-level windows.
virtual void endPaint(const QRegion ®ion)
This function is called after painting onto the surface has ended, with the region in which the paint...
void scroll(const QRegion ®ion, int dx, int dy, bool flush=false)
virtual ~QBBRasterWindowSurface()
const QImage * image() const
QList< ScrollOp > mScrollOpList
The QPoint class defines a point in the plane using integer precision.
virtual void resize(const QSize &size)
virtual QPixmap grabWidget(const QWidget *widget, const QRect &rectangle) const
Returns a QPixmap generated from the part of the backing store corresponding to widget.
The QRect class defines a rectangle in the plane using integer precision.
QBBBuffer & frontBuffer()
The QPixmap class is an off-screen image representation that can be used as a paint device...
bool intersects(const QRegion &r) const
Returns true if this region intersects with region, otherwise returns false.
The QSize class defines the size of a two-dimensional object using integer point precision.
QRegion translated(int dx, int dy) const
Returns a copy of the region that is translated dx along the x axis and dy along the y axis...
virtual QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QWidget * window() const
Returns a pointer to the top-level window associated with this surface.
static int area(const QSize &s)