9#include <private/qpixmap_blitter_p.h>
11#include <QtCore/qdebug.h>
19 dfbWindow->GetSurface(dfbWindow, m_dfbSurface.
outPtr());
30 return m_pixmap.
data();
39 m_dfbSurface->Flip(m_dfbSurface.
data(), &dfbReg, DFBSurfaceFlipFlags(DSFLIP_BLIT|DSFLIP_ONSYNC));
47 if ((m_pmdata->
width() ==
size.width()) &&
57 const DFBRectangle
rect(
r.x(),
r.y(),
r.width(),
r.height());
58 surface->Blit(surface, surface, &
rect,
r.x() + dx,
r.y() + dy);
59 const DFBRegion region(
rect.x + dx,
rect.y + dy,
r.right() + dx,
r.bottom() + dy);
60 surface->Flip(surface, ®ion, DFBSurfaceFlipFlags(DSFLIP_BLIT));
67 if (!m_dfbSurface ||
area.isEmpty())
69 m_dfbSurface->SetBlittingFlags(m_dfbSurface.
data(), DSBLIT_NOFX);
70 if (
area.rectCount() == 1) {
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void resize(const QSize &size, const QRegion &staticContents) override
QDirectFbBackingStore(QWindow *window)
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
bool scroll(const QRegion &area, int dx, int dy) override
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
QImage toImage() const
Converts the pixmap to a QImage.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
T * data() const noexcept
Returns the value of the pointer referenced by this object.
void reset(T *other=nullptr) noexcept(noexcept(Cleanup::cleanup(std::declval< T * >())))
Deletes the existing object it is pointing to (if any), and sets its pointer to other.
QSize size() const override
Returns the size of the window excluding any window frame.
Combined button and popup list for selecting options.
static void scrollSurface(IDirectFBSurface *surface, const QRect &r, int dx, int dy)
static int area(const QSize &s)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset