Skip to main content

QOpenGLPaintDevice

Struct QOpenGLPaintDevice 

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

C++ class: QOpenGLPaintDevice.

Implementations§

Source§

impl QOpenGLPaintDevice

Source

pub unsafe fn context(&self) -> QPtr<QOpenGLContext>

Calls C++ function: QOpenGLContext* QOpenGLPaintDevice::context() const.

Source

pub unsafe fn dev_type(&self) -> c_int

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

Source

pub unsafe fn dots_per_meter_x(&self) -> c_double

Calls C++ function: double QOpenGLPaintDevice::dotsPerMeterX() const.

Source

pub unsafe fn dots_per_meter_y(&self) -> c_double

Calls C++ function: double QOpenGLPaintDevice::dotsPerMeterY() const.

Source

pub unsafe fn ensure_active_target(&self)

Calls C++ function: virtual void QOpenGLPaintDevice::ensureActiveTarget().

Source

pub unsafe fn new_0a() -> CppBox<QOpenGLPaintDevice>

Calls C++ function: [constructor] void QOpenGLPaintDevice::QOpenGLPaintDevice().

Source

pub unsafe fn new_1a( size: impl CastInto<Ref<QSize>>, ) -> CppBox<QOpenGLPaintDevice>

Calls C++ function: [constructor] void QOpenGLPaintDevice::QOpenGLPaintDevice(const QSize& size).

Source

pub unsafe fn new_2a(width: c_int, height: c_int) -> CppBox<QOpenGLPaintDevice>

Calls C++ function: [constructor] void QOpenGLPaintDevice::QOpenGLPaintDevice(int width, int height).

Source

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

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

Source

pub unsafe fn paint_flipped(&self) -> bool

Calls C++ function: bool QOpenGLPaintDevice::paintFlipped() const.

Source

pub unsafe fn set_device_pixel_ratio(&self, device_pixel_ratio: c_double)

Calls C++ function: void QOpenGLPaintDevice::setDevicePixelRatio(double devicePixelRatio).

Source

pub unsafe fn set_dots_per_meter_x(&self, arg1: c_double)

Calls C++ function: void QOpenGLPaintDevice::setDotsPerMeterX(double arg1).

Source

pub unsafe fn set_dots_per_meter_y(&self, arg1: c_double)

Calls C++ function: void QOpenGLPaintDevice::setDotsPerMeterY(double arg1).

Source

pub unsafe fn set_paint_flipped(&self, flipped: bool)

Calls C++ function: void QOpenGLPaintDevice::setPaintFlipped(bool flipped).

Source

pub unsafe fn set_size(&self, size: impl CastInto<Ref<QSize>>)

Calls C++ function: void QOpenGLPaintDevice::setSize(const QSize& size).

Source

pub unsafe fn size(&self) -> CppBox<QSize>

Calls C++ function: QSize QOpenGLPaintDevice::size() const.

Methods from Deref<Target = 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 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 QOpenGLPaintDevice

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QOpenGLPaintDevice

Source§

fn deref(&self) -> &QPaintDevice

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

Source§

type Target = QPaintDevice

The resulting type after dereferencing.
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 Size for QOpenGLPaintDevice

Source§

unsafe fn size(&self) -> usize

Calls C++ function: QSize QOpenGLPaintDevice::size() const.

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 StaticUpcast<QPaintDevice> for QOpenGLPaintDevice

Source§

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

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QOpenGLPaintDevice* 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.