48 #if !defined(QT_NO_EGL) 50 #include <QtGui/private/qeglcontext_p.h> 51 #include <QtGui/private/qwidget_p.h> 96 #if !defined(Q_WS_QPA) 102 void QVGWindowSurface::resize(
const QSize &size)
104 QWindowSurface::resize(size);
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 bool scroll(QWidget *, const QRegion &, int, int)
virtual QSize surfaceSize() const =0
QRect rect(const QWidget *widget) const
Returns the rectangle for widget in the coordinates of this window surface.
bool scroll(const QRegion &area, int dx, int dy)
Q_WS_QPA.
int metric(PaintDeviceMetric metric) const
virtual void setGeometry(const QRect &rect)
Sets the currently allocated area to be the given rect.
virtual QPoint offset(const QWidget *widget) const
Returns the offset of widget in the coordinates of this window surface.
virtual void endPaint(QWidget *widget, const QRegion ®ion, QImage *image=0)=0
void endPaint(const QRegion ®ion)
This function is called after painting onto the surface has ended, with the region in which the paint...
QVGPaintEngine * paintEngine()
QPaintEngine * paintEngine() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
friend Q_GUI_EXPORT int qt_paint_device_metric(const QPaintDevice *device, PaintDeviceMetric metric)
The QRegion class specifies a clip region for a painter.
void setGeometry(const QRect &rect)
Sets the currently allocated area to be the given rect.
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
The QWindowSurface class provides the drawing area for top-level windows.
WindowSurfaceFeatures features() const
QWindowSurface(QWidget *window, bool setDefaultSurface=true)
Constructs an empty surface for the given top-level window.
The QPoint class defines a point in the plane using integer precision.
QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
The QRect class defines a rectangle in the plane using integer precision.
QVGEGLWindowSurfacePrivate * d_ptr
void beginPaint(const QRegion ®ion)
This function is called before painting onto the surface begins, with the region in which the paintin...
The QSize class defines the size of a two-dimensional object using integer point precision.
virtual void beginPaint(QWidget *widget)=0
virtual bool supportsStaticContents() const
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QVGWindowSurface(QWidget *window)
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...
QWidget * window() const
Returns a pointer to the top-level window associated with this surface.
void fillRegion(const QRegion ®ion, const QColor &color, const QSize &surfaceSize)
static int area(const QSize &s)