Skip to main content

QMatrix4X4

Struct QMatrix4X4 

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

C++ class: QMatrix4x4.

Implementations§

Source§

impl QMatrix4X4

Source

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

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

Source

pub unsafe fn call(&self, row: c_int, column: c_int) -> *const c_float

Calls C++ function: const float& QMatrix4x4::operator()(int row, int column) const.

Source

pub unsafe fn call_mut(&self, row: c_int, column: c_int) -> *mut c_float

Calls C++ function: float& QMatrix4x4::operator()(int row, int column).

Source

pub unsafe fn column(&self, index: c_int) -> CppBox<QVector4D>

Calls C++ function: QVector4D QMatrix4x4::column(int index) const.

Source

pub unsafe fn const_data(&self) -> *const c_float

Calls C++ function: const float* QMatrix4x4::constData() const.

Source

pub unsafe fn copy_data_to(&self, values: *mut c_float)

Calls C++ function: void QMatrix4x4::copyDataTo(float* values) const.

Source

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

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

Source

pub unsafe fn data_mut(&self) -> *mut c_float

Calls C++ function: float* QMatrix4x4::data().

Source

pub unsafe fn data(&self) -> *const c_float

Calls C++ function: const float* QMatrix4x4::data() const.

Source

pub unsafe fn determinant(&self) -> c_double

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

Source

pub unsafe fn div_assign(&self, divisor: c_float) -> Ref<QMatrix4X4>

Calls C++ function: QMatrix4x4& QMatrix4x4::operator/=(float divisor).

Source

pub unsafe fn fill(&self, value: c_float)

Calls C++ function: void QMatrix4x4::fill(float value).

Source

pub unsafe fn flip_coordinates(&self)

Calls C++ function: void QMatrix4x4::flipCoordinates().

Source

pub unsafe fn frustum( &self, left: c_float, right: c_float, bottom: c_float, top: c_float, near_plane: c_float, far_plane: c_float, )

Calls C++ function: void QMatrix4x4::frustum(float left, float right, float bottom, float top, float nearPlane, float farPlane).

Source

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

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

Source

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

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

Source

pub unsafe fn is_affine(&self) -> bool

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

Source

pub unsafe fn is_identity(&self) -> bool

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

Source

pub unsafe fn look_at( &self, eye: impl CastInto<Ref<QVector3D>>, center: impl CastInto<Ref<QVector3D>>, up: impl CastInto<Ref<QVector3D>>, )

Calls C++ function: void QMatrix4x4::lookAt(const QVector3D& eye, const QVector3D& center, const QVector3D& up).

Source

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

Calls C++ function: QPoint QMatrix4x4::map(const QPoint& point) const.

Source

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

Calls C++ function: QPointF QMatrix4x4::map(const QPointF& point) const.

Source

pub unsafe fn map_q_vector_3d( &self, point: impl CastInto<Ref<QVector3D>>, ) -> CppBox<QVector3D>

Calls C++ function: QVector3D QMatrix4x4::map(const QVector3D& point) const.

Source

pub unsafe fn map_q_vector_4d( &self, point: impl CastInto<Ref<QVector4D>>, ) -> CppBox<QVector4D>

Calls C++ function: QVector4D QMatrix4x4::map(const QVector4D& point) const.

Source

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

Calls C++ function: QRect QMatrix4x4::mapRect(const QRect& rect) const.

Source

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

Calls C++ function: QRectF QMatrix4x4::mapRect(const QRectF& rect) const.

Source

pub unsafe fn map_vector( &self, vector: impl CastInto<Ref<QVector3D>>, ) -> CppBox<QVector3D>

Calls C++ function: QVector3D QMatrix4x4::mapVector(const QVector3D& vector) const.

Source

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

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

Source

pub unsafe fn mul_assign_float(&self, factor: c_float) -> Ref<QMatrix4X4>

Calls C++ function: QMatrix4x4& QMatrix4x4::operator*=(float factor).

Source

pub unsafe fn neg(&self) -> CppBox<QMatrix4X4>

Calls C++ function: QMatrix4x4 operator-(const QMatrix4x4& matrix).

Source

pub unsafe fn new() -> CppBox<QMatrix4X4>

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

Source

pub unsafe fn from_float(values: *const c_float) -> CppBox<QMatrix4X4>

Calls C++ function: [constructor] void QMatrix4x4::QMatrix4x4(const float* values).

Source

pub unsafe fn from_16_float( m11: c_float, m12: c_float, m13: c_float, m14: c_float, m21: c_float, m22: c_float, m23: c_float, m24: c_float, m31: c_float, m32: c_float, m33: c_float, m34: c_float, m41: c_float, m42: c_float, m43: c_float, m44: c_float, ) -> CppBox<QMatrix4X4>

Calls C++ function: [constructor] void QMatrix4x4::QMatrix4x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44).

Source

pub unsafe fn from_float2_int( values: *const c_float, cols: c_int, rows: c_int, ) -> CppBox<QMatrix4X4>

Calls C++ function: [constructor] void QMatrix4x4::QMatrix4x4(const float* values, int cols, int rows).

Source

pub unsafe fn from_q_transform( transform: impl CastInto<Ref<QTransform>>, ) -> CppBox<QMatrix4X4>

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

Source

pub unsafe fn from_q_matrix( matrix: impl CastInto<Ref<QMatrix>>, ) -> CppBox<QMatrix4X4>

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

Source

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

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

Source

pub unsafe fn optimize(&self)

Calls C++ function: void QMatrix4x4::optimize().

Source

pub unsafe fn ortho_q_rect(&self, rect: impl CastInto<Ref<QRect>>)

Calls C++ function: void QMatrix4x4::ortho(const QRect& rect).

Source

pub unsafe fn ortho_q_rect_f(&self, rect: impl CastInto<Ref<QRectF>>)

Calls C++ function: void QMatrix4x4::ortho(const QRectF& rect).

Source

pub unsafe fn ortho_6_float( &self, left: c_float, right: c_float, bottom: c_float, top: c_float, near_plane: c_float, far_plane: c_float, )

Calls C++ function: void QMatrix4x4::ortho(float left, float right, float bottom, float top, float nearPlane, float farPlane).

Source

pub unsafe fn perspective( &self, vertical_angle: c_float, aspect_ratio: c_float, near_plane: c_float, far_plane: c_float, )

Calls C++ function: void QMatrix4x4::perspective(float verticalAngle, float aspectRatio, float nearPlane, float farPlane).

Source

pub unsafe fn rotate_2a( &self, angle: c_float, vector: impl CastInto<Ref<QVector3D>>, )

Calls C++ function: void QMatrix4x4::rotate(float angle, const QVector3D& vector).

Source

pub unsafe fn rotate_4a( &self, angle: c_float, x: c_float, y: c_float, z: c_float, )

Calls C++ function: void QMatrix4x4::rotate(float angle, float x, float y, float z = …).

Source

pub unsafe fn rotate_1a(&self, quaternion: impl CastInto<Ref<QQuaternion>>)

Calls C++ function: void QMatrix4x4::rotate(const QQuaternion& quaternion).

Source

pub unsafe fn rotate_3a(&self, angle: c_float, x: c_float, y: c_float)

Calls C++ function: void QMatrix4x4::rotate(float angle, float x, float y).

Source

pub unsafe fn row(&self, index: c_int) -> CppBox<QVector4D>

Calls C++ function: QVector4D QMatrix4x4::row(int index) const.

Source

pub unsafe fn scale_q_vector_3d(&self, vector: impl CastInto<Ref<QVector3D>>)

Calls C++ function: void QMatrix4x4::scale(const QVector3D& vector).

Source

pub unsafe fn scale_2_float(&self, x: c_float, y: c_float)

Calls C++ function: void QMatrix4x4::scale(float x, float y).

Source

pub unsafe fn scale_3_float(&self, x: c_float, y: c_float, z: c_float)

Calls C++ function: void QMatrix4x4::scale(float x, float y, float z).

Source

pub unsafe fn scale_float(&self, factor: c_float)

Calls C++ function: void QMatrix4x4::scale(float factor).

Source

pub unsafe fn set_column( &self, index: c_int, value: impl CastInto<Ref<QVector4D>>, )

Calls C++ function: void QMatrix4x4::setColumn(int index, const QVector4D& value).

Source

pub unsafe fn set_row(&self, index: c_int, value: impl CastInto<Ref<QVector4D>>)

Calls C++ function: void QMatrix4x4::setRow(int index, const QVector4D& value).

Source

pub unsafe fn set_to_identity(&self)

Calls C++ function: void QMatrix4x4::setToIdentity().

Source

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

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

Source

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

Calls C++ function: QMatrix QMatrix4x4::toAffine() const.

Source

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

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

Source

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

Calls C++ function: QTransform QMatrix4x4::toTransform() const.

Source

pub unsafe fn to_transform_1a( &self, distance_to_plane: c_float, ) -> CppBox<QTransform>

Calls C++ function: QTransform QMatrix4x4::toTransform(float distanceToPlane) const.

Source

pub unsafe fn translate_1a(&self, vector: impl CastInto<Ref<QVector3D>>)

Calls C++ function: void QMatrix4x4::translate(const QVector3D& vector).

Source

pub unsafe fn translate_2a(&self, x: c_float, y: c_float)

Calls C++ function: void QMatrix4x4::translate(float x, float y).

Source

pub unsafe fn translate_3a(&self, x: c_float, y: c_float, z: c_float)

Calls C++ function: void QMatrix4x4::translate(float x, float y, float z).

Source

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

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

Source

pub unsafe fn viewport_1a(&self, rect: impl CastInto<Ref<QRectF>>)

Calls C++ function: void QMatrix4x4::viewport(const QRectF& rect).

Source

pub unsafe fn viewport_6a( &self, left: c_float, bottom: c_float, width: c_float, height: c_float, near_plane: c_float, far_plane: c_float, )

Calls C++ function: void QMatrix4x4::viewport(float left, float bottom, float width, float height, float nearPlane = …, float farPlane = …).

Source

pub unsafe fn viewport_5a( &self, left: c_float, bottom: c_float, width: c_float, height: c_float, near_plane: c_float, )

Calls C++ function: void QMatrix4x4::viewport(float left, float bottom, float width, float height, float nearPlane = …).

Source

pub unsafe fn viewport_4a( &self, left: c_float, bottom: c_float, width: c_float, height: c_float, )

Calls C++ function: void QMatrix4x4::viewport(float left, float bottom, float width, float height).

Trait Implementations§

Source§

impl Add<Ref<QMatrix4X4>> for &QMatrix4X4

Source§

fn add(self, m2: Ref<QMatrix4X4>) -> CppBox<QMatrix4X4>

Calls C++ function: QMatrix4x4 operator+(const QMatrix4x4& m1, const QMatrix4x4& m2).

Source§

type Output = CppBox<QMatrix4X4>

The resulting type after applying the + operator.
Source§

impl CppDeletable for QMatrix4X4

Source§

unsafe fn delete(&self)

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

Source§

impl Data for QMatrix4X4

Source§

unsafe fn data(&self) -> *const c_float

Calls C++ function: const float* QMatrix4x4::data() const.

Source§

type Output = *const f32

Return type of data() function.
Source§

impl DataMut for QMatrix4X4

Source§

unsafe fn data_mut(&self) -> *mut c_float

Calls C++ function: float* QMatrix4x4::data().

Source§

type Output = *mut f32

Return type of data_mut() function.
Source§

impl Div<f32> for &QMatrix4X4

Source§

fn div(self, divisor: c_float) -> CppBox<QMatrix4X4>

Calls C++ function: QMatrix4x4 operator/(const QMatrix4x4& matrix, float divisor).

Source§

type Output = CppBox<QMatrix4X4>

The resulting type after applying the / operator.
Source§

impl Mul<Ref<QMatrix4X4>> for &QMatrix4X4

Source§

fn mul(self, m2: Ref<QMatrix4X4>) -> CppBox<QMatrix4X4>

Calls C++ function: QMatrix4x4 operator*(const QMatrix4x4& m1, const QMatrix4x4& m2).

Source§

type Output = CppBox<QMatrix4X4>

The resulting type after applying the * operator.
Source§

impl Mul<Ref<QPoint>> for &QMatrix4X4

Source§

fn mul(self, point: Ref<QPoint>) -> CppBox<QPoint>

Calls C++ function: QPoint operator*(const QMatrix4x4& matrix, const QPoint& point).

Source§

type Output = CppBox<QPoint>

The resulting type after applying the * operator.
Source§

impl Mul<Ref<QPointF>> for &QMatrix4X4

Source§

fn mul(self, point: Ref<QPointF>) -> CppBox<QPointF>

Calls C++ function: QPointF operator*(const QMatrix4x4& matrix, const QPointF& point).

Source§

type Output = CppBox<QPointF>

The resulting type after applying the * operator.
Source§

impl Mul<Ref<QVector3D>> for &QMatrix4X4

Source§

fn mul(self, vector: Ref<QVector3D>) -> CppBox<QVector3D>

Calls C++ function: QVector3D operator*(const QMatrix4x4& matrix, const QVector3D& vector).

Source§

type Output = CppBox<QVector3D>

The resulting type after applying the * operator.
Source§

impl Mul<Ref<QVector4D>> for &QMatrix4X4

Source§

fn mul(self, vector: Ref<QVector4D>) -> CppBox<QVector4D>

Calls C++ function: QVector4D operator*(const QMatrix4x4& matrix, const QVector4D& vector).

Source§

type Output = CppBox<QVector4D>

The resulting type after applying the * operator.
Source§

impl Mul<f32> for &QMatrix4X4

Source§

fn mul(self, factor: c_float) -> CppBox<QMatrix4X4>

Calls C++ function: QMatrix4x4 operator*(const QMatrix4x4& matrix, float factor).

Source§

type Output = CppBox<QMatrix4X4>

The resulting type after applying the * operator.
Source§

impl PartialEq<Ref<QMatrix4X4>> for QMatrix4X4

Source§

fn eq(&self, other: &Ref<QMatrix4X4>) -> bool

Calls C++ function: bool QMatrix4x4::operator==(const QMatrix4x4& other) 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<Ref<QMatrix4X4>> for &QMatrix4X4

Source§

fn sub(self, m2: Ref<QMatrix4X4>) -> CppBox<QMatrix4X4>

Calls C++ function: QMatrix4x4 operator-(const QMatrix4x4& m1, const QMatrix4x4& m2).

Source§

type Output = CppBox<QMatrix4X4>

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.