pub struct QPolygonF { /* private fields */ }Expand description
C++ class: QPolygonF.
Implementations§
Source§impl QPolygonF
impl QPolygonF
Sourcepub unsafe fn bounding_rect(&self) -> CppBox<QRectF>
pub unsafe fn bounding_rect(&self) -> CppBox<QRectF>
Calls C++ function: QRectF QPolygonF::boundingRect() const.
Sourcepub unsafe fn contains_point(
&self,
pt: impl CastInto<Ref<QPointF>>,
fill_rule: FillRule,
) -> bool
pub unsafe fn contains_point( &self, pt: impl CastInto<Ref<QPointF>>, fill_rule: FillRule, ) -> bool
Calls C++ function: bool QPolygonF::containsPoint(const QPointF& pt, Qt::FillRule fillRule) const.
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QPolygonF>>,
) -> Ref<QPolygonF>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QPolygonF>>, ) -> Ref<QPolygonF>
Calls C++ function: QPolygonF& QPolygonF::operator=(const QPolygonF& other).
Sourcepub unsafe fn intersected(
&self,
r: impl CastInto<Ref<QPolygonF>>,
) -> CppBox<QPolygonF>
pub unsafe fn intersected( &self, r: impl CastInto<Ref<QPolygonF>>, ) -> CppBox<QPolygonF>
Calls C++ function: QPolygonF QPolygonF::intersected(const QPolygonF& r) const.
Sourcepub unsafe fn intersects(&self, r: impl CastInto<Ref<QPolygonF>>) -> bool
pub unsafe fn intersects(&self, r: impl CastInto<Ref<QPolygonF>>) -> bool
Calls C++ function: bool QPolygonF::intersects(const QPolygonF& r) const.
Sourcepub unsafe fn new() -> CppBox<QPolygonF>
pub unsafe fn new() -> CppBox<QPolygonF>
Calls C++ function: [constructor] void QPolygonF::QPolygonF().
Sourcepub unsafe fn from_int(size: c_int) -> CppBox<QPolygonF>
pub unsafe fn from_int(size: c_int) -> CppBox<QPolygonF>
Calls C++ function: [constructor] void QPolygonF::QPolygonF(int size).
Sourcepub unsafe fn from_q_vector_of_q_point_f(
v: impl CastInto<Ref<QVectorOfQPointF>>,
) -> CppBox<QPolygonF>
pub unsafe fn from_q_vector_of_q_point_f( v: impl CastInto<Ref<QVectorOfQPointF>>, ) -> CppBox<QPolygonF>
Calls C++ function: [constructor] void QPolygonF::QPolygonF(const QVector<QPointF>& v).
Sourcepub unsafe fn from_q_rect_f(r: impl CastInto<Ref<QRectF>>) -> CppBox<QPolygonF>
pub unsafe fn from_q_rect_f(r: impl CastInto<Ref<QRectF>>) -> CppBox<QPolygonF>
Calls C++ function: [constructor] void QPolygonF::QPolygonF(const QRectF& r).
Sourcepub unsafe fn from_q_polygon(
a: impl CastInto<Ref<QPolygon>>,
) -> CppBox<QPolygonF>
pub unsafe fn from_q_polygon( a: impl CastInto<Ref<QPolygon>>, ) -> CppBox<QPolygonF>
Calls C++ function: [constructor] void QPolygonF::QPolygonF(const QPolygon& a).
Sourcepub unsafe fn new_copy(a: impl CastInto<Ref<QPolygonF>>) -> CppBox<QPolygonF>
pub unsafe fn new_copy(a: impl CastInto<Ref<QPolygonF>>) -> CppBox<QPolygonF>
Calls C++ function: [constructor] void QPolygonF::QPolygonF(const QPolygonF& a).
Sourcepub unsafe fn subtracted(
&self,
r: impl CastInto<Ref<QPolygonF>>,
) -> CppBox<QPolygonF>
pub unsafe fn subtracted( &self, r: impl CastInto<Ref<QPolygonF>>, ) -> CppBox<QPolygonF>
Calls C++ function: QPolygonF QPolygonF::subtracted(const QPolygonF& r) const.
Sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QPolygonF>>)
pub unsafe fn swap(&self, other: impl CastInto<Ref<QPolygonF>>)
Calls C++ function: void QPolygonF::swap(QPolygonF& other).
Sourcepub unsafe fn to_polygon(&self) -> CppBox<QPolygon>
pub unsafe fn to_polygon(&self) -> CppBox<QPolygon>
Calls C++ function: QPolygon QPolygonF::toPolygon() const.
Sourcepub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
Calls C++ function: QVariant QPolygonF::operator QVariant() const.
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 QPolygonF::translate(double dx, double dy).
Sourcepub unsafe fn translate_1a(&self, offset: impl CastInto<Ref<QPointF>>)
pub unsafe fn translate_1a(&self, offset: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QPolygonF::translate(const QPointF& offset).
Sourcepub unsafe fn translated_2a(
&self,
dx: c_double,
dy: c_double,
) -> CppBox<QPolygonF>
pub unsafe fn translated_2a( &self, dx: c_double, dy: c_double, ) -> CppBox<QPolygonF>
Calls C++ function: QPolygonF QPolygonF::translated(double dx, double dy) const.
Methods from Deref<Target = QVectorOfQPointF>§
Sourcepub unsafe fn add_assign_q_vector_of_q_point_f(
&self,
l: impl CastInto<Ref<QVectorOfQPointF>>,
) -> Ref<QVectorOfQPointF>
pub unsafe fn add_assign_q_vector_of_q_point_f( &self, l: impl CastInto<Ref<QVectorOfQPointF>>, ) -> Ref<QVectorOfQPointF>
Calls C++ function: QVector<QPointF>& QVector<QPointF>::operator+=(const QVector<QPointF>& l).
Sourcepub unsafe fn add_assign_q_point_f(
&self,
t: impl CastInto<Ref<QPointF>>,
) -> Ref<QVectorOfQPointF>
pub unsafe fn add_assign_q_point_f( &self, t: impl CastInto<Ref<QPointF>>, ) -> Ref<QVectorOfQPointF>
Calls C++ function: QVector<QPointF>& QVector<QPointF>::operator+=(const QPointF& t).
Sourcepub unsafe fn append_q_point_f(&self, t: impl CastInto<Ref<QPointF>>)
pub unsafe fn append_q_point_f(&self, t: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QVector<QPointF>::append(const QPointF& t).
Sourcepub unsafe fn append_q_vector_of_q_point_f(
&self,
l: impl CastInto<Ref<QVectorOfQPointF>>,
)
pub unsafe fn append_q_vector_of_q_point_f( &self, l: impl CastInto<Ref<QVectorOfQPointF>>, )
Calls C++ function: void QVector<QPointF>::append(const QVector<QPointF>& l).
Sourcepub unsafe fn at(&self, i: i32) -> Ref<QPointF>
pub unsafe fn at(&self, i: i32) -> Ref<QPointF>
Calls C++ function: const QPointF& QVector<QPointF>::at(int i) const.
Sourcepub unsafe fn back_mut(&self) -> Ref<QPointF>
pub unsafe fn back_mut(&self) -> Ref<QPointF>
Calls C++ function: QPointF& QVector<QPointF>::back().
Sourcepub unsafe fn back(&self) -> Ref<QPointF>
pub unsafe fn back(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QVector<QPointF>::back() const.
Sourcepub unsafe fn capacity(&self) -> i32
pub unsafe fn capacity(&self) -> i32
Calls C++ function: int QVector<QPointF>::capacity() const.
Sourcepub unsafe fn const_data(&self) -> Ptr<QPointF>
pub unsafe fn const_data(&self) -> Ptr<QPointF>
Calls C++ function: const QPointF* QVector<QPointF>::constData() const.
Sourcepub unsafe fn const_first(&self) -> Ref<QPointF>
pub unsafe fn const_first(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QVector<QPointF>::constFirst() const.
Sourcepub unsafe fn const_last(&self) -> Ref<QPointF>
pub unsafe fn const_last(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QVector<QPointF>::constLast() const.
Sourcepub unsafe fn contains(&self, t: impl CastInto<Ref<QPointF>>) -> bool
pub unsafe fn contains(&self, t: impl CastInto<Ref<QPointF>>) -> bool
Calls C++ function: bool QVector<QPointF>::contains(const QPointF& t) const.
Sourcepub unsafe fn copy_from(
&self,
v: impl CastInto<Ref<QVectorOfQPointF>>,
) -> Ref<QVectorOfQPointF>
pub unsafe fn copy_from( &self, v: impl CastInto<Ref<QVectorOfQPointF>>, ) -> Ref<QVectorOfQPointF>
Calls C++ function: QVector<QPointF>& QVector<QPointF>::operator=(const QVector<QPointF>& v).
Sourcepub unsafe fn count_1a(&self, t: impl CastInto<Ref<QPointF>>) -> i32
pub unsafe fn count_1a(&self, t: impl CastInto<Ref<QPointF>>) -> i32
Calls C++ function: int QVector<QPointF>::count(const QPointF& t) const.
Sourcepub unsafe fn data_mut(&self) -> Ptr<QPointF>
pub unsafe fn data_mut(&self) -> Ptr<QPointF>
Calls C++ function: QPointF* QVector<QPointF>::data().
Sourcepub unsafe fn data(&self) -> Ptr<QPointF>
pub unsafe fn data(&self) -> Ptr<QPointF>
Calls C++ function: const QPointF* QVector<QPointF>::data() const.
Sourcepub unsafe fn ends_with(&self, t: impl CastInto<Ref<QPointF>>) -> bool
pub unsafe fn ends_with(&self, t: impl CastInto<Ref<QPointF>>) -> bool
Calls C++ function: bool QVector<QPointF>::endsWith(const QPointF& t) const.
Sourcepub unsafe fn fill_2a(
&self,
t: impl CastInto<Ref<QPointF>>,
size: i32,
) -> Ref<QVectorOfQPointF>
pub unsafe fn fill_2a( &self, t: impl CastInto<Ref<QPointF>>, size: i32, ) -> Ref<QVectorOfQPointF>
Calls C++ function: QVector<QPointF>& QVector<QPointF>::fill(const QPointF& t, int size = …).
Sourcepub unsafe fn fill_1a(
&self,
t: impl CastInto<Ref<QPointF>>,
) -> Ref<QVectorOfQPointF>
pub unsafe fn fill_1a( &self, t: impl CastInto<Ref<QPointF>>, ) -> Ref<QVectorOfQPointF>
Calls C++ function: QVector<QPointF>& QVector<QPointF>::fill(const QPointF& t).
Sourcepub unsafe fn first_mut(&self) -> Ref<QPointF>
pub unsafe fn first_mut(&self) -> Ref<QPointF>
Calls C++ function: QPointF& QVector<QPointF>::first().
Sourcepub unsafe fn first(&self) -> Ref<QPointF>
pub unsafe fn first(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QVector<QPointF>::first() const.
Sourcepub unsafe fn front_mut(&self) -> Ref<QPointF>
pub unsafe fn front_mut(&self) -> Ref<QPointF>
Calls C++ function: QPointF& QVector<QPointF>::front().
Sourcepub unsafe fn front(&self) -> Ref<QPointF>
pub unsafe fn front(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QVector<QPointF>::front() const.
Sourcepub unsafe fn index_mut(&self, i: i32) -> Ref<QPointF>
pub unsafe fn index_mut(&self, i: i32) -> Ref<QPointF>
Calls C++ function: QPointF& QVector<QPointF>::operator[](int i).
Sourcepub unsafe fn index(&self, i: i32) -> Ref<QPointF>
pub unsafe fn index(&self, i: i32) -> Ref<QPointF>
Calls C++ function: const QPointF& QVector<QPointF>::operator[](int i) const.
Sourcepub unsafe fn index_of_2a(
&self,
t: impl CastInto<Ref<QPointF>>,
from: i32,
) -> i32
pub unsafe fn index_of_2a( &self, t: impl CastInto<Ref<QPointF>>, from: i32, ) -> i32
Calls C++ function: int QVector<QPointF>::indexOf(const QPointF& t, int from = …) const.
Sourcepub unsafe fn index_of_1a(&self, t: impl CastInto<Ref<QPointF>>) -> i32
pub unsafe fn index_of_1a(&self, t: impl CastInto<Ref<QPointF>>) -> i32
Calls C++ function: int QVector<QPointF>::indexOf(const QPointF& t) const.
Sourcepub unsafe fn insert_2a(&self, i: i32, t: impl CastInto<Ref<QPointF>>)
pub unsafe fn insert_2a(&self, i: i32, t: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QVector<QPointF>::insert(int i, const QPointF& t).
Sourcepub unsafe fn insert_3a(&self, i: i32, n: i32, t: impl CastInto<Ref<QPointF>>)
pub unsafe fn insert_3a(&self, i: i32, n: i32, t: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QVector<QPointF>::insert(int i, int n, const QPointF& t).
Sourcepub unsafe fn is_detached(&self) -> bool
pub unsafe fn is_detached(&self) -> bool
Calls C++ function: bool QVector<QPointF>::isDetached() const.
Sourcepub unsafe fn is_empty(&self) -> bool
pub unsafe fn is_empty(&self) -> bool
Calls C++ function: bool QVector<QPointF>::isEmpty() const.
Calls C++ function: bool QVector<QPointF>::isSharedWith(const QVector<QPointF>& other) const.
Sourcepub unsafe fn last_mut(&self) -> Ref<QPointF>
pub unsafe fn last_mut(&self) -> Ref<QPointF>
Calls C++ function: QPointF& QVector<QPointF>::last().
Sourcepub unsafe fn last(&self) -> Ref<QPointF>
pub unsafe fn last(&self) -> Ref<QPointF>
Calls C++ function: const QPointF& QVector<QPointF>::last() const.
Sourcepub unsafe fn last_index_of_2a(
&self,
t: impl CastInto<Ref<QPointF>>,
from: i32,
) -> i32
pub unsafe fn last_index_of_2a( &self, t: impl CastInto<Ref<QPointF>>, from: i32, ) -> i32
Calls C++ function: int QVector<QPointF>::lastIndexOf(const QPointF& t, int from = …) const.
Sourcepub unsafe fn last_index_of_1a(&self, t: impl CastInto<Ref<QPointF>>) -> i32
pub unsafe fn last_index_of_1a(&self, t: impl CastInto<Ref<QPointF>>) -> i32
Calls C++ function: int QVector<QPointF>::lastIndexOf(const QPointF& t) const.
Sourcepub unsafe fn mid_2a(&self, pos: i32, len: i32) -> CppBox<QVectorOfQPointF>
pub unsafe fn mid_2a(&self, pos: i32, len: i32) -> CppBox<QVectorOfQPointF>
Calls C++ function: QVector<QPointF> QVector<QPointF>::mid(int pos, int len = …) const.
Sourcepub unsafe fn mid_1a(&self, pos: i32) -> CppBox<QVectorOfQPointF>
pub unsafe fn mid_1a(&self, pos: i32) -> CppBox<QVectorOfQPointF>
Calls C++ function: QVector<QPointF> QVector<QPointF>::mid(int pos) const.
Sourcepub unsafe fn move_(&self, from: i32, to: i32)
pub unsafe fn move_(&self, from: i32, to: i32)
Calls C++ function: void QVector<QPointF>::move(int from, int to).
Sourcepub unsafe fn prepend(&self, t: impl CastInto<Ref<QPointF>>)
pub unsafe fn prepend(&self, t: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QVector<QPointF>::prepend(const QPointF& t).
Sourcepub unsafe fn push_back(&self, t: impl CastInto<Ref<QPointF>>)
pub unsafe fn push_back(&self, t: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QVector<QPointF>::push_back(const QPointF& t).
Sourcepub unsafe fn push_front(&self, t: impl CastInto<Ref<QPointF>>)
pub unsafe fn push_front(&self, t: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QVector<QPointF>::push_front(const QPointF& t).
Sourcepub unsafe fn remove_1a(&self, i: i32)
pub unsafe fn remove_1a(&self, i: i32)
Calls C++ function: void QVector<QPointF>::remove(int i).
Sourcepub unsafe fn remove_2a(&self, i: i32, n: i32)
pub unsafe fn remove_2a(&self, i: i32, n: i32)
Calls C++ function: void QVector<QPointF>::remove(int i, int n).
Sourcepub unsafe fn remove_all(&self, t: impl CastInto<Ref<QPointF>>) -> i32
pub unsafe fn remove_all(&self, t: impl CastInto<Ref<QPointF>>) -> i32
Calls C++ function: int QVector<QPointF>::removeAll(const QPointF& t).
Sourcepub unsafe fn remove_at(&self, i: i32)
pub unsafe fn remove_at(&self, i: i32)
Calls C++ function: void QVector<QPointF>::removeAt(int i).
Sourcepub unsafe fn remove_first(&self)
pub unsafe fn remove_first(&self)
Calls C++ function: void QVector<QPointF>::removeFirst().
Sourcepub unsafe fn remove_last(&self)
pub unsafe fn remove_last(&self)
Calls C++ function: void QVector<QPointF>::removeLast().
Sourcepub unsafe fn remove_one(&self, t: impl CastInto<Ref<QPointF>>) -> bool
pub unsafe fn remove_one(&self, t: impl CastInto<Ref<QPointF>>) -> bool
Calls C++ function: bool QVector<QPointF>::removeOne(const QPointF& t).
Sourcepub unsafe fn replace(&self, i: i32, t: impl CastInto<Ref<QPointF>>)
pub unsafe fn replace(&self, i: i32, t: impl CastInto<Ref<QPointF>>)
Calls C++ function: void QVector<QPointF>::replace(int i, const QPointF& t).
Sourcepub unsafe fn reserve(&self, size: i32)
pub unsafe fn reserve(&self, size: i32)
Calls C++ function: void QVector<QPointF>::reserve(int size).
Sourcepub unsafe fn resize(&self, size: i32)
pub unsafe fn resize(&self, size: i32)
Calls C++ function: void QVector<QPointF>::resize(int size).
Sourcepub unsafe fn set_sharable(&self, sharable: bool)
pub unsafe fn set_sharable(&self, sharable: bool)
Calls C++ function: void QVector<QPointF>::setSharable(bool sharable).
Sourcepub unsafe fn shrink_to_fit(&self)
pub unsafe fn shrink_to_fit(&self)
Calls C++ function: void QVector<QPointF>::shrink_to_fit().
Sourcepub unsafe fn starts_with(&self, t: impl CastInto<Ref<QPointF>>) -> bool
pub unsafe fn starts_with(&self, t: impl CastInto<Ref<QPointF>>) -> bool
Calls C++ function: bool QVector<QPointF>::startsWith(const QPointF& t) const.
Sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QVectorOfQPointF>>)
pub unsafe fn swap(&self, other: impl CastInto<Ref<QVectorOfQPointF>>)
Calls C++ function: void QVector<QPointF>::swap(QVector<QPointF>& other).
Sourcepub unsafe fn swap_items_at(&self, i: i32, j: i32)
pub unsafe fn swap_items_at(&self, i: i32, j: i32)
Calls C++ function: void QVector<QPointF>::swapItemsAt(int i, int j).
Sourcepub unsafe fn take_at(&self, i: i32) -> CppBox<QPointF>
pub unsafe fn take_at(&self, i: i32) -> CppBox<QPointF>
Calls C++ function: QPointF QVector<QPointF>::takeAt(int i).
Sourcepub unsafe fn take_first(&self) -> CppBox<QPointF>
pub unsafe fn take_first(&self) -> CppBox<QPointF>
Calls C++ function: QPointF QVector<QPointF>::takeFirst().
Sourcepub unsafe fn take_last(&self) -> CppBox<QPointF>
pub unsafe fn take_last(&self) -> CppBox<QPointF>
Calls C++ function: QPointF QVector<QPointF>::takeLast().
Trait Implementations§
Source§impl CppDeletable for QPolygonF
impl CppDeletable for QPolygonF
Source§impl Deref for QPolygonF
impl Deref for QPolygonF
Source§fn deref(&self) -> &QVectorOfQPointF
fn deref(&self) -> &QVectorOfQPointF
Calls C++ function: QVector<QPointF>* static_cast<QVector<QPointF>*>(QPolygonF* ptr).
Source§type Target = QVectorOfQPointF
type Target = QVectorOfQPointF
Source§impl StaticDowncast<QPolygonF> for QVectorOfQPointF
impl StaticDowncast<QPolygonF> for QVectorOfQPointF
Source§unsafe fn static_downcast(ptr: Ptr<QVectorOfQPointF>) -> Ptr<QPolygonF>
unsafe fn static_downcast(ptr: Ptr<QVectorOfQPointF>) -> Ptr<QPolygonF>
Calls C++ function: QPolygonF* static_cast<QPolygonF*>(QVector<QPointF>* ptr).
Source§impl StaticUpcast<QVectorOfQPointF> for QPolygonF
impl StaticUpcast<QVectorOfQPointF> for QPolygonF
Source§unsafe fn static_upcast(ptr: Ptr<QPolygonF>) -> Ptr<QVectorOfQPointF>
unsafe fn static_upcast(ptr: Ptr<QPolygonF>) -> Ptr<QVectorOfQPointF>
Calls C++ function: QVector<QPointF>* static_cast<QVector<QPointF>*>(QPolygonF* ptr).