QWSWindowSurface Class Reference |
Constant | Value | Description |
---|---|---|
QWSWindowSurface::Reserved | 0x1 | The surface contains a reserved area. Once allocated, a reserved area can not not be changed by the window system, i.e., 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.
See also surfaceFlags() and setSurfaceFlags().
Constructs an empty surface.
Constructs an empty surface for the given top-level window.
Destroys this surface.
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.
This function is called before painting onto the surface begins, with the region in which the painting will occur.
See also endPaint() and paintDevice().
Returns the region currently visible on the screen.
See also setClipRegion().
Implement this function to return the data required for creating a server-side representation of the surface.
See also attach().
Implement this function to detach a server-side instance from the client.
See also attach() and release().
Returns the region that must be repainted.
See also setDirty().
This function is called after painting onto the surface has ended, with the region in which the painting was performed.
See also beginPaint() and paintDevice().
Flushes the given region from the specified widget onto the screen.
Note that the offset parameter is currently unused.
See also painterOffset().
Implement this function to return the currently allocated area.
See also setGeometry(), scroll(), and image().
Implement this function to return an image of the top-level window.
See also geometry().
Returns true if the QWSWindowSurface::Buffered is set; otherwise returns false.
See also surfaceFlags().
Returns true if the QWSWindowSurface::Opaque is set; otherwise returns false.
See also surfaceFlags().
Returns true if the QWSWindowSurface::Reserved is set; otherwise returns false.
See also surfaceFlags().
Implement this function to return true if the surface is a valid surface for the given top-level window; otherwise return false.
Implement this function to return a string that uniquely identifies the class of this surface.
See also window() and isValidFor().
Implement this function to return the appropriate paint device.
See also painterOffset().
Returns the offset to be used when painting.
See also paintDevice().
Releases the current allocated screen region associated with this window surface.
See also detach().
Scrolls the given region dx pixels to the right and dy downward; both dx and dy may be negative.
See also geometry().
Sets the region currently visible on the screen to be the given clip region.
See also clipRegion().
Marks the given region as dirty, i.e., altered.
See also dirtyRegion().
Sets the currently allocated area to be the given rectangle.
This function is called whenever area covered by the top-level window changes.
See also geometry().
Sets the surface flags describing the contents of this surface, to be the given flags.
See also surfaceFlags().
Returns the surface flags describing the contents of this surface.
See also setSurfaceFlags(), isBuffered(), isOpaque(), and isReserved().
Returns a pointer to the top-level window associated with this surface.
See also isValidFor() and key().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.2 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com