QDirectPainter Class Reference |
Constant | Value | Description |
---|---|---|
QDirectPainter::NonReserved | 0 | The allocated region may change, e.g., if a window with a higher focus requests parts of the same region. See also Dynamic Allocation. |
QDirectPainter::Reserved | 1 | The allocated region will never change. See also Static Allocation. |
See also reservedRegion() and allocatedRegion().
Constructs a QDirectPainter object with the given parent and surface flag.
Destroys this QDirectPainter object, releasing the reserved region.
See also allocatedRegion().
Returns the currently reserved region.
Note that if the QDirectPainter::Reserved flag is set, the region returned by this function will always be equivalent to the region returned by the requestedRegion() function. Otherwise they might differ (see Dynamic Allocation for details).
This function was introduced in Qt 4.2.
See also requestedRegion() and geometry().
This function is under development and is subject to change.
The current implementation does nothing.
This function was introduced in Qt 4.2.
Returns a pointer to the beginning of the display memory.
Note that it is the application's responsibility to limit itself to modifying only the reserved region.
Do not use this pointer if the current screen has subscreens, query the screen driver instead: A pointer to the current screen driver can always be retrieved using the static QScreen::instance() function. Then use QScreen's subScreenIndexAt() and subScreens() functions to access the correct subscreen, and the subscreen's base() function to retrieve a pointer to the framebuffer.
See also requestedRegion(), allocatedRegion(), and linestep().
Returns the bounding rectangle of the requested region.
This function was introduced in Qt 4.2.
See also setGeometry() and requestedRegion().
Returns the length (in bytes) of each scanline of the framebuffer.
See also frameBuffer().
Locks access to the framebuffer.
Note that calling this function will prevent all other applications from working until unlock() is called.
See also unlock().
Lowers the reserved region to the bottom of the widget stack.
After this call the reserved region will be visually behind (and therefore obscured by) any overlapping widgets.
This function was introduced in Qt 4.2.
See also raise() and requestedRegion().
Raises the reserved region to the top of the widget stack.
After this call the reserved region will be visually in front of any overlapping widgets.
This function was introduced in Qt 4.2.
See also lower() and requestedRegion().
This function is called whenever the allocated region changes.
Note that the default implementation does nothing; reimplement this function to adjust the currently running processes according to the given newRegion.
This function was introduced in Qt 4.2.
See also allocatedRegion() and Dynamic Allocation.
Returns the region requested by this QDirectPainter.
Note that if the QDirectPainter::Reserved flag is set, the region returned by this function will always be equivalent to the region returned by the allocatedRegion() function. Otherwise they might differ (see Dynamic Allocation for details).
This function was introduced in Qt 4.2.
See also geometry() and setRegion().
Attempts to reserve the given region, and returns the region that is actually reserved.
This function also releases the previously reserved region if any. If not released explicitly, the region will be released on application exit.
See also reservedRegion() and Static Allocation.
Returns the reserved region.
This function was introduced in Qt 4.2.
See also reserveRegion() and frameBuffer().
Returns the bit depth of the display.
See also screenHeight() and screenWidth().
Returns the height of the display in pixels.
See also screenWidth() and screenDepth().
Returns the width of the display in pixels.
See also screenHeight() and screenDepth().
Request to reserve the given rectangle of the framebuffer.
Note that the actually allocated region might differ from the requested one, e.g., if the given region overlaps with the region of another QDirectPainter object.
This function was introduced in Qt 4.2.
See also geometry(), allocatedRegion(), and setRegion().
Requests to reserve the given region of the framebuffer.
Note that the actually allocated region might differ from the requested one, e.g., if the given region overlaps with the region of another QDirectPainter object.
This function was introduced in Qt 4.2.
See also region(), requestedRegion(), allocatedRegion(), and Dynamic Allocation.
This function is under development and is subject to change.
The current implementation does nothing.
This function was introduced in Qt 4.2.
Unlocks the lock on the framebuffer (set using the lock() function), allowing other applications to access the screen.
See also lock().
Returns the window system identifier of the widget.
This function was introduced in Qt 4.2.
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