Skip to main content

QTransform

Struct QTransform 

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

C++ class: QTransform.

Implementations§

Source§

impl QTransform

Source

pub unsafe fn add_assign(&self, div: c_double) -> Ref<QTransform>

Calls C++ function: QTransform& QTransform::operator+=(double div).

Source

pub unsafe fn adjoint(&self) -> CppBox<QTransform>

Calls C++ function: QTransform QTransform::adjoint() const.

Source

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

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

Source

pub unsafe fn det(&self) -> c_double

Calls C++ function: double QTransform::det() const.

Source

pub unsafe fn determinant(&self) -> c_double

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

Source

pub unsafe fn div_assign(&self, div: c_double) -> Ref<QTransform>

Calls C++ function: QTransform& QTransform::operator/=(double div).

Source

pub unsafe fn dx(&self) -> c_double

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

Source

pub unsafe fn dy(&self) -> c_double

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

Source

pub unsafe fn from_scale(dx: c_double, dy: c_double) -> CppBox<QTransform>

Calls C++ function: static QTransform QTransform::fromScale(double dx, double dy).

Source

pub unsafe fn from_translate(dx: c_double, dy: c_double) -> CppBox<QTransform>

Calls C++ function: static QTransform QTransform::fromTranslate(double dx, double dy).

Source

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

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

Source

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

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

Source

pub unsafe fn is_affine(&self) -> bool

Calls C++ function: bool QTransform::isAffine() const.

Source

pub unsafe fn is_identity(&self) -> bool

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

Source

pub unsafe fn is_invertible(&self) -> bool

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

Source

pub unsafe fn is_rotating(&self) -> bool

Calls C++ function: bool QTransform::isRotating() const.

Source

pub unsafe fn is_scaling(&self) -> bool

Calls C++ function: bool QTransform::isScaling() const.

Source

pub unsafe fn is_translating(&self) -> bool

Calls C++ function: bool QTransform::isTranslating() const.

Source

pub unsafe fn m11(&self) -> c_double

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

Source

pub unsafe fn m12(&self) -> c_double

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

Source

pub unsafe fn m13(&self) -> c_double

Calls C++ function: double QTransform::m13() const.

Source

pub unsafe fn m21(&self) -> c_double

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

Source

pub unsafe fn m22(&self) -> c_double

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

Source

pub unsafe fn m23(&self) -> c_double

Calls C++ function: double QTransform::m23() const.

Source

pub unsafe fn m31(&self) -> c_double

Calls C++ function: double QTransform::m31() const.

Source

pub unsafe fn m32(&self) -> c_double

Calls C++ function: double QTransform::m32() const.

Source

pub unsafe fn m33(&self) -> c_double

Calls C++ function: double QTransform::m33() const.

Source

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

Calls C++ function: QPoint QTransform::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 QTransform::map(const QPointF& p) const.

Source

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

Calls C++ function: QLine QTransform::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 QTransform::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 QTransform::map(const QPolygonF& a) const.

Source

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

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

Source

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

Calls C++ function: QRegion QTransform::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 QTransform::map(const QPainterPath& p) 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 QTransform::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 QTransform::map(double x, double y, double* tx, double* ty) const.

Source

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

Calls C++ function: QRect QTransform::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 QTransform::mapRect(const QRectF& arg1) const.

Source

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

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

Source

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

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

Source

pub unsafe fn mul_assign_double(&self, div: c_double) -> Ref<QTransform>

Calls C++ function: QTransform& QTransform::operator*=(double div).

Source

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

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

Source

pub unsafe fn new_9a( h11: c_double, h12: c_double, h13: c_double, h21: c_double, h22: c_double, h23: c_double, h31: c_double, h32: c_double, h33: c_double, ) -> CppBox<QTransform>

Calls C++ function: [constructor] void QTransform::QTransform(double h11, double h12, double h13, double h21, double h22, double h23, double h31, double h32, double h33 = …).

Source

pub unsafe fn new_6a( h11: c_double, h12: c_double, h21: c_double, h22: c_double, dx: c_double, dy: c_double, ) -> CppBox<QTransform>

Calls C++ function: [constructor] void QTransform::QTransform(double h11, double h12, double h21, double h22, double dx, double dy).

Source

pub unsafe fn new_1a(mtx: impl CastInto<Ref<QMatrix>>) -> CppBox<QTransform>

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

Source

pub unsafe fn new_8a( h11: c_double, h12: c_double, h13: c_double, h21: c_double, h22: c_double, h23: c_double, h31: c_double, h32: c_double, ) -> CppBox<QTransform>

Calls C++ function: [constructor] void QTransform::QTransform(double h11, double h12, double h13, double h21, double h22, double h23, double h31, double h32).

Source

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

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

Source

pub unsafe fn quad_to_quad( one: impl CastInto<Ref<QPolygonF>>, two: impl CastInto<Ref<QPolygonF>>, result: impl CastInto<Ref<QTransform>>, ) -> bool

Calls C++ function: static bool QTransform::quadToQuad(const QPolygonF& one, const QPolygonF& two, QTransform& result).

Source

pub unsafe fn quad_to_square( quad: impl CastInto<Ref<QPolygonF>>, result: impl CastInto<Ref<QTransform>>, ) -> bool

Calls C++ function: static bool QTransform::quadToSquare(const QPolygonF& quad, QTransform& result).

Source

pub unsafe fn reset(&self)

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

Source

pub unsafe fn rotate_2a(&self, a: c_double, axis: Axis) -> Ref<QTransform>

Calls C++ function: QTransform& QTransform::rotate(double a, Qt::Axis axis = …).

Source

pub unsafe fn rotate_1a(&self, a: c_double) -> Ref<QTransform>

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

Source

pub unsafe fn rotate_radians_2a( &self, a: c_double, axis: Axis, ) -> Ref<QTransform>

Calls C++ function: QTransform& QTransform::rotateRadians(double a, Qt::Axis axis = …).

Source

pub unsafe fn rotate_radians_1a(&self, a: c_double) -> Ref<QTransform>

Calls C++ function: QTransform& QTransform::rotateRadians(double a).

Source

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

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

Source

pub unsafe fn set_matrix( &self, m11: c_double, m12: c_double, m13: c_double, m21: c_double, m22: c_double, m23: c_double, m31: c_double, m32: c_double, m33: c_double, )

Calls C++ function: void QTransform::setMatrix(double m11, double m12, double m13, double m21, double m22, double m23, double m31, double m32, double m33).

Source

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

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

Source

pub unsafe fn square_to_quad( square: impl CastInto<Ref<QPolygonF>>, result: impl CastInto<Ref<QTransform>>, ) -> bool

Calls C++ function: static bool QTransform::squareToQuad(const QPolygonF& square, QTransform& result).

Source

pub unsafe fn sub_assign(&self, div: c_double) -> Ref<QTransform>

Calls C++ function: QTransform& QTransform::operator-=(double div).

Source

pub unsafe fn to_affine(&self) -> Ref<QMatrix>

Calls C++ function: const QMatrix& QTransform::toAffine() const.

Source

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

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

Source

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

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

Source

pub unsafe fn transposed(&self) -> CppBox<QTransform>

Calls C++ function: QTransform QTransform::transposed() const.

Source

pub unsafe fn type_(&self) -> TransformationType

Calls C++ function: QTransform::TransformationType QTransform::type() const.

Trait Implementations§

Source§

impl Add<f64> for &QTransform

Source§

fn add(self, n: c_double) -> CppBox<QTransform>

Calls C++ function: QTransform operator+(const QTransform& a, double n).

Source§

type Output = CppBox<QTransform>

The resulting type after applying the + operator.
Source§

impl CppDeletable for QTransform

Source§

unsafe fn delete(&self)

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

Source§

impl Div<f64> for &QTransform

Source§

fn div(self, n: c_double) -> CppBox<QTransform>

Calls C++ function: QTransform operator/(const QTransform& a, double n).

Source§

type Output = CppBox<QTransform>

The resulting type after applying the / operator.
Source§

impl Mul<Ref<QTransform>> for &QTransform

Source§

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

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

Source§

type Output = CppBox<QTransform>

The resulting type after applying the * operator.
Source§

impl Mul<f64> for &QTransform

Source§

fn mul(self, n: c_double) -> CppBox<QTransform>

Calls C++ function: QTransform operator*(const QTransform& a, double n).

Source§

type Output = CppBox<QTransform>

The resulting type after applying the * operator.
Source§

impl PartialEq<Ref<QTransform>> for QTransform

Source§

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

Calls C++ function: bool QTransform::operator==(const QTransform& 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.
Source§

impl Sub<f64> for &QTransform

Source§

fn sub(self, n: c_double) -> CppBox<QTransform>

Calls C++ function: QTransform operator-(const QTransform& a, double n).

Source§

type Output = CppBox<QTransform>

The resulting type after applying the - operator.

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.