Skip to main content

QPageLayout

Struct QPageLayout 

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

C++ class: QPageLayout.

Implementations§

Source§

impl QPageLayout

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QPageLayout>>, ) -> Ref<QPageLayout>

Calls C++ function: QPageLayout& QPageLayout::operator=(const QPageLayout& other).

Source

pub unsafe fn full_rect_0a(&self) -> CppBox<QRectF>

Calls C++ function: QRectF QPageLayout::fullRect() const.

Source

pub unsafe fn full_rect_1a(&self, units: Unit) -> CppBox<QRectF>

Calls C++ function: QRectF QPageLayout::fullRect(QPageLayout::Unit units) const.

Source

pub unsafe fn full_rect_pixels(&self, resolution: c_int) -> CppBox<QRect>

Calls C++ function: QRect QPageLayout::fullRectPixels(int resolution) const.

Source

pub unsafe fn full_rect_points(&self) -> CppBox<QRect>

Calls C++ function: QRect QPageLayout::fullRectPoints() const.

Source

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

Calls C++ function: bool QPageLayout::isEquivalentTo(const QPageLayout& other) const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QPageLayout::isValid() const.

Source

pub unsafe fn margins_0a(&self) -> CppBox<QMarginsF>

Calls C++ function: QMarginsF QPageLayout::margins() const.

Source

pub unsafe fn margins_1a(&self, units: Unit) -> CppBox<QMarginsF>

Calls C++ function: QMarginsF QPageLayout::margins(QPageLayout::Unit units) const.

Source

pub unsafe fn margins_pixels(&self, resolution: c_int) -> CppBox<QMargins>

Calls C++ function: QMargins QPageLayout::marginsPixels(int resolution) const.

Source

pub unsafe fn margins_points(&self) -> CppBox<QMargins>

Calls C++ function: QMargins QPageLayout::marginsPoints() const.

Source

pub unsafe fn maximum_margins(&self) -> CppBox<QMarginsF>

Calls C++ function: QMarginsF QPageLayout::maximumMargins() const.

Source

pub unsafe fn minimum_margins(&self) -> CppBox<QMarginsF>

Calls C++ function: QMarginsF QPageLayout::minimumMargins() const.

Source

pub unsafe fn mode(&self) -> Mode

Calls C++ function: QPageLayout::Mode QPageLayout::mode() const.

Source

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

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

Source

pub unsafe fn new_5a( page_size: impl CastInto<Ref<QPageSize>>, orientation: Orientation, margins: impl CastInto<Ref<QMarginsF>>, units: Unit, min_margins: impl CastInto<Ref<QMarginsF>>, ) -> CppBox<QPageLayout>

Calls C++ function: [constructor] void QPageLayout::QPageLayout(const QPageSize& pageSize, QPageLayout::Orientation orientation, const QMarginsF& margins, QPageLayout::Unit units = …, const QMarginsF& minMargins = …).

Source

pub unsafe fn new_4a( page_size: impl CastInto<Ref<QPageSize>>, orientation: Orientation, margins: impl CastInto<Ref<QMarginsF>>, units: Unit, ) -> CppBox<QPageLayout>

Calls C++ function: [constructor] void QPageLayout::QPageLayout(const QPageSize& pageSize, QPageLayout::Orientation orientation, const QMarginsF& margins, QPageLayout::Unit units = …).

Source

pub unsafe fn new_3a( page_size: impl CastInto<Ref<QPageSize>>, orientation: Orientation, margins: impl CastInto<Ref<QMarginsF>>, ) -> CppBox<QPageLayout>

Calls C++ function: [constructor] void QPageLayout::QPageLayout(const QPageSize& pageSize, QPageLayout::Orientation orientation, const QMarginsF& margins).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QPageLayout>>, ) -> CppBox<QPageLayout>

Calls C++ function: [constructor] void QPageLayout::QPageLayout(const QPageLayout& other).

Source

pub unsafe fn orientation(&self) -> Orientation

Calls C++ function: QPageLayout::Orientation QPageLayout::orientation() const.

Source

pub unsafe fn page_size(&self) -> CppBox<QPageSize>

Calls C++ function: QPageSize QPageLayout::pageSize() const.

Source

pub unsafe fn paint_rect_0a(&self) -> CppBox<QRectF>

Calls C++ function: QRectF QPageLayout::paintRect() const.

Source

pub unsafe fn paint_rect_1a(&self, units: Unit) -> CppBox<QRectF>

Calls C++ function: QRectF QPageLayout::paintRect(QPageLayout::Unit units) const.

Source

pub unsafe fn paint_rect_pixels(&self, resolution: c_int) -> CppBox<QRect>

Calls C++ function: QRect QPageLayout::paintRectPixels(int resolution) const.

Source

pub unsafe fn paint_rect_points(&self) -> CppBox<QRect>

Calls C++ function: QRect QPageLayout::paintRectPoints() const.

Source

pub unsafe fn set_bottom_margin(&self, bottom_margin: c_double) -> bool

Calls C++ function: bool QPageLayout::setBottomMargin(double bottomMargin).

Source

pub unsafe fn set_left_margin(&self, left_margin: c_double) -> bool

Calls C++ function: bool QPageLayout::setLeftMargin(double leftMargin).

Source

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

Calls C++ function: bool QPageLayout::setMargins(const QMarginsF& margins).

Source

pub unsafe fn set_minimum_margins( &self, min_margins: impl CastInto<Ref<QMarginsF>>, )

Calls C++ function: void QPageLayout::setMinimumMargins(const QMarginsF& minMargins).

Source

pub unsafe fn set_mode(&self, mode: Mode)

Calls C++ function: void QPageLayout::setMode(QPageLayout::Mode mode).

Source

pub unsafe fn set_orientation(&self, orientation: Orientation)

Calls C++ function: void QPageLayout::setOrientation(QPageLayout::Orientation orientation).

Source

pub unsafe fn set_page_size_2a( &self, page_size: impl CastInto<Ref<QPageSize>>, min_margins: impl CastInto<Ref<QMarginsF>>, )

Calls C++ function: void QPageLayout::setPageSize(const QPageSize& pageSize, const QMarginsF& minMargins = …).

Source

pub unsafe fn set_page_size_1a(&self, page_size: impl CastInto<Ref<QPageSize>>)

Calls C++ function: void QPageLayout::setPageSize(const QPageSize& pageSize).

Source

pub unsafe fn set_right_margin(&self, right_margin: c_double) -> bool

Calls C++ function: bool QPageLayout::setRightMargin(double rightMargin).

Source

pub unsafe fn set_top_margin(&self, top_margin: c_double) -> bool

Calls C++ function: bool QPageLayout::setTopMargin(double topMargin).

Source

pub unsafe fn set_units(&self, units: Unit)

Calls C++ function: void QPageLayout::setUnits(QPageLayout::Unit units).

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QPageLayout>>)

Calls C++ function: void QPageLayout::swap(QPageLayout& other).

Source

pub unsafe fn units(&self) -> Unit

Calls C++ function: QPageLayout::Unit QPageLayout::units() const.

Trait Implementations§

Source§

impl CppDeletable for QPageLayout

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QPageLayout>> for QPageLayout

Source§

fn eq(&self, rhs: &Ref<QPageLayout>) -> bool

Calls C++ function: bool operator==(const QPageLayout& lhs, const QPageLayout& rhs).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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.