Skip to content

PythonQt.QtGui.QBackingStore · declarations 001

Back to PythonQt.QtGui.QBackingStore

beginPaint

beginPaint(arg__1: Any) -> None

X.beginPaint(arg__1)

Supplemental documentation: Qt 5 reference:

void QBackingStore::beginPaint(const QRegion \&region)

Begins painting on the backing store surface in the given region.

You should call this function before using the paintDevice() to paint.

See also endPaint() and paintDevice().

Upstream PySide2 reference signatures (binding differences may apply):

beginPaint(self, arg__1: PySide2.QtGui.QRegion) -> None

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#beginPaint

endPaint

endPaint() -> None

X.endPaint()

Supplemental documentation: Qt 5 reference:

void QBackingStore::endPaint()

Ends painting.

You should call this function after painting with the paintDevice() has ended.

See also beginPaint() and paintDevice().

Upstream PySide2 reference signatures (binding differences may apply):

endPaint(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#endPaint

flush

flush(region: Any, window: Any, offset: Any) -> None

X.flush(region, window, offset)

Supplemental documentation: Qt 5 reference:

void QBackingStore::flush(const QRegion \&region, QWindow *window \= nullptr, const QPoint \&offset \= QPoint())

Flushes the given region from the specified window onto the screen.

The window must either be the top level window represented by this backingstore, or a non-transient child of that window. Passing nullptr falls back to using the backingstore's top level window.

If the 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().

Upstream PySide2 reference signatures (binding differences may apply):

flush(self, region: PySide2.QtGui.QRegion, window: typing.Optional[PySide2.QtGui.QWindow]=..., offset: PySide2.QtCore.QPoint=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#flush

hasStaticContents

hasStaticContents() -> bool

X.hasStaticContents() -> bool

Supplemental documentation: Qt 5 reference:

bool QBackingStore::hasStaticContents() const

Returns a boolean indicating if this window has static contents or not.

Upstream PySide2 reference signatures (binding differences may apply):

hasStaticContents(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#hasStaticContents

paintDevice

paintDevice() -> Any

X.paintDevice() -> PythonQt.QtGui.QPaintDevice

Supplemental documentation: Qt 5 reference:

QPaintDevice *QBackingStore::paintDevice()

Returns the paint device for this surface.

Warning: The device is only valid between calls to beginPaint() and endPaint(). You should not cache the returned value.

Upstream PySide2 reference signatures (binding differences may apply):

paintDevice(self) -> PySide2.QtGui.QPaintDevice

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#paintDevice

resize

resize(size: Any) -> None

X.resize(size)

Supplemental documentation: Qt 5 reference:

void QBackingStore::resize(const QSize \&size)

Sets the size of the window surface to size.

See also size().

Upstream PySide2 reference signatures (binding differences may apply):

resize(self, size: PySide2.QtCore.QSize) -> None

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#resize

scroll

scroll(area: Any, dx: int, dy: int) -> bool

X.scroll(area, dx, dy) -> bool

Supplemental documentation: Qt 5 reference:

bool QBackingStore::scroll(const QRegion \&area, int dx, int dy)

Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.

Returns true if the area was scrolled successfully; false otherwise.

Upstream PySide2 reference signatures (binding differences may apply):

scroll(self, area: PySide2.QtGui.QRegion, dx: int, dy: int) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#scroll

setStaticContents

setStaticContents(region: Any) -> None

X.setStaticContents(region)

Supplemental documentation: Qt 5 reference:

void QBackingStore::setStaticContents(const QRegion \&region)

Set region as the static contents of this window.

See also staticContents().

Upstream PySide2 reference signatures (binding differences may apply):

setStaticContents(self, region: PySide2.QtGui.QRegion) -> None

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#setStaticContents

size

size() -> Any

X.size() -> PythonQt.QtCore.QSize

Supplemental documentation: Qt 5 reference:

QSize QBackingStore::size() const

Returns the current size of the window surface.

Upstream PySide2 reference signatures (binding differences may apply):

size(self) -> PySide2.QtCore.QSize

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#size

staticContents

staticContents() -> Any

X.staticContents() -> PythonQt.QtGui.QRegion

Supplemental documentation: Qt 5 reference:

QRegion QBackingStore::staticContents() const

Returns a QRegion representing the area of the window that has static contents.

See also setStaticContents().

Upstream PySide2 reference signatures (binding differences may apply):

staticContents(self) -> PySide2.QtGui.QRegion

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#staticContents

window

window() -> Any

X.window() -> PythonQt.QtGui.QWindow

Supplemental documentation: Qt 5 reference:

QWindow *QBackingStore::window() const

Returns a pointer to the top-level window associated with this surface.

Upstream PySide2 reference signatures (binding differences may apply):

window(self) -> PySide2.QtGui.QWindow

Source: https://doc.qt.io/archives/qt-5.15/qbackingstore.html#window