Skip to main content

QPointF

Struct QPointF 

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

C++ class: QPointF.

Implementations§

Source§

impl QPointF

Source

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

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

Source

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

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

Source

pub unsafe fn div_assign(&self, c: c_double) -> Ref<QPointF>

Calls C++ function: QPointF& QPointF::operator/=(double c).

Source

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

Calls C++ function: static double QPointF::dotProduct(const QPointF& p1, const QPointF& p2).

Source

pub unsafe fn is_null(&self) -> bool

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

Source

pub unsafe fn manhattan_length(&self) -> c_double

Calls C++ function: double QPointF::manhattanLength() const.

Source

pub unsafe fn mul_assign(&self, c: c_double) -> Ref<QPointF>

Calls C++ function: QPointF& QPointF::operator*=(double c).

Source

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

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

Source

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

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

Source

pub unsafe fn new_1a(p: impl CastInto<Ref<QPoint>>) -> CppBox<QPointF>

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

Source

pub unsafe fn new_2a(xpos: c_double, ypos: c_double) -> CppBox<QPointF>

Calls C++ function: [constructor] void QPointF::QPointF(double xpos, double ypos).

Source

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

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

Source

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

Calls C++ function: double& QPointF::rx().

Source

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

Calls C++ function: double& QPointF::ry().

Source

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

Calls C++ function: void QPointF::setX(double x).

Source

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

Calls C++ function: void QPointF::setY(double y).

Source

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

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

Source

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

Calls C++ function: QPoint QPointF::toPoint() const.

Source

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

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

Source

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

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

Source

pub unsafe fn x(&self) -> c_double

Calls C++ function: double QPointF::x() const.

Source

pub unsafe fn y(&self) -> c_double

Calls C++ function: double QPointF::y() const.

Trait Implementations§

Source§

impl Add<Ref<QPointF>> for &QPointF

Source§

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

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

Source§

type Output = CppBox<QPointF>

The resulting type after applying the + operator.
Source§

impl CppDeletable for QPointF

Source§

unsafe fn delete(&self)

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

Source§

impl Div<f64> for &QPointF

Source§

fn div(self, divisor: c_double) -> CppBox<QPointF>

Calls C++ function: QPointF operator/(const QPointF& p, double divisor).

Source§

type Output = CppBox<QPointF>

The resulting type after applying the / operator.
Source§

impl Mul<f64> for &QPointF

Source§

fn mul(self, c: c_double) -> CppBox<QPointF>

Calls C++ function: QPointF operator*(const QPointF& p, double c).

Source§

type Output = CppBox<QPointF>

The resulting type after applying the * operator.
Source§

impl PartialEq<Ref<QPointF>> for QPointF

Source§

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

Calls C++ function: bool operator==(const QPointF& p1, const QPointF& 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<QPointF>> for &QPointF

Source§

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

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

Source§

type Output = CppBox<QPointF>

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.