pub struct QOpenGLPaintDevice { /* private fields */ }Expand description
C++ class: QOpenGLPaintDevice.
Implementations§
Source§impl QOpenGLPaintDevice
impl QOpenGLPaintDevice
Sourcepub unsafe fn context(&self) -> QPtr<QOpenGLContext>
pub unsafe fn context(&self) -> QPtr<QOpenGLContext>
Calls C++ function: QOpenGLContext* QOpenGLPaintDevice::context() const.
Sourcepub unsafe fn dev_type(&self) -> c_int
pub unsafe fn dev_type(&self) -> c_int
Calls C++ function: virtual int QOpenGLPaintDevice::devType() const.
Sourcepub unsafe fn dots_per_meter_x(&self) -> c_double
pub unsafe fn dots_per_meter_x(&self) -> c_double
Calls C++ function: double QOpenGLPaintDevice::dotsPerMeterX() const.
Sourcepub unsafe fn dots_per_meter_y(&self) -> c_double
pub unsafe fn dots_per_meter_y(&self) -> c_double
Calls C++ function: double QOpenGLPaintDevice::dotsPerMeterY() const.
Sourcepub unsafe fn ensure_active_target(&self)
pub unsafe fn ensure_active_target(&self)
Calls C++ function: virtual void QOpenGLPaintDevice::ensureActiveTarget().
Sourcepub unsafe fn new_0a() -> CppBox<QOpenGLPaintDevice>
pub unsafe fn new_0a() -> CppBox<QOpenGLPaintDevice>
Calls C++ function: [constructor] void QOpenGLPaintDevice::QOpenGLPaintDevice().
Sourcepub unsafe fn new_1a(
size: impl CastInto<Ref<QSize>>,
) -> CppBox<QOpenGLPaintDevice>
pub unsafe fn new_1a( size: impl CastInto<Ref<QSize>>, ) -> CppBox<QOpenGLPaintDevice>
Calls C++ function: [constructor] void QOpenGLPaintDevice::QOpenGLPaintDevice(const QSize& size).
Sourcepub unsafe fn new_2a(width: c_int, height: c_int) -> CppBox<QOpenGLPaintDevice>
pub unsafe fn new_2a(width: c_int, height: c_int) -> CppBox<QOpenGLPaintDevice>
Calls C++ function: [constructor] void QOpenGLPaintDevice::QOpenGLPaintDevice(int width, int height).
Sourcepub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>
Calls C++ function: virtual QPaintEngine* QOpenGLPaintDevice::paintEngine() const.
Sourcepub unsafe fn paint_flipped(&self) -> bool
pub unsafe fn paint_flipped(&self) -> bool
Calls C++ function: bool QOpenGLPaintDevice::paintFlipped() const.
Sourcepub unsafe fn set_device_pixel_ratio(&self, device_pixel_ratio: c_double)
pub unsafe fn set_device_pixel_ratio(&self, device_pixel_ratio: c_double)
Calls C++ function: void QOpenGLPaintDevice::setDevicePixelRatio(double devicePixelRatio).
Sourcepub unsafe fn set_dots_per_meter_x(&self, arg1: c_double)
pub unsafe fn set_dots_per_meter_x(&self, arg1: c_double)
Calls C++ function: void QOpenGLPaintDevice::setDotsPerMeterX(double arg1).
Sourcepub unsafe fn set_dots_per_meter_y(&self, arg1: c_double)
pub unsafe fn set_dots_per_meter_y(&self, arg1: c_double)
Calls C++ function: void QOpenGLPaintDevice::setDotsPerMeterY(double arg1).
Sourcepub unsafe fn set_paint_flipped(&self, flipped: bool)
pub unsafe fn set_paint_flipped(&self, flipped: bool)
Calls C++ function: void QOpenGLPaintDevice::setPaintFlipped(bool flipped).
Methods from Deref<Target = 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 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 QOpenGLPaintDevice
impl CppDeletable for QOpenGLPaintDevice
Source§impl Deref for QOpenGLPaintDevice
impl Deref for QOpenGLPaintDevice
Source§fn deref(&self) -> &QPaintDevice
fn deref(&self) -> &QPaintDevice
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QOpenGLPaintDevice* ptr).
Source§type Target = QPaintDevice
type Target = QPaintDevice
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 Size for QOpenGLPaintDevice
impl Size for QOpenGLPaintDevice
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 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).