47 #include <private/qpixmap_blitter_p.h> 49 #include <QtCore/qdebug.h> 56 IDirectFBWindow *dfbWindow =
static_cast<QDirectFbWindow *
>(window->platformWindow())->dfbWindow();
62 m_pmdata->setBlittable(blitter);
77 for (
int i = 0 ; i < rects.
size(); i++) {
79 DFBRegion dfbReg = { rect.
x() + offset.
x(),rect.
y() + offset.
y(),rect.
right() + offset.
x(),rect.
bottom() + offset.
y()};
86 if (size == QWindowSurface::size())
89 QWindowSurface::resize(size);
97 surface->Blit(surface, surface, &rect, r.
x() + dx, r.
y() + dy);
98 const DFBRegion region = { rect.x + dx, rect.y + dy, r.
right() + dx, r.
bottom() + dy };
99 surface->Flip(surface, ®ion, DFBSurfaceFlipFlags(DSFLIP_BLIT));
113 const int n = rects.
size();
114 for (
int i=0; i<n; ++i) {
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
T * data() const
Returns the value of the pointer referenced by this object.
QRect rect(const QWidget *widget) const
Returns the rectangle for widget in the coordinates of this window surface.
void endPaint(const QRegion ®ion)
This function is called after painting onto the surface has ended, with the region in which the paint...
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 setBlittable(QBlittable *blittable)
int height() const
Returns the height of the rectangle.
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
void resize(const QSize &size)
void beginPaint(const QRegion ®ion)
This function is called before painting onto the surface begins, with the region in which the paintin...
int rectCount() const
Returns the number of rectangles that will be returned in rects().
QScopedPointer< QPixmap > m_pixmap
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool isEmpty() const
Returns true if the region is empty; otherwise returns false.
QBlittablePixmapData * m_pmdata
The QRegion class specifies a clip region for a painter.
void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)
Flushes the given region from the specified widget onto the screen.
The QWindowSurface class provides the drawing area for top-level windows.
void reset(T *other=0)
Deletes the existing object it is pointing to if any, and sets its pointer to other.
const T & at(int i) const
Returns the item at index position i in the vector.
QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
QDirectFbWindowSurface(QWidget *window)
int right() const
Returns the x-coordinate of the rectangle's right edge.
int y() const
Returns the y-coordinate of the rectangle's top edge.
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.
The QRect class defines a rectangle in the plane using integer precision.
int y() const
Returns the y coordinate of this point.
The QPixmap class is an off-screen image representation that can be used as a paint device...
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.
QBlittable * blittable() const
QDirectFBPointer< IDirectFBSurface > m_dfbSurface
#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.
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...
static int area(const QSize &s)