Skip to main content

QPoint

Struct QPoint 

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

C++ class: QPoint.

Implementations§

Source§

impl QPoint

Source

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

Calls C++ function: QPoint& QPoint::operator+=(const QPoint& p).

Source

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

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

Source

pub unsafe fn div_assign(&self, divisor: c_double) -> Ref<QPoint>

Calls C++ function: QPoint& QPoint::operator/=(double divisor).

Source

pub unsafe fn dot_product( p1: impl CastInto<Ref<QPoint>>, p2: impl CastInto<Ref<QPoint>>, ) -> c_int

Calls C++ function: static int QPoint::dotProduct(const QPoint& p1, const QPoint& p2).

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QPoint::isNull() const.

Source

pub unsafe fn manhattan_length(&self) -> c_int

Calls C++ function: int QPoint::manhattanLength() const.

Source

pub unsafe fn mul(&self, factor: c_double) -> CppBox<QPoint>

Calls C++ function: QPoint operator*(const QPoint& p, double factor).

Source

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

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

Source

pub unsafe fn mul_assign_double(&self, factor: c_double) -> Ref<QPoint>

Calls C++ function: QPoint& QPoint::operator*=(double factor).

Source

pub unsafe fn mul_assign_int(&self, factor: c_int) -> Ref<QPoint>

Calls C++ function: QPoint& QPoint::operator*=(int factor).

Source

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

Calls C++ function: QPoint operator-(const QPoint& p).

Source

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

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

Source

pub unsafe fn new_2a(xpos: c_int, ypos: c_int) -> CppBox<QPoint>

Calls C++ function: [constructor] void QPoint::QPoint(int xpos, int ypos).

Source

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

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

Source

pub unsafe fn rx(&self) -> *mut c_int

Calls C++ function: int& QPoint::rx().

Source

pub unsafe fn ry(&self) -> *mut c_int

Calls C++ function: int& QPoint::ry().

Source

pub unsafe fn set_x(&self, x: c_int)

Calls C++ function: void QPoint::setX(int x).

Source

pub unsafe fn set_y(&self, y: c_int)

Calls C++ function: void QPoint::setY(int y).

Source

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

Calls C++ function: QPoint& QPoint::operator-=(const QPoint& p).

Source

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

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

Source

pub unsafe fn unary_plus(&self) -> CppBox<QPoint>

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

Source

pub unsafe fn x(&self) -> c_int

Calls C++ function: int QPoint::x() const.

Source

pub unsafe fn y(&self) -> c_int

Calls C++ function: int QPoint::y() const.

Trait Implementations§

Source§

impl Add<Ref<QPoint>> for &QPoint

Source§

fn add(self, p2: Ref<QPoint>) -> CppBox<QPoint>

Calls C++ function: QPoint operator+(const QPoint& p1, const QPoint& p2).

Source§

type Output = CppBox<QPoint>

The resulting type after applying the + operator.
Source§

impl CppDeletable for QPoint

Source§

unsafe fn delete(&self)

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

Source§

impl Div<f64> for &QPoint

Source§

fn div(self, c: c_double) -> CppBox<QPoint>

Calls C++ function: QPoint operator/(const QPoint& p, double c).

Source§

type Output = CppBox<QPoint>

The resulting type after applying the / operator.
Source§

impl Mul<f32> for &QPoint

Source§

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

Calls C++ function: QPoint operator*(const QPoint& p, float factor).

Source§

type Output = CppBox<QPoint>

The resulting type after applying the * operator.
Source§

impl Mul<i32> for &QPoint

Source§

fn mul(self, factor: c_int) -> CppBox<QPoint>

Calls C++ function: QPoint operator*(const QPoint& p, int factor).

Source§

type Output = CppBox<QPoint>

The resulting type after applying the * operator.
Source§

impl PartialEq<Ref<QPoint>> for QPoint

Source§

fn eq(&self, p2: &Ref<QPoint>) -> bool

Calls C++ function: bool operator==(const QPoint& p1, const QPoint& p2).

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<QPoint>> for &QPoint

Source§

fn sub(self, p2: Ref<QPoint>) -> CppBox<QPoint>

Calls C++ function: QPoint operator-(const QPoint& p1, const QPoint& p2).

Source§

type Output = CppBox<QPoint>

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.