pub struct QPagedPaintDevice { /* private fields */ }Expand description
C++ class: QPagedPaintDevice.
Implementations§
Source§impl QPagedPaintDevice
impl QPagedPaintDevice
Sourcepub unsafe fn margins(&self) -> CppBox<Margins>
pub unsafe fn margins(&self) -> CppBox<Margins>
Calls C++ function: QPagedPaintDevice::Margins QPagedPaintDevice::margins() const.
Sourcepub unsafe fn new_page(&self) -> bool
pub unsafe fn new_page(&self) -> bool
Calls C++ function: pure virtual bool QPagedPaintDevice::newPage().
Sourcepub unsafe fn page_layout(&self) -> CppBox<QPageLayout>
pub unsafe fn page_layout(&self) -> CppBox<QPageLayout>
Calls C++ function: QPageLayout QPagedPaintDevice::pageLayout() const.
Sourcepub unsafe fn page_size(&self) -> PageSize
pub unsafe fn page_size(&self) -> PageSize
Calls C++ function: QPagedPaintDevice::PageSize QPagedPaintDevice::pageSize() const.
Sourcepub unsafe fn page_size_m_m(&self) -> CppBox<QSizeF>
pub unsafe fn page_size_m_m(&self) -> CppBox<QSizeF>
Calls C++ function: QSizeF QPagedPaintDevice::pageSizeMM() const.
Sourcepub unsafe fn set_margins(&self, margins: impl CastInto<Ref<Margins>>)
pub unsafe fn set_margins(&self, margins: impl CastInto<Ref<Margins>>)
Calls C++ function: virtual void QPagedPaintDevice::setMargins(const QPagedPaintDevice::Margins& margins).
Sourcepub unsafe fn set_page_layout(
&self,
page_layout: impl CastInto<Ref<QPageLayout>>,
) -> bool
pub unsafe fn set_page_layout( &self, page_layout: impl CastInto<Ref<QPageLayout>>, ) -> bool
Calls C++ function: bool QPagedPaintDevice::setPageLayout(const QPageLayout& pageLayout).
Sourcepub unsafe fn set_page_margins_1a(
&self,
margins: impl CastInto<Ref<QMarginsF>>,
) -> bool
pub unsafe fn set_page_margins_1a( &self, margins: impl CastInto<Ref<QMarginsF>>, ) -> bool
Calls C++ function: bool QPagedPaintDevice::setPageMargins(const QMarginsF& margins).
Sourcepub unsafe fn set_page_margins_2a(
&self,
margins: impl CastInto<Ref<QMarginsF>>,
units: Unit,
) -> bool
pub unsafe fn set_page_margins_2a( &self, margins: impl CastInto<Ref<QMarginsF>>, units: Unit, ) -> bool
Calls C++ function: bool QPagedPaintDevice::setPageMargins(const QMarginsF& margins, QPageLayout::Unit units).
Sourcepub unsafe fn set_page_orientation(&self, orientation: Orientation) -> bool
pub unsafe fn set_page_orientation(&self, orientation: Orientation) -> bool
Calls C++ function: bool QPagedPaintDevice::setPageOrientation(QPageLayout::Orientation orientation).
Sourcepub unsafe fn set_page_size_q_page_size(
&self,
page_size: impl CastInto<Ref<QPageSize>>,
) -> bool
pub unsafe fn set_page_size_q_page_size( &self, page_size: impl CastInto<Ref<QPageSize>>, ) -> bool
Calls C++ function: bool QPagedPaintDevice::setPageSize(const QPageSize& pageSize).
Sourcepub unsafe fn set_page_size_page_size(&self, size: PageSize)
pub unsafe fn set_page_size_page_size(&self, size: PageSize)
Calls C++ function: virtual void QPagedPaintDevice::setPageSize(QPagedPaintDevice::PageSize size).
Sourcepub unsafe fn set_page_size_m_m(&self, size: impl CastInto<Ref<QSizeF>>)
pub unsafe fn set_page_size_m_m(&self, size: impl CastInto<Ref<QSizeF>>)
Calls C++ function: virtual void QPagedPaintDevice::setPageSizeMM(const QSizeF& size).
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 QPagedPaintDevice
impl CppDeletable for QPagedPaintDevice
Source§impl Deref for QPagedPaintDevice
impl Deref for QPagedPaintDevice
Source§fn deref(&self) -> &QPaintDevice
fn deref(&self) -> &QPaintDevice
Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QPagedPaintDevice* ptr).
Source§type Target = QPaintDevice
type Target = QPaintDevice
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<QPdfWriter> for QPagedPaintDevice
impl DynamicCast<QPdfWriter> for QPagedPaintDevice
Source§unsafe fn dynamic_cast(ptr: Ptr<QPagedPaintDevice>) -> Ptr<QPdfWriter>
unsafe fn dynamic_cast(ptr: Ptr<QPagedPaintDevice>) -> Ptr<QPdfWriter>
Calls C++ function: QPdfWriter* dynamic_cast<QPdfWriter*>(QPagedPaintDevice* 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<QPdfWriter> for QPagedPaintDevice
impl StaticDowncast<QPdfWriter> for QPagedPaintDevice
Source§unsafe fn static_downcast(ptr: Ptr<QPagedPaintDevice>) -> Ptr<QPdfWriter>
unsafe fn static_downcast(ptr: Ptr<QPagedPaintDevice>) -> Ptr<QPdfWriter>
Calls C++ function: QPdfWriter* static_cast<QPdfWriter*>(QPagedPaintDevice* ptr).
Source§impl StaticUpcast<QPagedPaintDevice> for QPdfWriter
impl StaticUpcast<QPagedPaintDevice> for QPdfWriter
Source§unsafe fn static_upcast(ptr: Ptr<QPdfWriter>) -> Ptr<QPagedPaintDevice>
unsafe fn static_upcast(ptr: Ptr<QPdfWriter>) -> Ptr<QPagedPaintDevice>
Calls C++ function: QPagedPaintDevice* static_cast<QPagedPaintDevice*>(QPdfWriter* 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).