Qt 4.8
|
#include <qwindowsurface_x11_p.h>
Public Functions | |
void | beginPaint (const QRegion &rgn) |
This function is called before painting onto the surface begins, with the region in which the painting will occur. More... | |
WindowSurfaceFeatures | features () const |
void | flush (QWidget *widget, const QRegion ®ion, const QPoint &offset) |
Flushes the given region from the specified widget onto the screen. More... | |
QPixmap | grabWidget (const QWidget *widget, const QRect &rectangle=QRect()) const |
Returns a QPixmap generated from the part of the backing store corresponding to widget. More... | |
QPaintDevice * | paintDevice () |
Implement this function to return the appropriate paint device. More... | |
QX11WindowSurface (QWidget *widget) | |
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. More... | |
void | setGeometry (const QRect &rect) |
Sets the currently allocated area to be the given rect. More... | |
~QX11WindowSurface () | |
Public Functions inherited from QWindowSurface | |
virtual QImage * | buffer (const QWidget *widget) |
Returns a QImage pointer which represents the actual buffer the widget is drawn into or 0 if this is unavailable. More... | |
virtual void | endPaint (const QRegion &) |
This function is called after painting onto the surface has ended, with the region in which the painting was performed. More... | |
QRect | geometry () const |
Returns the currently allocated area on the screen. More... | |
bool | hasFeature (WindowSurfaceFeature feature) const |
virtual QPoint | offset (const QWidget *widget) const |
Returns the offset of widget in the coordinates of this window surface. More... | |
QWindowSurface (QWidget *window, bool setDefaultSurface=true) | |
Constructs an empty surface for the given top-level window. More... | |
QRect | rect (const QWidget *widget) const |
Returns the rectangle for widget in the coordinates of this window surface. More... | |
void | setStaticContents (const QRegion ®ion) |
QRegion | staticContents () const |
QWidget * | window () const |
Returns a pointer to the top-level window associated with this surface. More... | |
virtual | ~QWindowSurface () |
Destroys this surface. More... | |
Properties | |
QX11WindowSurfacePrivate * | d_ptr |
GC | gc |
Additional Inherited Members | |
Public Types inherited from QWindowSurface | |
enum | WindowSurfaceFeature { PartialUpdates = 0x00000001, PreservedContents = 0x00000002, StaticContents = 0x00000004, AllFeatures = 0xffffffff } |
Protected Functions inherited from QWindowSurface | |
bool | hasStaticContents () const |
Definition at line 69 of file qwindowsurface_x11_p.h.
QX11WindowSurface::QX11WindowSurface | ( | QWidget * | widget | ) |
Definition at line 66 of file qwindowsurface_x11.cpp.
QX11WindowSurface::~QX11WindowSurface | ( | ) |
Definition at line 77 of file qwindowsurface_x11.cpp.
|
virtual |
This function is called before painting onto the surface begins, with the region in which the painting will occur.
Reimplemented from QWindowSurface.
Definition at line 91 of file qwindowsurface_x11.cpp.
|
virtual |
Reimplemented from QWindowSurface.
Definition at line 253 of file qwindowsurface_x11.cpp.
|
virtual |
Flushes the given region from the specified widget onto the screen.
Note that the offset parameter is currently unused.
Implements QWindowSurface.
Definition at line 112 of file qwindowsurface_x11.cpp.
|
virtual |
Returns a QPixmap generated from the part of the backing store corresponding to widget.
Returns a null QPixmap if an error occurs. The contents of the pixmap are only defined for the regions of widget that have received paint events since the last resize of the backing store.
If rectangle is a null rectangle (the default), the entire widget is grabbed. Otherwise, the grabbed area is limited to rectangle.
The default implementation uses QWindowSurface::buffer().
Reimplemented from QWindowSurface.
Definition at line 217 of file qwindowsurface_x11.cpp.
|
virtual |
Implement this function to return the appropriate paint device.
Implements QWindowSurface.
Definition at line 86 of file qwindowsurface_x11.cpp.
|
virtual |
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
Returns true if the area was scrolled successfully; false otherwise.
Reimplemented from QWindowSurface.
Definition at line 201 of file qwindowsurface_x11.cpp.
|
virtual |
Sets the currently allocated area to be the given rect.
This function is called whenever area covered by the top-level window changes.
Reimplemented from QWindowSurface.
Definition at line 139 of file qwindowsurface_x11.cpp.
|
private |
Definition at line 86 of file qwindowsurface_x11_p.h.
Referenced by beginPaint(), features(), flush(), grabWidget(), paintDevice(), QX11WindowSurface(), scroll(), setGeometry(), and ~QX11WindowSurface().
|
private |
Definition at line 87 of file qwindowsurface_x11_p.h.
Referenced by flush(), scroll(), setGeometry(), and ~QX11WindowSurface().