Skip to main content

QMatrix

Struct QMatrix 

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

C++ class: QMatrix.

Implementations§

Source§

impl QMatrix

Source

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

Calls C++ function: QMatrix& QMatrix::operator=(const QMatrix& arg1).

Source

pub unsafe fn determinant(&self) -> c_double

Calls C++ function: double QMatrix::determinant() const.

Source

pub unsafe fn dx(&self) -> c_double

Calls C++ function: double QMatrix::dx() const.

Source

pub unsafe fn dy(&self) -> c_double

Calls C++ function: double QMatrix::dy() const.

Source

pub unsafe fn inverted_1a(&self, invertible: *mut bool) -> CppBox<QMatrix>

Calls C++ function: QMatrix QMatrix::inverted(bool* invertible = …) const.

Source

pub unsafe fn inverted_0a(&self) -> CppBox<QMatrix>

Calls C++ function: QMatrix QMatrix::inverted() const.

Source

pub unsafe fn is_identity(&self) -> bool

Calls C++ function: bool QMatrix::isIdentity() const.

Source

pub unsafe fn is_invertible(&self) -> bool

Calls C++ function: bool QMatrix::isInvertible() const.

Source

pub unsafe fn m11(&self) -> c_double

Calls C++ function: double QMatrix::m11() const.

Source

pub unsafe fn m12(&self) -> c_double

Calls C++ function: double QMatrix::m12() const.

Source

pub unsafe fn m21(&self) -> c_double

Calls C++ function: double QMatrix::m21() const.

Source

pub unsafe fn m22(&self) -> c_double

Calls C++ function: double QMatrix::m22() const.

Source

pub unsafe fn map_2_int2_int( &self, x: c_int, y: c_int, tx: *mut c_int, ty: *mut c_int, )

Calls C++ function: void QMatrix::map(int x, int y, int* tx, int* ty) const.

Source

pub unsafe fn map_2_double2_double( &self, x: c_double, y: c_double, tx: *mut c_double, ty: *mut c_double, )

Calls C++ function: void QMatrix::map(double x, double y, double* tx, double* ty) const.

Source

pub unsafe fn map_q_point( &self, p: impl CastInto<Ref<QPoint>>, ) -> CppBox<QPoint>

Calls C++ function: QPoint QMatrix::map(const QPoint& p) const.

Source

pub unsafe fn map_q_point_f( &self, p: impl CastInto<Ref<QPointF>>, ) -> CppBox<QPointF>

Calls C++ function: QPointF QMatrix::map(const QPointF& p) const.

Source

pub unsafe fn map_q_line(&self, l: impl CastInto<Ref<QLine>>) -> CppBox<QLine>

Calls C++ function: QLine QMatrix::map(const QLine& l) const.

Source

pub unsafe fn map_q_line_f( &self, l: impl CastInto<Ref<QLineF>>, ) -> CppBox<QLineF>

Calls C++ function: QLineF QMatrix::map(const QLineF& l) const.

Source

pub unsafe fn map_q_polygon_f( &self, a: impl CastInto<Ref<QPolygonF>>, ) -> CppBox<QPolygonF>

Calls C++ function: QPolygonF QMatrix::map(const QPolygonF& a) const.

Source

pub unsafe fn map_q_polygon( &self, a: impl CastInto<Ref<QPolygon>>, ) -> CppBox<QPolygon>

Calls C++ function: QPolygon QMatrix::map(const QPolygon& a) const.

Source

pub unsafe fn map_q_region( &self, r: impl CastInto<Ref<QRegion>>, ) -> CppBox<QRegion>

Calls C++ function: QRegion QMatrix::map(const QRegion& r) const.

Source

pub unsafe fn map_q_painter_path( &self, p: impl CastInto<Ref<QPainterPath>>, ) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QMatrix::map(const QPainterPath& p) const.

Source

pub unsafe fn map_rect_q_rect( &self, arg1: impl CastInto<Ref<QRect>>, ) -> CppBox<QRect>

Calls C++ function: QRect QMatrix::mapRect(const QRect& arg1) const.

Source

pub unsafe fn map_rect_q_rect_f( &self, arg1: impl CastInto<Ref<QRectF>>, ) -> CppBox<QRectF>

Calls C++ function: QRectF QMatrix::mapRect(const QRectF& arg1) const.

Source

pub unsafe fn map_to_polygon( &self, r: impl CastInto<Ref<QRect>>, ) -> CppBox<QPolygon>

Calls C++ function: QPolygon QMatrix::mapToPolygon(const QRect& r) const.

Source

pub unsafe fn mul_assign( &self, arg1: impl CastInto<Ref<QMatrix>>, ) -> Ref<QMatrix>

Calls C++ function: QMatrix& QMatrix::operator*=(const QMatrix& arg1).

Source

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

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

Source

pub unsafe fn new_6a( m11: c_double, m12: c_double, m21: c_double, m22: c_double, dx: c_double, dy: c_double, ) -> CppBox<QMatrix>

Calls C++ function: [constructor] void QMatrix::QMatrix(double m11, double m12, double m21, double m22, double dx, double dy).

Source

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

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

Source

pub unsafe fn reset(&self)

Calls C++ function: void QMatrix::reset().

Source

pub unsafe fn rotate(&self, a: c_double) -> Ref<QMatrix>

Calls C++ function: QMatrix& QMatrix::rotate(double a).

Source

pub unsafe fn scale(&self, sx: c_double, sy: c_double) -> Ref<QMatrix>

Calls C++ function: QMatrix& QMatrix::scale(double sx, double sy).

Source

pub unsafe fn set_matrix( &self, m11: c_double, m12: c_double, m21: c_double, m22: c_double, dx: c_double, dy: c_double, )

Calls C++ function: void QMatrix::setMatrix(double m11, double m12, double m21, double m22, double dx, double dy).

Source

pub unsafe fn shear(&self, sh: c_double, sv: c_double) -> Ref<QMatrix>

Calls C++ function: QMatrix& QMatrix::shear(double sh, double sv).

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QMatrix::operator QVariant() const.

Source

pub unsafe fn translate(&self, dx: c_double, dy: c_double) -> Ref<QMatrix>

Calls C++ function: QMatrix& QMatrix::translate(double dx, double dy).

Trait Implementations§

Source§

impl CppDeletable for QMatrix

Source§

unsafe fn delete(&self)

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

Source§

impl Mul<Ref<QMatrix>> for &QMatrix

Source§

fn mul(self, o: Ref<QMatrix>) -> CppBox<QMatrix>

Calls C++ function: QMatrix QMatrix::operator*(const QMatrix& o) const.

Source§

type Output = CppBox<QMatrix>

The resulting type after applying the * operator.
Source§

impl PartialEq<Ref<QMatrix>> for QMatrix

Source§

fn eq(&self, arg1: &Ref<QMatrix>) -> bool

Calls C++ function: bool QMatrix::operator==(const QMatrix& arg1) const.

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.