pub struct QLineF { /* private fields */ }Expand description
C++ class: QLineF.
Implementations§
Source§impl QLineF
impl QLineF
Sourcepub unsafe fn angle_1a(&self, l: impl CastInto<Ref<QLineF>>) -> c_double
pub unsafe fn angle_1a(&self, l: impl CastInto<Ref<QLineF>>) -> c_double
Calls C++ function: double QLineF::angle(const QLineF& l) const.
Sourcepub unsafe fn angle_to(&self, l: impl CastInto<Ref<QLineF>>) -> c_double
pub unsafe fn angle_to(&self, l: impl CastInto<Ref<QLineF>>) -> c_double
Calls C++ function: double QLineF::angleTo(const QLineF& l) const.
Sourcepub unsafe fn center(&self) -> CppBox<QPointF>
pub unsafe fn center(&self) -> CppBox<QPointF>
Calls C++ function: QPointF QLineF::center() const.
Sourcepub unsafe fn copy_from(&self, other: impl CastInto<Ref<QLineF>>) -> Ref<QLineF>
pub unsafe fn copy_from(&self, other: impl CastInto<Ref<QLineF>>) -> Ref<QLineF>
Calls C++ function: QLineF& QLineF::operator=(const QLineF& other).
Sourcepub unsafe fn from_polar(length: c_double, angle: c_double) -> CppBox<QLineF>
pub unsafe fn from_polar(length: c_double, angle: c_double) -> CppBox<QLineF>
Calls C++ function: static QLineF QLineF::fromPolar(double length, double angle).
Sourcepub unsafe fn intersect(
&self,
l: impl CastInto<Ref<QLineF>>,
intersection_point: impl CastInto<Ptr<QPointF>>,
) -> IntersectType
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.
Sourcepub unsafe fn intersects(
&self,
l: impl CastInto<Ref<QLineF>>,
intersection_point: impl CastInto<Ptr<QPointF>>,
) -> IntersectType
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.
Sourcepub unsafe fn new_0a() -> CppBox<QLineF>
pub unsafe fn new_0a() -> CppBox<QLineF>
Calls C++ function: [constructor] void QLineF::QLineF().
Sourcepub unsafe fn new_2a(
pt1: impl CastInto<Ref<QPointF>>,
pt2: impl CastInto<Ref<QPointF>>,
) -> CppBox<QLineF>
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).
Sourcepub unsafe fn new_4a(
x1: c_double,
y1: c_double,
x2: c_double,
y2: c_double,
) -> CppBox<QLineF>
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).
Sourcepub unsafe fn new_1a(line: impl CastInto<Ref<QLine>>) -> CppBox<QLineF>
pub unsafe fn new_1a(line: impl CastInto<Ref<QLine>>) -> CppBox<QLineF>
Calls C++ function: [constructor] void QLineF::QLineF(const QLine& line).
Sourcepub unsafe fn new_copy(other: impl CastInto<Ref<QLineF>>) -> CppBox<QLineF>
pub unsafe fn new_copy(other: impl CastInto<Ref<QLineF>>) -> CppBox<QLineF>
Calls C++ function: [constructor] void QLineF::QLineF(const QLineF& other).
Sourcepub unsafe fn normal_vector(&self) -> CppBox<QLineF>
pub unsafe fn normal_vector(&self) -> CppBox<QLineF>
Calls C++ function: QLineF QLineF::normalVector() const.
Sourcepub unsafe fn point_at(&self, t: c_double) -> CppBox<QPointF>
pub unsafe fn point_at(&self, t: c_double) -> CppBox<QPointF>
Calls C++ function: QPointF QLineF::pointAt(double t) const.
Sourcepub unsafe fn set_angle(&self, angle: c_double)
pub unsafe fn set_angle(&self, angle: c_double)
Calls C++ function: void QLineF::setAngle(double angle).
Sourcepub unsafe fn set_length(&self, len: c_double)
pub unsafe fn set_length(&self, len: c_double)
Calls C++ function: void QLineF::setLength(double len).
Sourcepub unsafe fn set_line(
&self,
x1: c_double,
y1: c_double,
x2: c_double,
y2: c_double,
)
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).
Sourcepub unsafe fn set_p1(&self, p1: impl CastInto<Ref<QPointF>>)
pub unsafe fn set_p1(&self, p1: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QLineF::setP1(const QPointF& p1).
Sourcepub unsafe fn set_p2(&self, p2: impl CastInto<Ref<QPointF>>)
pub unsafe fn set_p2(&self, p2: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QLineF::setP2(const QPointF& p2).
Sourcepub unsafe fn set_points(
&self,
p1: impl CastInto<Ref<QPointF>>,
p2: impl CastInto<Ref<QPointF>>,
)
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).
Sourcepub unsafe fn to_line(&self) -> CppBox<QLine>
pub unsafe fn to_line(&self) -> CppBox<QLine>
Calls C++ function: QLine QLineF::toLine() const.
Sourcepub unsafe fn translate_1a(&self, p: impl CastInto<Ref<QPointF>>)
pub unsafe fn translate_1a(&self, p: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QLineF::translate(const QPointF& p).
Sourcepub unsafe fn translate_2a(&self, dx: c_double, dy: c_double)
pub unsafe fn translate_2a(&self, dx: c_double, dy: c_double)
Calls C++ function: void QLineF::translate(double dx, double dy).
Sourcepub unsafe fn translated_1a(
&self,
p: impl CastInto<Ref<QPointF>>,
) -> CppBox<QLineF>
pub unsafe fn translated_1a( &self, p: impl CastInto<Ref<QPointF>>, ) -> CppBox<QLineF>
Calls C++ function: QLineF QLineF::translated(const QPointF& p) const.
Sourcepub unsafe fn translated_2a(&self, dx: c_double, dy: c_double) -> CppBox<QLineF>
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.
Sourcepub unsafe fn unit_vector(&self) -> CppBox<QLineF>
pub unsafe fn unit_vector(&self) -> CppBox<QLineF>
Calls C++ function: QLineF QLineF::unitVector() const.