PythonQt.QtGui.QPaintDevice · declarations 001
Back to PythonQt.QtGui.QPaintDevice
colorCount
colorCount() -> int
X.colorCount() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::colorCount() const
Returns the number of different colors available for the paint device. If the number of colors available is too great to be represented by the int data type, then INT_MAX will be returned instead.
Upstream PySide2 reference signatures (binding differences may apply):
colorCount(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#colorCount
depth
depth() -> int
X.depth() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::depth() const
Returns the bit depth (number of bit planes) of the paint device.
Upstream PySide2 reference signatures (binding differences may apply):
depth(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#depth
devType
devType() -> int
X.devType() -> int
Upstream PySide2 reference signatures (binding differences may apply):
devType(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#devType
devicePixelRatio
devicePixelRatio() -> int
X.devicePixelRatio() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::devicePixelRatio() const
Returns the device pixel ratio for device.
Common values are 1 for normal-dpi displays and 2 for high-dpi "retina" displays.
Upstream PySide2 reference signatures (binding differences may apply):
devicePixelRatio(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#devicePixelRatio
devicePixelRatioF
devicePixelRatioF() -> float
X.devicePixelRatioF() -> float
Supplemental documentation: Qt 5 reference:
qreal QPaintDevice::devicePixelRatioF() const
Returns the device pixel ratio for the device as a floating point number.
This function was introduced in Qt 5.6.
Upstream PySide2 reference signatures (binding differences may apply):
devicePixelRatioF(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#devicePixelRatioF
devicePixelRatioFScale
devicePixelRatioFScale() -> float
X.devicePixelRatioFScale() -> float
Upstream PySide2 reference signatures (binding differences may apply):
devicePixelRatioFScale() -> float
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#devicePixelRatioFScale
height
height() -> int
X.height() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::height() const
Returns the height of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget).
See also heightMM().
Upstream PySide2 reference signatures (binding differences may apply):
height(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#height
heightMM
heightMM() -> int
X.heightMM() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::heightMM() const
Returns the height of the paint device in millimeters. Due to platform limitations it may not be possible to use this function to determine the actual physical size of a widget on the screen.
See also height().
Upstream PySide2 reference signatures (binding differences may apply):
heightMM(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#heightMM
initPainter
initPainter(painter: Any) -> None
X.initPainter(painter)
Upstream PySide2 reference signatures (binding differences may apply):
initPainter(self, painter: PySide2.QtGui.QPainter) -> None
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#initPainter
logicalDpiX
logicalDpiX() -> int
X.logicalDpiX() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::logicalDpiX() const
Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from widthMM().
Note that if the logicalDpiX() doesn't equal the physicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping.
See also logicalDpiY() and physicalDpiX().
Upstream PySide2 reference signatures (binding differences may apply):
logicalDpiX(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#logicalDpiX
logicalDpiY
logicalDpiY() -> int
X.logicalDpiY() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::logicalDpiY() const
Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from heightMM().
Note that if the logicalDpiY() doesn't equal the physicalDpiY(), the corresponding QPaintEngine must handle the resolution mapping.
See also logicalDpiX() and physicalDpiY().
Upstream PySide2 reference signatures (binding differences may apply):
logicalDpiY(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#logicalDpiY
metric
metric(metric: Any) -> int
X.metric(metric) -> int
Supplemental documentation: Qt 5 reference:
[virtual protected] int QPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const
Returns the metric information for the given paint device metric.
See also PaintDeviceMetric.
Upstream PySide2 reference signatures (binding differences may apply):
metric(self, metric: PySide2.QtGui.QPaintDevice.PaintDeviceMetric) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#metric
paintEngine
paintEngine() -> Any
X.paintEngine() -> PythonQt.QtGui.QPaintEngine
Supplemental documentation: Qt 5 reference:
[pure virtual] QPaintEngine *QPaintDevice::paintEngine() const
Returns a pointer to the paint engine used for drawing on the device.
Upstream PySide2 reference signatures (binding differences may apply):
paintEngine(self) -> PySide2.QtGui.QPaintEngine
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#paintEngine
paintingActive
paintingActive() -> bool
X.paintingActive() -> bool
Supplemental documentation: Qt 5 reference:
bool QPaintDevice::paintingActive() const
Returns true if the device is currently being painted on, i.e. someone has called
QPainter::begin() but not yet
called QPainter::end() for this
device; otherwise returns false.
See also QPainter::isActive().
Upstream PySide2 reference signatures (binding differences may apply):
paintingActive(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#paintingActive
physicalDpiX
physicalDpiX() -> int
X.physicalDpiX() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::physicalDpiX() const
Returns the horizontal resolution of the device in dots per inch. For example, when printing, this resolution refers to the physical printer's resolution. The logical DPI on the other hand, refers to the resolution used by the actual paint engine.
Note that if the physicalDpiX() doesn't equal the logicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping.
See also physicalDpiY() and logicalDpiX().
Upstream PySide2 reference signatures (binding differences may apply):
physicalDpiX(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#physicalDpiX
physicalDpiY
physicalDpiY() -> int
X.physicalDpiY() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::physicalDpiY() const
Returns the horizontal resolution of the device in dots per inch. For example, when printing, this resolution refers to the physical printer's resolution. The logical DPI on the other hand, refers to the resolution used by the actual paint engine.
Note that if the physicalDpiY() doesn't equal the logicalDpiY(), the corresponding QPaintEngine must handle the resolution mapping.
See also physicalDpiX() and logicalDpiY().
Upstream PySide2 reference signatures (binding differences may apply):
physicalDpiY(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#physicalDpiY
redirected
redirected(offset: Any) -> Any
X.redirected(offset) -> PythonQt.QtGui.QPaintDevice
Upstream PySide2 reference signatures (binding differences may apply):
redirected(self, offset: PySide2.QtCore.QPoint) -> PySide2.QtGui.QPaintDevice
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#redirected
sharedPainter
sharedPainter() -> Any
X.sharedPainter() -> PythonQt.QtGui.QPainter
Upstream PySide2 reference signatures (binding differences may apply):
sharedPainter(self) -> PySide2.QtGui.QPainter
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#sharedPainter
width
width() -> int
X.width() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::width() const
Returns the width of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget).
See also widthMM().
Upstream PySide2 reference signatures (binding differences may apply):
width(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#width
widthMM
widthMM() -> int
X.widthMM() -> int
Supplemental documentation: Qt 5 reference:
int QPaintDevice::widthMM() const
Returns the width of the paint device in millimeters. Due to platform limitations it may not be possible to use this function to determine the actual physical size of a widget on the screen.
See also width().
Upstream PySide2 reference signatures (binding differences may apply):
widthMM(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qpaintdevice.html#widthMM