#include "qdirectfbwindowsurface.h"
#include "qdirectfbintegration.h"
#include "qdirectfbblitter.h"
#include "qdirectfbconvenience.h"
#include "qdirectfbwindow.h"
#include <private/qpixmap_blitter_p.h>
#include <QtCore/qdebug.h>
Go to the source code of this file.
◆ scrollSurface()
static void scrollSurface |
( |
IDirectFBSurface * |
surface, |
|
|
const QRect & |
r, |
|
|
int |
dx, |
|
|
int |
dy |
|
) |
| |
|
inlinestatic |
Definition at line 94 of file qdirectfbwindowsurface.cpp.
Referenced by QDirectFbWindowSurface::scroll().
96 const DFBRectangle rect = { r.
x(), r.
y(), r.
width(), r.
height() };
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));
int width() const
Returns the width of the rectangle.
int height() const
Returns the height of the rectangle.
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
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.