Qt 4.8
|
#include <qwindowsurface_qws_p.h>
Public Functions | |
void | beginPaint (const QRegion &) |
This function is called before painting onto the surface begins, with the region in which the painting will occur. More... | |
void | flush (QWidget *, const QRegion &, const QPoint &) |
Flushes the given region from the specified widget onto the screen. More... | |
bool | hasPendingRegionEvents () const |
QImage | image () const |
Implement this function to return an image of the top-level window. More... | |
bool | isValid () const |
Implement this function to return true if the surface is a valid surface for the given top-level window; otherwise return false. More... | |
QString | key () const |
Implement this function to return a string that uniquely identifies the class of this surface. More... | |
bool | lock (int timeout=-1) |
QPaintDevice * | paintDevice () |
Implement this function to return the appropriate paint device. More... | |
QByteArray | permanentState () const |
Implement this function to return the data required for creating a server-side representation of the surface. More... | |
QWSDirectPainterSurface (bool isClient=false, QDirectPainter::SurfaceFlag flags=QDirectPainter::NonReserved) | |
QRegion | region () const |
QScreen * | screen () const |
void | setGeometry (const QRect &rect) |
Sets the currently allocated area to be the given rect. More... | |
void | setLocking (bool b) |
void | setPermanentState (const QByteArray &) |
Implement this function to attach a server-side surface instance to the corresponding client side instance using the given data. More... | |
void | setRegion (const QRegion ®ion) |
void | setReserved () |
void | unlock () |
WId | windowId () const |
~QWSDirectPainterSurface () | |
Public Functions inherited from QWSWindowSurface | |
const QRegion | clipRegion () const |
Returns the region currently visible on the screen. 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... | |
bool | isBuffered () const |
Returns true if the QWSWindowSurface::Buffered is set; otherwise returns false. More... | |
bool | isOpaque () const |
Returns true if the QWSWindowSurface::Opaque is set; otherwise returns false. More... | |
bool | isRegionReserved () const |
Returns true if the QWSWindowSurface::RegionReserved is set; otherwise returns false. More... | |
virtual bool | move (const QPoint &offset) |
Move the surface with the given offset. More... | |
virtual QRegion | move (const QPoint &offset, const QRegion &newClip) |
Move the surface with the given offset. More... | |
virtual QPoint | painterOffset () const |
Returns the offset to be used when painting. More... | |
QWSWindowSurface () | |
Constructs an empty surface. More... | |
QWSWindowSurface (QWidget *widget) | |
Constructs an empty surface for the given top-level widget. More... | |
virtual void | releaseSurface () |
void | setClipRegion (const QRegion &) |
Sets the region currently visible on the screen to be the given clip region. More... | |
virtual void | setGeometry (const QRect &rect, const QRegion &mask) |
virtual void | setTransientState (const QByteArray &state) |
SurfaceFlags | surfaceFlags () const |
Returns the surface flags describing the contents of this surface. More... | |
virtual QByteArray | transientState () const |
int | winId () const |
~QWSWindowSurface () | |
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 WindowSurfaceFeatures | features () const |
QRect | geometry () const |
Returns the currently allocated area on the screen. More... | |
virtual 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... | |
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... | |
virtual 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 | 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 | |
QScreen * | _screen |
bool | doLocking |
bool | flushingRegionEvents |
bool | synchronous |
QMutex | threadLock |
Friends | |
void | qt_directpainter_region (QDirectPainter *, const QRegion &, int) |
Additional Inherited Members | |
Public Types inherited from QWSWindowSurface | |
enum | SurfaceFlag { RegionReserved = 0x1, Buffered = 0x2, Opaque = 0x4 } |
This enum is used to describe the window surface's contents. More... | |
Public Types inherited from QWindowSurface | |
enum | WindowSurfaceFeature { PartialUpdates = 0x00000001, PreservedContents = 0x00000002, StaticContents = 0x00000004, AllFeatures = 0xffffffff } |
Protected Functions inherited from QWSWindowSurface | |
void | setSurfaceFlags (SurfaceFlags type) |
Sets the surface flags describing the contents of this surface, to be the given flags. More... | |
void | setWinId (int id) |
Protected Functions inherited from QWindowSurface | |
bool | hasStaticContents () const |
Definition at line 300 of file qwindowsurface_qws_p.h.
QWSDirectPainterSurface::QWSDirectPainterSurface | ( | bool | isClient = false , |
QDirectPainter::SurfaceFlag | flags = QDirectPainter::NonReserved |
||
) |
Definition at line 1368 of file qwindowsurface_qws.cpp.
QWSDirectPainterSurface::~QWSDirectPainterSurface | ( | ) |
Definition at line 1393 of file qwindowsurface_qws.cpp.
|
virtual |
This function is called before painting onto the surface begins, with the region in which the painting will occur.
Reimplemented from QWSWindowSurface.
Definition at line 1429 of file qwindowsurface_qws.cpp.
|
virtual |
Flushes the given region from the specified widget onto the screen.
Note that the offset parameter is currently unused.
Reimplemented from QWSWindowSurface.
Definition at line 1409 of file qwindowsurface_qws.cpp.
bool QWSDirectPainterSurface::hasPendingRegionEvents | ( | ) | const |
Definition at line 1441 of file qwindowsurface_qws.cpp.
|
inlinevirtual |
Implement this function to return an image of the top-level window.
Implements QWSWindowSurface.
Definition at line 323 of file qwindowsurface_qws_p.h.
|
inlinevirtual |
Implement this function to return true if the surface is a valid surface for the given top-level window; otherwise return false.
Implements QWSWindowSurface.
Definition at line 316 of file qwindowsurface_qws_p.h.
|
inlinevirtual |
Implement this function to return a string that uniquely identifies the class of this surface.
Implements QWSWindowSurface.
Definition at line 318 of file qwindowsurface_qws_p.h.
Referenced by setRegion().
|
virtual |
Reimplemented from QWSWindowSurface.
Definition at line 1453 of file qwindowsurface_qws.cpp.
|
inlinevirtual |
Implement this function to return the appropriate paint device.
Implements QWSWindowSurface.
Definition at line 324 of file qwindowsurface_qws_p.h.
|
virtual |
Implement this function to return the data required for creating a server-side representation of the surface.
Reimplemented from QWSWindowSurface.
Definition at line 1414 of file qwindowsurface_qws.cpp.
Referenced by setRegion().
|
inline |
Definition at line 312 of file qwindowsurface_qws_p.h.
|
inline |
|
inlinevirtual |
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 QWSWindowSurface.
Definition at line 309 of file qwindowsurface_qws_p.h.
Referenced by QDirectPainterPrivate::~QDirectPainterPrivate().
|
inline |
Definition at line 335 of file qwindowsurface_qws_p.h.
|
virtual |
Implement this function to attach a server-side surface instance to the corresponding client side instance using the given data.
Return true if successful; otherwise return false.
Reimplemented from QWSWindowSurface.
Definition at line 1422 of file qwindowsurface_qws.cpp.
void QWSDirectPainterSurface::setRegion | ( | const QRegion & | region | ) |
Definition at line 1399 of file qwindowsurface_qws.cpp.
|
inline |
Definition at line 307 of file qwindowsurface_qws_p.h.
Referenced by setPermanentState().
|
virtual |
|
inline |
Definition at line 327 of file qwindowsurface_qws_p.h.
Referenced by QDirectPainterPrivate::~QDirectPainterPrivate().
|
friend |
Definition at line 223 of file qdirectpainter_qws.cpp.
|
private |
Definition at line 340 of file qwindowsurface_qws_p.h.
Referenced by QWSDirectPainterSurface().
|
private |
Definition at line 348 of file qwindowsurface_qws_p.h.
Referenced by beginPaint(), lock(), and unlock().
|
private |
Definition at line 346 of file qwindowsurface_qws_p.h.
Referenced by beginPaint(), and qt_directpainter_region().
|
private |
Definition at line 347 of file qwindowsurface_qws_p.h.
Referenced by beginPaint(), hasPendingRegionEvents(), QWSDirectPainterSurface(), and setRegion().
|
private |
Definition at line 342 of file qwindowsurface_qws_p.h.