|qmake:||QT += gui|
|QBackingStore (QWindow * window )|
|void||beginPaint (const QRegion & region )|
|void||flush (const QRegion & region , QWindow * window = nullptr, const QPoint & offset = QPoint())|
|QPlatformBackingStore *||handle () const|
|bool||hasStaticContents () const|
|QPaintDevice *||paintDevice ()|
|void||resize (const QSize & size )|
|bool||scroll (const QRegion & area , int dx , int dy )|
|void||setStaticContents (const QRegion & region )|
|QSize||size () const|
|QRegion||staticContents () const|
|QWindow *||window () const|
QBackingStore might be used by an application that wants to use QPainter without OpenGL acceleration and without the extra overhead of using the QWidget or QGraphicsView UI stacks. For an example of how to use QBackingStore see the 光栅窗口范例 .
Constructs an empty surface for the given top-level window .
Begins painting on the backing store surface in the given region .
You should call this function before using the paintDevice () to paint.
You should call this function after painting with the paintDevice () has ended.
Flushes the given region from the specified window onto the screen.
must either be the top level window represented by this backingstore, or a non-transient child of that window. Passing
falls back to using the backingstore's top level window.
若 window is a child window, the region should be in child window coordinates, and the offset should be the child window's offset in relation to the backingstore's top level window.
You should call this function after ending painting with endPaint ().
另请参阅 QWindow::transientParent ().
Returns a pointer to the QPlatformBackingStore implementation
Returns a boolean indicating if this window has static contents or not.
Returns the paint device for this surface.
Sets the size of the window surface to size .
另请参阅 size ().
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
if the area was scrolled successfully; false otherwise.
Set region as the static contents of this window.
另请参阅 staticContents ().
Returns the current size of the window surface.
返回 QRegion representing the area of the window that has static contents.
另请参阅 setStaticContents ().
Returns a pointer to the top-level window associated with this surface.