Skip to main content

QPolygonF

Struct QPolygonF 

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

C++ class: QPolygonF.

Implementations§

Source§

impl QPolygonF

Source

pub unsafe fn bounding_rect(&self) -> CppBox<QRectF>

Calls C++ function: QRectF QPolygonF::boundingRect() const.

Source

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.

Source

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

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

Source

pub unsafe fn intersected( &self, r: impl CastInto<Ref<QPolygonF>>, ) -> CppBox<QPolygonF>

Calls C++ function: QPolygonF QPolygonF::intersected(const QPolygonF& r) const.

Source

pub unsafe fn intersects(&self, r: impl CastInto<Ref<QPolygonF>>) -> bool

Calls C++ function: bool QPolygonF::intersects(const QPolygonF& r) const.

Source

pub unsafe fn is_closed(&self) -> bool

Calls C++ function: bool QPolygonF::isClosed() const.

Source

pub unsafe fn new() -> CppBox<QPolygonF>

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

Source

pub unsafe fn from_int(size: c_int) -> CppBox<QPolygonF>

Calls C++ function: [constructor] void QPolygonF::QPolygonF(int size).

Source

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).

Source

pub unsafe fn from_q_rect_f(r: impl CastInto<Ref<QRectF>>) -> CppBox<QPolygonF>

Calls C++ function: [constructor] void QPolygonF::QPolygonF(const QRectF& r).

Source

pub unsafe fn from_q_polygon( a: impl CastInto<Ref<QPolygon>>, ) -> CppBox<QPolygonF>

Calls C++ function: [constructor] void QPolygonF::QPolygonF(const QPolygon& a).

Source

pub unsafe fn new_copy(a: impl CastInto<Ref<QPolygonF>>) -> CppBox<QPolygonF>

Calls C++ function: [constructor] void QPolygonF::QPolygonF(const QPolygonF& a).

Source

pub unsafe fn subtracted( &self, r: impl CastInto<Ref<QPolygonF>>, ) -> CppBox<QPolygonF>

Calls C++ function: QPolygonF QPolygonF::subtracted(const QPolygonF& r) const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QPolygonF>>)

Calls C++ function: void QPolygonF::swap(QPolygonF& other).

Source

pub unsafe fn to_polygon(&self) -> CppBox<QPolygon>

Calls C++ function: QPolygon QPolygonF::toPolygon() const.

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QPolygonF::operator QVariant() const.

Source

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

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

Source

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

Calls C++ function: void QPolygonF::translate(const QPointF& offset).

Source

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.

Source

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

Calls C++ function: QPolygonF QPolygonF::translated(const QPointF& offset) const.

Source

pub unsafe fn united( &self, r: impl CastInto<Ref<QPolygonF>>, ) -> CppBox<QPolygonF>

Calls C++ function: QPolygonF QPolygonF::united(const QPolygonF& r) const.

Methods from Deref<Target = QVectorOfQPointF>§

Source

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).

Source

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).

Source

pub unsafe fn append_q_point_f(&self, t: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QVector<QPointF>::append(const QPointF& t).

Source

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).

Source

pub unsafe fn at(&self, i: i32) -> Ref<QPointF>

Calls C++ function: const QPointF& QVector<QPointF>::at(int i) const.

Source

pub unsafe fn back_mut(&self) -> Ref<QPointF>

Calls C++ function: QPointF& QVector<QPointF>::back().

Source

pub unsafe fn back(&self) -> Ref<QPointF>

Calls C++ function: const QPointF& QVector<QPointF>::back() const.

Source

pub unsafe fn capacity(&self) -> i32

Calls C++ function: int QVector<QPointF>::capacity() const.

Source

pub unsafe fn clear(&self)

Calls C++ function: void QVector<QPointF>::clear().

Source

pub unsafe fn const_data(&self) -> Ptr<QPointF>

Calls C++ function: const QPointF* QVector<QPointF>::constData() const.

Source

pub unsafe fn const_first(&self) -> Ref<QPointF>

Calls C++ function: const QPointF& QVector<QPointF>::constFirst() const.

Source

pub unsafe fn const_last(&self) -> Ref<QPointF>

Calls C++ function: const QPointF& QVector<QPointF>::constLast() const.

Source

pub unsafe fn contains(&self, t: impl CastInto<Ref<QPointF>>) -> bool

Calls C++ function: bool QVector<QPointF>::contains(const QPointF& t) const.

Source

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).

Source

pub unsafe fn count_1a(&self, t: impl CastInto<Ref<QPointF>>) -> i32

Calls C++ function: int QVector<QPointF>::count(const QPointF& t) const.

Source

pub unsafe fn count_0a(&self) -> i32

Calls C++ function: int QVector<QPointF>::count() const.

Source

pub unsafe fn data_mut(&self) -> Ptr<QPointF>

Calls C++ function: QPointF* QVector<QPointF>::data().

Source

pub unsafe fn data(&self) -> Ptr<QPointF>

Calls C++ function: const QPointF* QVector<QPointF>::data() const.

Source

pub unsafe fn detach(&self)

Calls C++ function: void QVector<QPointF>::detach().

Source

pub unsafe fn empty(&self) -> bool

Calls C++ function: bool QVector<QPointF>::empty() const.

Source

pub unsafe fn ends_with(&self, t: impl CastInto<Ref<QPointF>>) -> bool

Calls C++ function: bool QVector<QPointF>::endsWith(const QPointF& t) const.

Source

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 = …).

Source

pub unsafe fn fill_1a( &self, t: impl CastInto<Ref<QPointF>>, ) -> Ref<QVectorOfQPointF>

Calls C++ function: QVector<QPointF>& QVector<QPointF>::fill(const QPointF& t).

Source

pub unsafe fn first_mut(&self) -> Ref<QPointF>

Calls C++ function: QPointF& QVector<QPointF>::first().

Source

pub unsafe fn first(&self) -> Ref<QPointF>

Calls C++ function: const QPointF& QVector<QPointF>::first() const.

Source

pub unsafe fn front_mut(&self) -> Ref<QPointF>

Calls C++ function: QPointF& QVector<QPointF>::front().

Source

pub unsafe fn front(&self) -> Ref<QPointF>

Calls C++ function: const QPointF& QVector<QPointF>::front() const.

Source

pub unsafe fn index_mut(&self, i: i32) -> Ref<QPointF>

Calls C++ function: QPointF& QVector<QPointF>::operator[](int i).

Source

pub unsafe fn index(&self, i: i32) -> Ref<QPointF>

Calls C++ function: const QPointF& QVector<QPointF>::operator[](int i) const.

Source

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.

Source

pub unsafe fn index_of_1a(&self, t: impl CastInto<Ref<QPointF>>) -> i32

Calls C++ function: int QVector<QPointF>::indexOf(const QPointF& t) const.

Source

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).

Source

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).

Source

pub unsafe fn is_detached(&self) -> bool

Calls C++ function: bool QVector<QPointF>::isDetached() const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QVector<QPointF>::isEmpty() const.

Source

pub unsafe fn is_shared_with( &self, other: impl CastInto<Ref<QVectorOfQPointF>>, ) -> bool

Calls C++ function: bool QVector<QPointF>::isSharedWith(const QVector<QPointF>& other) const.

Source

pub unsafe fn last_mut(&self) -> Ref<QPointF>

Calls C++ function: QPointF& QVector<QPointF>::last().

Source

pub unsafe fn last(&self) -> Ref<QPointF>

Calls C++ function: const QPointF& QVector<QPointF>::last() const.

Source

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.

Source

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.

Source

pub unsafe fn length(&self) -> i32

Calls C++ function: int QVector<QPointF>::length() const.

Source

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.

Source

pub unsafe fn mid_1a(&self, pos: i32) -> CppBox<QVectorOfQPointF>

Calls C++ function: QVector<QPointF> QVector<QPointF>::mid(int pos) const.

Source

pub unsafe fn move_(&self, from: i32, to: i32)

Calls C++ function: void QVector<QPointF>::move(int from, int to).

Source

pub unsafe fn pop_back(&self)

Calls C++ function: void QVector<QPointF>::pop_back().

Source

pub unsafe fn pop_front(&self)

Calls C++ function: void QVector<QPointF>::pop_front().

Source

pub unsafe fn prepend(&self, t: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QVector<QPointF>::prepend(const QPointF& t).

Source

pub unsafe fn push_back(&self, t: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QVector<QPointF>::push_back(const QPointF& t).

Source

pub unsafe fn push_front(&self, t: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QVector<QPointF>::push_front(const QPointF& t).

Source

pub unsafe fn remove_1a(&self, i: i32)

Calls C++ function: void QVector<QPointF>::remove(int i).

Source

pub unsafe fn remove_2a(&self, i: i32, n: i32)

Calls C++ function: void QVector<QPointF>::remove(int i, int n).

Source

pub unsafe fn remove_all(&self, t: impl CastInto<Ref<QPointF>>) -> i32

Calls C++ function: int QVector<QPointF>::removeAll(const QPointF& t).

Source

pub unsafe fn remove_at(&self, i: i32)

Calls C++ function: void QVector<QPointF>::removeAt(int i).

Source

pub unsafe fn remove_first(&self)

Calls C++ function: void QVector<QPointF>::removeFirst().

Source

pub unsafe fn remove_last(&self)

Calls C++ function: void QVector<QPointF>::removeLast().

Source

pub unsafe fn remove_one(&self, t: impl CastInto<Ref<QPointF>>) -> bool

Calls C++ function: bool QVector<QPointF>::removeOne(const QPointF& t).

Source

pub unsafe fn replace(&self, i: i32, t: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QVector<QPointF>::replace(int i, const QPointF& t).

Source

pub unsafe fn reserve(&self, size: i32)

Calls C++ function: void QVector<QPointF>::reserve(int size).

Source

pub unsafe fn resize(&self, size: i32)

Calls C++ function: void QVector<QPointF>::resize(int size).

Source

pub unsafe fn set_sharable(&self, sharable: bool)

Calls C++ function: void QVector<QPointF>::setSharable(bool sharable).

Source

pub unsafe fn shrink_to_fit(&self)

Calls C++ function: void QVector<QPointF>::shrink_to_fit().

Source

pub unsafe fn size(&self) -> i32

Calls C++ function: int QVector<QPointF>::size() const.

Source

pub unsafe fn squeeze(&self)

Calls C++ function: void QVector<QPointF>::squeeze().

Source

pub unsafe fn starts_with(&self, t: impl CastInto<Ref<QPointF>>) -> bool

Calls C++ function: bool QVector<QPointF>::startsWith(const QPointF& t) const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QVectorOfQPointF>>)

Calls C++ function: void QVector<QPointF>::swap(QVector<QPointF>& other).

Source

pub unsafe fn swap_items_at(&self, i: i32, j: i32)

Calls C++ function: void QVector<QPointF>::swapItemsAt(int i, int j).

Source

pub unsafe fn take_at(&self, i: i32) -> CppBox<QPointF>

Calls C++ function: QPointF QVector<QPointF>::takeAt(int i).

Source

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

Calls C++ function: QPointF QVector<QPointF>::takeFirst().

Source

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

Calls C++ function: QPointF QVector<QPointF>::takeLast().

Source

pub unsafe fn value_1a(&self, i: i32) -> CppBox<QPointF>

Calls C++ function: QPointF QVector<QPointF>::value(int i) const.

Source

pub unsafe fn value_2a( &self, i: i32, default_value: impl CastInto<Ref<QPointF>>, ) -> CppBox<QPointF>

Calls C++ function: QPointF QVector<QPointF>::value(int i, const QPointF& defaultValue) const.

Trait Implementations§

Source§

impl CppDeletable for QPolygonF

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QPolygonF

Source§

fn deref(&self) -> &QVectorOfQPointF

Calls C++ function: QVector<QPointF>* static_cast<QVector<QPointF>*>(QPolygonF* ptr).

Source§

type Target = QVectorOfQPointF

The resulting type after dereferencing.
Source§

impl Mul<Ref<QMatrix>> for &QPolygonF

Source§

fn mul(self, m: Ref<QMatrix>) -> CppBox<QPolygonF>

Calls C++ function: QPolygonF operator*(const QPolygonF& a, const QMatrix& m).

Source§

type Output = CppBox<QPolygonF>

The resulting type after applying the * operator.
Source§

impl Mul<Ref<QTransform>> for &QPolygonF

Source§

fn mul(self, m: Ref<QTransform>) -> CppBox<QPolygonF>

Calls C++ function: QPolygonF operator*(const QPolygonF& a, const QTransform& m).

Source§

type Output = CppBox<QPolygonF>

The resulting type after applying the * operator.
Source§

impl StaticDowncast<QPolygonF> for QVectorOfQPointF

Source§

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

Source§

unsafe fn static_upcast(ptr: Ptr<QPolygonF>) -> Ptr<QVectorOfQPointF>

Calls C++ function: QVector<QPointF>* static_cast<QVector<QPointF>*>(QPolygonF* ptr).

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.