pub struct QLine { /* private fields */ }Expand description
C++ class: QLine.
Implementations§
Source§impl QLine
impl QLine
Sourcepub unsafe fn center(&self) -> CppBox<QPoint>
pub unsafe fn center(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QLine::center() const.
Sourcepub unsafe fn copy_from(&self, other: impl CastInto<Ref<QLine>>) -> Ref<QLine>
pub unsafe fn copy_from(&self, other: impl CastInto<Ref<QLine>>) -> Ref<QLine>
Calls C++ function: QLine& QLine::operator=(const QLine& other).
Sourcepub unsafe fn new_2a(
pt1: impl CastInto<Ref<QPoint>>,
pt2: impl CastInto<Ref<QPoint>>,
) -> CppBox<QLine>
pub unsafe fn new_2a( pt1: impl CastInto<Ref<QPoint>>, pt2: impl CastInto<Ref<QPoint>>, ) -> CppBox<QLine>
Calls C++ function: [constructor] void QLine::QLine(const QPoint& pt1, const QPoint& pt2).
Sourcepub unsafe fn new_4a(
x1: c_int,
y1: c_int,
x2: c_int,
y2: c_int,
) -> CppBox<QLine>
pub unsafe fn new_4a( x1: c_int, y1: c_int, x2: c_int, y2: c_int, ) -> CppBox<QLine>
Calls C++ function: [constructor] void QLine::QLine(int x1, int y1, int x2, int y2).
Sourcepub unsafe fn new_copy(other: impl CastInto<Ref<QLine>>) -> CppBox<QLine>
pub unsafe fn new_copy(other: impl CastInto<Ref<QLine>>) -> CppBox<QLine>
Calls C++ function: [constructor] void QLine::QLine(const QLine& other).
Sourcepub unsafe fn set_line(&self, x1: c_int, y1: c_int, x2: c_int, y2: c_int)
pub unsafe fn set_line(&self, x1: c_int, y1: c_int, x2: c_int, y2: c_int)
Calls C++ function: void QLine::setLine(int x1, int y1, int x2, int y2).
Sourcepub unsafe fn set_p1(&self, p1: impl CastInto<Ref<QPoint>>)
pub unsafe fn set_p1(&self, p1: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QLine::setP1(const QPoint& p1).
Sourcepub unsafe fn set_p2(&self, p2: impl CastInto<Ref<QPoint>>)
pub unsafe fn set_p2(&self, p2: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QLine::setP2(const QPoint& p2).
Sourcepub unsafe fn set_points(
&self,
p1: impl CastInto<Ref<QPoint>>,
p2: impl CastInto<Ref<QPoint>>,
)
pub unsafe fn set_points( &self, p1: impl CastInto<Ref<QPoint>>, p2: impl CastInto<Ref<QPoint>>, )
Calls C++ function: void QLine::setPoints(const QPoint& p1, const QPoint& p2).
Sourcepub unsafe fn translate_1a(&self, p: impl CastInto<Ref<QPoint>>)
pub unsafe fn translate_1a(&self, p: impl CastInto<Ref<QPoint>>)
Calls C++ function: void QLine::translate(const QPoint& p).
Sourcepub unsafe fn translate_2a(&self, dx: c_int, dy: c_int)
pub unsafe fn translate_2a(&self, dx: c_int, dy: c_int)
Calls C++ function: void QLine::translate(int dx, int dy).
Sourcepub unsafe fn translated_1a(
&self,
p: impl CastInto<Ref<QPoint>>,
) -> CppBox<QLine>
pub unsafe fn translated_1a( &self, p: impl CastInto<Ref<QPoint>>, ) -> CppBox<QLine>
Calls C++ function: QLine QLine::translated(const QPoint& p) const.