Qt 4.8
Functions
qdirectfbwindowsurface.cpp File Reference
#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.

Functions

static void scrollSurface (IDirectFBSurface *surface, const QRect &r, int dx, int dy)
 

Function Documentation

◆ 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().

95 {
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, &region, DFBSurfaceFlipFlags(DSFLIP_BLIT));
100 }
int width() const
Returns the width of the rectangle.
Definition: qrect.h:303
int height() const
Returns the height of the rectangle.
Definition: qrect.h:306
int bottom() const
Returns the y-coordinate of the rectangle&#39;s bottom edge.
Definition: qrect.h:249
int right() const
Returns the x-coordinate of the rectangle&#39;s right edge.
Definition: qrect.h:246
int y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:255
int x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:252