42 #ifndef QXCBWINDOWSURFACE_H 43 #define QXCBWINDOWSURFACE_H 45 #include <private/qwindowsurface_p.h>
void beginPaint(const QRegion &)
This function is called before painting onto the surface begins, with the region in which the paintin...
QPointer< QWidget > widget
QXcbWindowSurface(QWidget *widget, bool setDefaultSurface=true)
void endPaint(const QRegion &)
This function is called after painting onto the surface has ended, with the region in which the paint...
virtual QPoint offset(const QWidget *widget) const
Returns the offset of widget in the coordinates of this window surface.
The QRegion class specifies a clip region for a painter.
The QWindowSurface class provides the drawing area for top-level windows.
The QPoint class defines a point in the plane using integer precision.
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...
The QSize class defines the size of a two-dimensional object using integer point precision.
void resize(const QSize &size)
void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)
Flushes the given region from the specified widget onto the screen.
static int area(const QSize &s)
QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.