![]() |
Home · All Classes · Main Classes · Grouped Classes · Modules · Functions | ![]() |
The QWSWindowSurface class provides the drawing area of a top-level window. More...
#include <QWSWindowSurface>
This class is under development and is subject to change.
This class was introduced in Qt 4.2.
The QWSWindowSurface class provides the drawing area of a top-level window.
This class is used for implementing different types of memory allocation policies which are implemented in QScreen::createSurface(). There will be two instances of this class for each top-level window; one used by the application when drawing a window, and one used by the Qtopia Core GUI server for doing window compositioning.
This enum is used to specify various properties for the window surface. It is used by QScreen to handle region allocation and composition properly.
Constant | Value | Description |
---|---|---|
QWSWindowSurface::Reserved | 0x1 | The surface contains a reserved area. Once allocated, a reserved area will not be changed by the window system. Thus no other widgets can be drawn on top of this. |
QWSWindowSurface::Buffered | 0x2 | The surface is in a memory area which is not part of a framebuffer. A top-level window with QWidget::windowOpacity() other than 1.0 must use a buffered surface in order to making blending with the background work. |
QWSWindowSurface::Opaque | 0x4 | The surface contains only opaque pixels. |
The SurfaceFlags type is a typedef for QFlags<SurfaceFlag>. It stores an OR combination of SurfaceFlag values.
Creates an empty surface.
Constructs an empty surface for the top-level window.
Destroys the surface.
Attach a server-side instance to a client side surface instance using data.
This function is called before painting onto the surface begins, with the region in which painting will occur.
Returns the region currently visible on the screen.
See also setClipRegion().
Returns a QByteArray containing whatever data neccessary for creating a server-side representation of the surface.
Detach a server-side instance from the client.
Returns the region which needs to be repainted.
This function is called after painting onto the surface has ended, with the region in which painting could occur.
Flushes the region from widget onto the screen.
The default implementation will communicate the region to the Qtopia Core GUI server.
offset is currently unused. Always pass QPoint(0, 0).
Returns the geometry currently allocated by this surface.
See also setGeometry().
Returns an image of the top-level window.
This function is called by the Qtopia Core GUI server when doing window compositioning.
Returns true if the Buffered SurfaceFlag is set; otherwise returns false.
Returns true if the Opaque SurfaceFlag is set or the surface is non-buffered; otherwise returns false.
Returns true if the Reserved SurfaceFlag is set; otherwise returns false.
Returns true if the surface is a valid surface for the top-level window; otherwise returns false.
Returns a string that uniquely identifies the class of the surface.
This information is used for creating a a server-side representation of the surface on the Qtopia Core GUI server.
Returns the offset to be used when painting into the paintDevice().
Release the surface.
The default implementation will communicate with the Qtopia Core GUI server to deallocate the current allocated screen region.
Sets the region currently visible on the screen to clip.
See also clipRegion().
Mark the region as needing to be repainted.
Set the geometry on the surface to rect.
This function is called whenever the area neccessary for the top-level window to be drawn is changed. The default implementation will communicate the geometry to the Qtopia Core GUI server and mark it as dirty.
See also geometry().
Set the properties of this surface to flags.
See also surfaceFlags().
Returns the SurfaceFlags describing the properties of this surface.
See also setSurfaceFlags().
Returns a pointer to the top-level window for this surface.
Copyright © 2006 Trolltech | Trademarks | Qt 4.2.0-rc1 |