Skip to main content

QLineF

Struct QLineF 

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

C++ class: QLineF.

Implementations§

Source§

impl QLineF

Source

pub unsafe fn angle_0a(&self) -> c_double

Calls C++ function: double QLineF::angle() const.

Source

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

Calls C++ function: double QLineF::angle(const QLineF& l) const.

Source

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

Calls C++ function: double QLineF::angleTo(const QLineF& l) const.

Source

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

Calls C++ function: QPointF QLineF::center() const.

Source

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

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

Source

pub unsafe fn dx(&self) -> c_double

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

Source

pub unsafe fn dy(&self) -> c_double

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

Source

pub unsafe fn from_polar(length: c_double, angle: c_double) -> CppBox<QLineF>

Calls C++ function: static QLineF QLineF::fromPolar(double length, double angle).

Source

pub unsafe fn intersect( &self, l: impl CastInto<Ref<QLineF>>, intersection_point: impl CastInto<Ptr<QPointF>>, ) -> IntersectType

Calls C++ function: QLineF::IntersectType QLineF::intersect(const QLineF& l, QPointF* intersectionPoint) const.

Source

pub unsafe fn intersects( &self, l: impl CastInto<Ref<QLineF>>, intersection_point: impl CastInto<Ptr<QPointF>>, ) -> IntersectType

Calls C++ function: QLineF::IntersectType QLineF::intersects(const QLineF& l, QPointF* intersectionPoint) const.

Source

pub unsafe fn is_null(&self) -> bool

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

Source

pub unsafe fn length(&self) -> c_double

Calls C++ function: double QLineF::length() const.

Source

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

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

Source

pub unsafe fn new_2a( pt1: impl CastInto<Ref<QPointF>>, pt2: impl CastInto<Ref<QPointF>>, ) -> CppBox<QLineF>

Calls C++ function: [constructor] void QLineF::QLineF(const QPointF& pt1, const QPointF& pt2).

Source

pub unsafe fn new_4a( x1: c_double, y1: c_double, x2: c_double, y2: c_double, ) -> CppBox<QLineF>

Calls C++ function: [constructor] void QLineF::QLineF(double x1, double y1, double x2, double y2).

Source

pub unsafe fn new_1a(line: impl CastInto<Ref<QLine>>) -> CppBox<QLineF>

Calls C++ function: [constructor] void QLineF::QLineF(const QLine& line).

Source

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

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

Source

pub unsafe fn normal_vector(&self) -> CppBox<QLineF>

Calls C++ function: QLineF QLineF::normalVector() const.

Source

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

Calls C++ function: QPointF QLineF::p1() const.

Source

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

Calls C++ function: QPointF QLineF::p2() const.

Source

pub unsafe fn point_at(&self, t: c_double) -> CppBox<QPointF>

Calls C++ function: QPointF QLineF::pointAt(double t) const.

Source

pub unsafe fn set_angle(&self, angle: c_double)

Calls C++ function: void QLineF::setAngle(double angle).

Source

pub unsafe fn set_length(&self, len: c_double)

Calls C++ function: void QLineF::setLength(double len).

Source

pub unsafe fn set_line( &self, x1: c_double, y1: c_double, x2: c_double, y2: c_double, )

Calls C++ function: void QLineF::setLine(double x1, double y1, double x2, double y2).

Source

pub unsafe fn set_p1(&self, p1: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QLineF::setP1(const QPointF& p1).

Source

pub unsafe fn set_p2(&self, p2: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QLineF::setP2(const QPointF& p2).

Source

pub unsafe fn set_points( &self, p1: impl CastInto<Ref<QPointF>>, p2: impl CastInto<Ref<QPointF>>, )

Calls C++ function: void QLineF::setPoints(const QPointF& p1, const QPointF& p2).

Source

pub unsafe fn to_line(&self) -> CppBox<QLine>

Calls C++ function: QLine QLineF::toLine() const.

Source

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

Calls C++ function: void QLineF::translate(const QPointF& p).

Source

pub unsafe fn translate_2a(&self, dx: c_double, dy: c_double)

Calls C++ function: void QLineF::translate(double dx, double dy).

Source

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

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

Source

pub unsafe fn translated_2a(&self, dx: c_double, dy: c_double) -> CppBox<QLineF>

Calls C++ function: QLineF QLineF::translated(double dx, double dy) const.

Source

pub unsafe fn unit_vector(&self) -> CppBox<QLineF>

Calls C++ function: QLineF QLineF::unitVector() const.

Source

pub unsafe fn x1(&self) -> c_double

Calls C++ function: double QLineF::x1() const.

Source

pub unsafe fn x2(&self) -> c_double

Calls C++ function: double QLineF::x2() const.

Source

pub unsafe fn y1(&self) -> c_double

Calls C++ function: double QLineF::y1() const.

Source

pub unsafe fn y2(&self) -> c_double

Calls C++ function: double QLineF::y2() const.

Trait Implementations§

Source§

impl CppDeletable for QLineF

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QLineF>> for QLineF

Source§

fn eq(&self, d: &Ref<QLineF>) -> bool

Calls C++ function: bool QLineF::operator==(const QLineF& d) 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.