pub struct QPaintDevice { /* private fields */ }Expand description
C++ class: QPaintDevice.
Implementations§
Source§impl QPaintDevice
impl QPaintDevice
Sourcepub unsafe fn color_count(&self) -> c_int
pub unsafe fn color_count(&self) -> c_int
Calls C++ function: int QPaintDevice::colorCount() const.
Sourcepub unsafe fn dev_type(&self) -> c_int
pub unsafe fn dev_type(&self) -> c_int
Calls C++ function: virtual int QPaintDevice::devType() const.
Sourcepub unsafe fn device_pixel_ratio(&self) -> c_int
pub unsafe fn device_pixel_ratio(&self) -> c_int
Calls C++ function: int QPaintDevice::devicePixelRatio() const.
Sourcepub unsafe fn device_pixel_ratio_f(&self) -> c_double
pub unsafe fn device_pixel_ratio_f(&self) -> c_double
Calls C++ function: double QPaintDevice::devicePixelRatioF() const.
Sourcepub unsafe fn device_pixel_ratio_f_scale() -> c_double
pub unsafe fn device_pixel_ratio_f_scale() -> c_double
Calls C++ function: static double QPaintDevice::devicePixelRatioFScale().
Sourcepub unsafe fn height_m_m(&self) -> c_int
pub unsafe fn height_m_m(&self) -> c_int
Calls C++ function: int QPaintDevice::heightMM() const.
Sourcepub unsafe fn logical_dpi_x(&self) -> c_int
pub unsafe fn logical_dpi_x(&self) -> c_int
Calls C++ function: int QPaintDevice::logicalDpiX() const.
Sourcepub unsafe fn logical_dpi_y(&self) -> c_int
pub unsafe fn logical_dpi_y(&self) -> c_int
Calls C++ function: int QPaintDevice::logicalDpiY() const.
Sourcepub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
Calls C++ function: pure virtual QPaintEngine* QPaintDevice::paintEngine() const.
Sourcepub unsafe fn painting_active(&self) -> bool
pub unsafe fn painting_active(&self) -> bool
Calls C++ function: bool QPaintDevice::paintingActive() const.
Sourcepub unsafe fn physical_dpi_x(&self) -> c_int
pub unsafe fn physical_dpi_x(&self) -> c_int
Calls C++ function: int QPaintDevice::physicalDpiX() const.
Sourcepub unsafe fn physical_dpi_y(&self) -> c_int
pub unsafe fn physical_dpi_y(&self) -> c_int
Calls C++ function: int QPaintDevice::physicalDpiY() const.
Trait Implementations§
Source§impl CppDeletable for QPaintDevice
impl CppDeletable for QPaintDevice
Source§impl DynamicCast<QBitmap> for QPaintDevice
impl DynamicCast<QBitmap> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QBitmap>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QBitmap>
Calls C++ function: QBitmap* dynamic_cast<QBitmap*>(QPaintDevice* ptr).
Source§impl DynamicCast<QImage> for QPaintDevice
impl DynamicCast<QImage> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>
Calls C++ function: QImage* dynamic_cast<QImage*>(QPaintDevice* ptr).
Source§impl DynamicCast<QOpenGLPaintDevice> for QPaintDevice
impl DynamicCast<QOpenGLPaintDevice> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLPaintDevice>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLPaintDevice>
Calls C++ function: QOpenGLPaintDevice* dynamic_cast<QOpenGLPaintDevice*>(QPaintDevice* ptr).
Source§impl DynamicCast<QOpenGLWindow> for QPaintDevice
impl DynamicCast<QOpenGLWindow> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLWindow>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLWindow>
Calls C++ function: QOpenGLWindow* dynamic_cast<QOpenGLWindow*>(QPaintDevice* ptr).
Source§impl DynamicCast<QPagedPaintDevice> for QPaintDevice
impl DynamicCast<QPagedPaintDevice> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPagedPaintDevice>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPagedPaintDevice>
Calls C++ function: QPagedPaintDevice* dynamic_cast<QPagedPaintDevice*>(QPaintDevice* ptr).
Source§impl DynamicCast<QPaintDeviceWindow> for QPaintDevice
impl DynamicCast<QPaintDeviceWindow> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPaintDeviceWindow>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPaintDeviceWindow>
Calls C++ function: QPaintDeviceWindow* dynamic_cast<QPaintDeviceWindow*>(QPaintDevice* ptr).
Source§impl DynamicCast<QPdfWriter> for QPaintDevice
impl DynamicCast<QPdfWriter> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPdfWriter>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPdfWriter>
Calls C++ function: QPdfWriter* dynamic_cast<QPdfWriter*>(QPaintDevice* ptr).
Source§impl DynamicCast<QPicture> for QPaintDevice
impl DynamicCast<QPicture> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>
Calls C++ function: QPicture* dynamic_cast<QPicture*>(QPaintDevice* ptr).
Source§impl DynamicCast<QPixmap> for QPaintDevice
impl DynamicCast<QPixmap> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPixmap>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPixmap>
Calls C++ function: QPixmap* dynamic_cast<QPixmap*>(QPaintDevice* ptr).
Source§impl DynamicCast<QRasterWindow> for QPaintDevice
impl DynamicCast<QRasterWindow> for QPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QRasterWindow>
unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QRasterWindow>
Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QBitmap> for QPaintDevice
impl StaticDowncast<QBitmap> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QBitmap>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QBitmap>
Calls C++ function: QBitmap* static_cast<QBitmap*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QImage> for QPaintDevice
impl StaticDowncast<QImage> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>
Calls C++ function: QImage* static_cast<QImage*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QOpenGLPaintDevice> for QPaintDevice
impl StaticDowncast<QOpenGLPaintDevice> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLPaintDevice>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLPaintDevice>
Calls C++ function: QOpenGLPaintDevice* static_cast<QOpenGLPaintDevice*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QOpenGLWindow> for QPaintDevice
impl StaticDowncast<QOpenGLWindow> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLWindow>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLWindow>
Calls C++ function: QOpenGLWindow* static_cast<QOpenGLWindow*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QPagedPaintDevice> for QPaintDevice
impl StaticDowncast<QPagedPaintDevice> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPagedPaintDevice>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPagedPaintDevice>
Calls C++ function: QPagedPaintDevice* static_cast<QPagedPaintDevice*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QPaintDeviceWindow> for QPaintDevice
impl StaticDowncast<QPaintDeviceWindow> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPaintDeviceWindow>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPaintDeviceWindow>
Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QPdfWriter> for QPaintDevice
impl StaticDowncast<QPdfWriter> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPdfWriter>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPdfWriter>
Calls C++ function: QPdfWriter* static_cast<QPdfWriter*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QPicture> for QPaintDevice
impl StaticDowncast<QPicture> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>
Calls C++ function: QPicture* static_cast<QPicture*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QPixmap> for QPaintDevice
impl StaticDowncast<QPixmap> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPixmap>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPixmap>
Calls C++ function: QPixmap* static_cast<QPixmap*>(QPaintDevice* ptr).
Source§impl StaticDowncast<QRasterWindow> for QPaintDevice
impl StaticDowncast<QRasterWindow> for QPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QRasterWindow>
unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QRasterWindow>
Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QPaintDevice* ptr).
Source§impl StaticUpcast<QPaintDevice> for QBitmap
impl StaticUpcast<QPaintDevice> for QBitmap
Source§unsafe fn static_upcast(ptr: Ptr<QBitmap>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QBitmap>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QBitmap* ptr).
Source§impl StaticUpcast<QPaintDevice> for QImage
impl StaticUpcast<QPaintDevice> for QImage
Source§unsafe fn static_upcast(ptr: Ptr<QImage>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QImage>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QImage* ptr).
Source§impl StaticUpcast<QPaintDevice> for QOpenGLPaintDevice
impl StaticUpcast<QPaintDevice> for QOpenGLPaintDevice
Source§unsafe fn static_upcast(ptr: Ptr<QOpenGLPaintDevice>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QOpenGLPaintDevice>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QOpenGLPaintDevice* ptr).
Source§impl StaticUpcast<QPaintDevice> for QOpenGLWindow
impl StaticUpcast<QPaintDevice> for QOpenGLWindow
Source§unsafe fn static_upcast(ptr: Ptr<QOpenGLWindow>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QOpenGLWindow>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QOpenGLWindow* ptr).
Source§impl StaticUpcast<QPaintDevice> for QPagedPaintDevice
impl StaticUpcast<QPaintDevice> for QPagedPaintDevice
Source§unsafe fn static_upcast(ptr: Ptr<QPagedPaintDevice>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QPagedPaintDevice>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPagedPaintDevice* ptr).
Source§impl StaticUpcast<QPaintDevice> for QPaintDeviceWindow
impl StaticUpcast<QPaintDevice> for QPaintDeviceWindow
Source§unsafe fn static_upcast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPaintDeviceWindow* ptr).
Source§impl StaticUpcast<QPaintDevice> for QPdfWriter
impl StaticUpcast<QPaintDevice> for QPdfWriter
Source§unsafe fn static_upcast(ptr: Ptr<QPdfWriter>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QPdfWriter>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPdfWriter* ptr).
Source§impl StaticUpcast<QPaintDevice> for QPicture
impl StaticUpcast<QPaintDevice> for QPicture
Source§unsafe fn static_upcast(ptr: Ptr<QPicture>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QPicture>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPicture* ptr).
Source§impl StaticUpcast<QPaintDevice> for QPixmap
impl StaticUpcast<QPaintDevice> for QPixmap
Source§unsafe fn static_upcast(ptr: Ptr<QPixmap>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QPixmap>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPixmap* ptr).
Source§impl StaticUpcast<QPaintDevice> for QRasterWindow
impl StaticUpcast<QPaintDevice> for QRasterWindow
Source§unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QPaintDevice>
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QRasterWindow* ptr).