Skip to main content

QPagedPaintDevice

Struct QPagedPaintDevice 

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

C++ class: QPagedPaintDevice.

Implementations§

Source§

impl QPagedPaintDevice

Source

pub unsafe fn margins(&self) -> CppBox<Margins>

Calls C++ function: QPagedPaintDevice::Margins QPagedPaintDevice::margins() const.

Source

pub unsafe fn new_page(&self) -> bool

Calls C++ function: pure virtual bool QPagedPaintDevice::newPage().

Source

pub unsafe fn page_layout(&self) -> CppBox<QPageLayout>

Calls C++ function: QPageLayout QPagedPaintDevice::pageLayout() const.

Source

pub unsafe fn page_size(&self) -> PageSize

Calls C++ function: QPagedPaintDevice::PageSize QPagedPaintDevice::pageSize() const.

Source

pub unsafe fn page_size_m_m(&self) -> CppBox<QSizeF>

Calls C++ function: QSizeF QPagedPaintDevice::pageSizeMM() const.

Source

pub unsafe fn set_margins(&self, margins: impl CastInto<Ref<Margins>>)

Calls C++ function: virtual void QPagedPaintDevice::setMargins(const QPagedPaintDevice::Margins& margins).

Source

pub unsafe fn set_page_layout( &self, page_layout: impl CastInto<Ref<QPageLayout>>, ) -> bool

Calls C++ function: bool QPagedPaintDevice::setPageLayout(const QPageLayout& pageLayout).

Source

pub unsafe fn set_page_margins_1a( &self, margins: impl CastInto<Ref<QMarginsF>>, ) -> bool

Calls C++ function: bool QPagedPaintDevice::setPageMargins(const QMarginsF& margins).

Source

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).

Source

pub unsafe fn set_page_orientation(&self, orientation: Orientation) -> bool

Calls C++ function: bool QPagedPaintDevice::setPageOrientation(QPageLayout::Orientation orientation).

Source

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).

Source

pub unsafe fn set_page_size_page_size(&self, size: PageSize)

Calls C++ function: virtual void QPagedPaintDevice::setPageSize(QPagedPaintDevice::PageSize size).

Source

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>§

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 QPagedPaintDevice

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QPagedPaintDevice

Source§

fn deref(&self) -> &QPaintDevice

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

Source§

type Target = QPaintDevice

The resulting type after dereferencing.
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<QPdfWriter> for QPagedPaintDevice

Source§

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

Calls C++ function: QPdfWriter* dynamic_cast<QPdfWriter*>(QPagedPaintDevice* 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<QPdfWriter> for QPagedPaintDevice

Source§

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

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

Source§

impl StaticUpcast<QPagedPaintDevice> for QPdfWriter

Source§

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

Calls C++ function: QPagedPaintDevice* static_cast<QPagedPaintDevice*>(QPdfWriter* 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).

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.