Skip to main content

QPaintDevice

Struct QPaintDevice 

Source
pub struct QPaintDevice { /* private fields */ }
Expand description

C++ class: QPaintDevice.

Implementations§

Source§

impl QPaintDevice

Source

pub unsafe fn color_count(&self) -> c_int

Calls C++ function: int QPaintDevice::colorCount() const.

Source

pub unsafe fn depth(&self) -> c_int

Calls C++ function: int QPaintDevice::depth() const.

Source

pub unsafe fn dev_type(&self) -> c_int

Calls C++ function: virtual int QPaintDevice::devType() const.

Source

pub unsafe fn device_pixel_ratio(&self) -> c_int

Calls C++ function: int QPaintDevice::devicePixelRatio() const.

Source

pub unsafe fn device_pixel_ratio_f(&self) -> c_double

Calls C++ function: double QPaintDevice::devicePixelRatioF() const.

Source

pub unsafe fn device_pixel_ratio_f_scale() -> c_double

Calls C++ function: static double QPaintDevice::devicePixelRatioFScale().

Source

pub unsafe fn height(&self) -> c_int

Calls C++ function: int QPaintDevice::height() const.

Source

pub unsafe fn height_m_m(&self) -> c_int

Calls C++ function: int QPaintDevice::heightMM() const.

Source

pub unsafe fn logical_dpi_x(&self) -> c_int

Calls C++ function: int QPaintDevice::logicalDpiX() const.

Source

pub unsafe fn logical_dpi_y(&self) -> c_int

Calls C++ function: int QPaintDevice::logicalDpiY() const.

Source

pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>

Calls C++ function: pure virtual QPaintEngine* QPaintDevice::paintEngine() const.

Source

pub unsafe fn painting_active(&self) -> bool

Calls C++ function: bool QPaintDevice::paintingActive() const.

Source

pub unsafe fn physical_dpi_x(&self) -> c_int

Calls C++ function: int QPaintDevice::physicalDpiX() const.

Source

pub unsafe fn physical_dpi_y(&self) -> c_int

Calls C++ function: int QPaintDevice::physicalDpiY() const.

Source

pub unsafe fn width(&self) -> c_int

Calls C++ function: int QPaintDevice::width() const.

Source

pub unsafe fn width_m_m(&self) -> c_int

Calls C++ function: int QPaintDevice::widthMM() const.

Trait Implementations§

Source§

impl CppDeletable for QPaintDevice

Source§

unsafe fn delete(&self)

Calls C++ function: virtual [destructor] void QPaintDevice::~QPaintDevice().

Source§

impl DynamicCast<QBitmap> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QBitmap>

Calls C++ function: QBitmap* dynamic_cast<QBitmap*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QImage> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>

Calls C++ function: QImage* dynamic_cast<QImage*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QOpenGLPaintDevice> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLPaintDevice>

Calls C++ function: QOpenGLPaintDevice* dynamic_cast<QOpenGLPaintDevice*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QOpenGLWindow> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLWindow>

Calls C++ function: QOpenGLWindow* dynamic_cast<QOpenGLWindow*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QPagedPaintDevice> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPagedPaintDevice>

Calls C++ function: QPagedPaintDevice* dynamic_cast<QPagedPaintDevice*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QPaintDeviceWindow> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPaintDeviceWindow>

Calls C++ function: QPaintDeviceWindow* dynamic_cast<QPaintDeviceWindow*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QPdfWriter> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPdfWriter>

Calls C++ function: QPdfWriter* dynamic_cast<QPdfWriter*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QPicture> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>

Calls C++ function: QPicture* dynamic_cast<QPicture*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QPixmap> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QPixmap>

Calls C++ function: QPixmap* dynamic_cast<QPixmap*>(QPaintDevice* ptr).

Source§

impl DynamicCast<QRasterWindow> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QRasterWindow>

Calls C++ function: QRasterWindow* dynamic_cast<QRasterWindow*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QBitmap> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QBitmap>

Calls C++ function: QBitmap* static_cast<QBitmap*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QImage> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>

Calls C++ function: QImage* static_cast<QImage*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QOpenGLPaintDevice> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLPaintDevice>

Calls C++ function: QOpenGLPaintDevice* static_cast<QOpenGLPaintDevice*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QOpenGLWindow> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QOpenGLWindow>

Calls C++ function: QOpenGLWindow* static_cast<QOpenGLWindow*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QPagedPaintDevice> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPagedPaintDevice>

Calls C++ function: QPagedPaintDevice* static_cast<QPagedPaintDevice*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QPaintDeviceWindow> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPaintDeviceWindow>

Calls C++ function: QPaintDeviceWindow* static_cast<QPaintDeviceWindow*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QPdfWriter> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPdfWriter>

Calls C++ function: QPdfWriter* static_cast<QPdfWriter*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QPicture> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPicture>

Calls C++ function: QPicture* static_cast<QPicture*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QPixmap> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QPixmap>

Calls C++ function: QPixmap* static_cast<QPixmap*>(QPaintDevice* ptr).

Source§

impl StaticDowncast<QRasterWindow> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QRasterWindow>

Calls C++ function: QRasterWindow* static_cast<QRasterWindow*>(QPaintDevice* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QBitmap

Source§

unsafe fn static_upcast(ptr: Ptr<QBitmap>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QBitmap* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QImage

Source§

unsafe fn static_upcast(ptr: Ptr<QImage>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QImage* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QOpenGLPaintDevice

Source§

unsafe fn static_upcast(ptr: Ptr<QOpenGLPaintDevice>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QOpenGLPaintDevice* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QOpenGLWindow

Source§

unsafe fn static_upcast(ptr: Ptr<QOpenGLWindow>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QOpenGLWindow* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QPagedPaintDevice

Source§

unsafe fn static_upcast(ptr: Ptr<QPagedPaintDevice>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPagedPaintDevice* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QPaintDeviceWindow

Source§

unsafe fn static_upcast(ptr: Ptr<QPaintDeviceWindow>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPaintDeviceWindow* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QPdfWriter

Source§

unsafe fn static_upcast(ptr: Ptr<QPdfWriter>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPdfWriter* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QPicture

Source§

unsafe fn static_upcast(ptr: Ptr<QPicture>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPicture* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QPixmap

Source§

unsafe fn static_upcast(ptr: Ptr<QPixmap>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPixmap* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QRasterWindow

Source§

unsafe fn static_upcast(ptr: Ptr<QRasterWindow>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QRasterWindow* ptr).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.