QDirectPainter Class Reference
|
Константа | Значение | Описание |
---|---|---|
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. |
QDirectPainter::ReservedSynchronous | 3 | The allocated region will never change and each function that changes the allocated region will be blocking. |
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).
Эта функция была введена в Qt 4.2.
See also requestedRegion() and geometry().
This function is under development and is subject to change.
Call this function when you are done updating the screen. It will notify the hardware, if necessary, that your painting operations have ended.
Эта функция была введена в Qt 4.2.
This function is under development and is subject to change.
Это перегруженная функция, предоставленная для удобства.
This function will automatically call flush() to flush the region to the display before notifying the hardware, if necessary, that painting operations have ended.
Эта функция была введена в Qt 4.3.
This function is under development and is subject to change.
Flushes the region onto the screen.
Эта функция была введена в Qt 4.3.
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.
Эта функция была введена в Qt 4.2.
See also setGeometry() and requestedRegion().
Returns the length (in bytes) of each scanline of the framebuffer.
See also frameBuffer().
Warning: This function is not yet implemented.
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.
Эта функция была введена в 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.
Эта функция была введена в Qt 4.2.
See also lower() and requestedRegion().
This function is called when the allocated region changes.
This function is not called for region changes that happen while the startPainting() function is executing.
Note that the given region, newRegion, is not guaranteed to be correct at the time you access the display. To prevent reentrancy problems you should always call startPainting() before updating the display and then use allocatedRegion() to retrieve the correct region.
Эта функция была введена в Qt 4.2.
See also allocatedRegion(), startPainting(), 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).
Эта функция была введена в Qt 4.2.
See also geometry() and setRegion().
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.
Эта функция была введена в 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.
Эта функция была введена в Qt 4.2.
See also region(), requestedRegion(), allocatedRegion(), and Dynamic Allocation.
This function is under development and is subject to change.
Call this function before you start updating the pixels in the allocated region. The hardware will be notified, if necessary, that you are about to start painting operations.
Set lockDisplay if you want startPainting() and endPainting() to lock() and unlock() the display automatically.
Note that for a NonReserved direct painter, you must call allocatedRegion() after calling this function, since the allocated region is only guaranteed to be correct after this function has returned.
The regionChanged() function will not be called between startPainting() and endPainting().
Эта функция была введена в Qt 4.2.
See also endPainting() and flush().
Warning: This function is not yet implemented.
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.
Эта функция была введена в Qt 4.2.
Copyright © 2008 Trolltech | Торговые марки | Qt 4.3.5 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |