55 this->screen = screen;
58 QPoint pos = offset(widget);
66 transformRects(&pvrRect, 1);
106 return (widget != 0);
114 pvrRect.
x = rect.
x();
115 pvrRect.
y = rect.
y();
130 pvrRect.
x = rect.
x();
131 pvrRect.
y = rect.
y();
185 QWSGLWindowSurface::setDirectRegion(r,
id);
194 if (widget != window) {
205 pvrRect.
x = rect.
x();
206 pvrRect.
y = rect.
y();
void pvrQwsSetGeometry(PvrQwsDrawable *drawable, const PvrQwsRect *rect)
The QColor class provides colors based on RGB, HSV or CMYK values.
QRect geometry() const
Returns the currently allocated area on the screen.
int height() const
Returns the logical height of the framebuffer in pixels.
void pvrQwsClearVisibleRegion(PvrQwsDrawable *drawable)
void solidFill(const QColor &color, const QRegion ®ion)
Fills the given region of the screen with the specified color.
QPointer< QWidget > widget
QByteArray permanentState() const
Implement this function to return the data required for creating a server-side representation of the ...
QRect rect(const QWidget *widget) const
Returns the rectangle for widget in the coordinates of this window surface.
PvrQwsDrawable * pvrQwsFetchWindow(long winId)
void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)
Flushes the given region from the specified widget onto the screen.
The QByteArray class provides an array of bytes.
QRect translated(int dx, int dy) const
Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis...
int width() const
Returns the width of the rectangle.
virtual QPoint offset(const QWidget *widget) const
Returns the offset of widget in the coordinates of this window surface.
QRect boundingRect() const
Returns the bounding rectangle of this region.
void moveTo(int x, int t)
Moves the rectangle, leaving the top-left corner at the given position (x, y).
void setSurfaceFlags(SurfaceFlags type)
Sets the surface flags describing the contents of this surface, to be the given flags.
int height() const
Returns the height of the rectangle.
void pvrQwsGetGeometry(PvrQwsDrawable *drawable, PvrQwsRect *rect)
int rectCount() const
Returns the number of rectangles that will be returned in rects().
int pvrQwsGetStride(PvrQwsDrawable *drawable)
QImage image() const
Implement this function to return an image of the top-level window.
int width() const
Returns the logical width of the framebuffer in pixels.
int width() const
Returns the width.
int transformation() const
virtual bool move(const QPoint &offset)
Move the surface with the given offset.
PvrQwsDrawable * pvrQwsCreateWindow(int screen, long winId, const PvrQwsRect *rect)
bool isEmpty() const
Returns true if the region is empty; otherwise returns false.
int pvrQwsReleaseWindow(PvrQwsDrawable *drawable)
void setGeometry(const QRect &rect)
Sets the currently allocated area to be the given rect.
QRegion intersect(const QRegion &r) const
Use intersected(r) instead.
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
The QRegion class specifies a clip region for a painter.
bool isValid() const
Implement this function to return true if the surface is a valid surface for the given top-level wind...
void qSwap(T &value1, T &value2)
QImage::Format pixelFormat() const
Returns the pixel format of the screen, or QImage::Format_Invalid if the pixel format is not a suppor...
int y() const
Returns the y-coordinate of the rectangle's top edge.
void pvrQwsSetRotation(PvrQwsDrawable *drawable, int angle)
int x() const
Returns the x-coordinate of the rectangle's left edge.
The QPoint class defines a point in the plane using integer precision.
QVector< QRect > rects() const
Returns an array of non-overlapping rectangles that make up the region.
QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
void setPermanentState(const QByteArray &state)
Implement this function to attach a server-side surface instance to the corresponding client side ins...
int height() const
Returns the height.
The QRect class defines a rectangle in the plane using integer precision.
void transformRects(PvrQwsRect *rects, int count) const
int y() const
Returns the y coordinate of this point.
int pvrQwsSwapBuffers(PvrQwsDrawable *drawable, int repaintOnly)
void setDirectRegion(const QRegion ®ion, int id)
void pvrQwsSetVisibleRegion(PvrQwsDrawable *drawable, const PvrQwsRect *rects, int numRects)
The QSize class defines the size of a two-dimensional object using integer point precision.
int x() const
Returns the x coordinate of this point.
void pvrQwsDestroyDrawable(PvrQwsDrawable *drawable)
PvrQwsDrawable * drawable
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
int size() const
Returns the number of items in the vector.
The QWSGLWindowSurface class provides the drawing area for top-level windows with Qt for Embedded Lin...
QWidget * window() const
Returns a pointer to the top-level window associated with this surface.
virtual void setGeometry(const QRect &rect)
Sets the currently allocated area to be the given rect.
bool move(const QPoint &offset)
Move the surface with the given offset.
void * pvrQwsGetRenderBuffer(PvrQwsDrawable *drawable)