Skip to main content

QPolygon

Struct QPolygon 

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

C++ class: QPolygon.

Implementations§

Source§

impl QPolygon

Source

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

Calls C++ function: QRect QPolygon::boundingRect() const.

Source

pub unsafe fn contains_point( &self, pt: impl CastInto<Ref<QPoint>>, fill_rule: FillRule, ) -> bool

Calls C++ function: bool QPolygon::containsPoint(const QPoint& pt, Qt::FillRule fillRule) const.

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn from_q_vector_of_q_point( v: impl CastInto<Ref<QVectorOfQPoint>>, ) -> CppBox<QPolygon>

Calls C++ function: [constructor] void QPolygon::QPolygon(const QVector<QPoint>& v).

Source

pub unsafe fn from_q_rect_bool( r: impl CastInto<Ref<QRect>>, closed: bool, ) -> CppBox<QPolygon>

Calls C++ function: [constructor] void QPolygon::QPolygon(const QRect& r, bool closed = …).

Source

pub unsafe fn from_int_int( n_points: c_int, points: *const c_int, ) -> CppBox<QPolygon>

Calls C++ function: [constructor] void QPolygon::QPolygon(int nPoints, const int* points).

Source

pub unsafe fn from_q_rect(r: impl CastInto<Ref<QRect>>) -> CppBox<QPolygon>

Calls C++ function: [constructor] void QPolygon::QPolygon(const QRect& r).

Source

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

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

Source

pub unsafe fn point_3a(&self, i: c_int, x: *mut c_int, y: *mut c_int)

Calls C++ function: void QPolygon::point(int i, int* x, int* y) const.

Source

pub unsafe fn point_1a(&self, i: c_int) -> CppBox<QPoint>

Calls C++ function: QPoint QPolygon::point(int i) const.

Source

pub unsafe fn put_points_2_int_int( &self, index: c_int, n_points: c_int, points: *const c_int, )

Calls C++ function: void QPolygon::putPoints(int index, int nPoints, const int* points).

Source

pub unsafe fn put_points_2_int_q_polygon_int( &self, index: c_int, n_points: c_int, from: impl CastInto<Ref<QPolygon>>, from_index: c_int, )

Calls C++ function: void QPolygon::putPoints(int index, int nPoints, const QPolygon& from, int fromIndex = …).

Source

pub unsafe fn put_points_2_int_q_polygon( &self, index: c_int, n_points: c_int, from: impl CastInto<Ref<QPolygon>>, )

Calls C++ function: void QPolygon::putPoints(int index, int nPoints, const QPolygon& from).

Source

pub unsafe fn set_point_3a(&self, index: c_int, x: c_int, y: c_int)

Calls C++ function: void QPolygon::setPoint(int index, int x, int y).

Source

pub unsafe fn set_point_2a(&self, index: c_int, p: impl CastInto<Ref<QPoint>>)

Calls C++ function: void QPolygon::setPoint(int index, const QPoint& p).

Source

pub unsafe fn set_points(&self, n_points: c_int, points: *const c_int)

Calls C++ function: void QPolygon::setPoints(int nPoints, const int* points).

Source

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

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

Source

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

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

Source

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

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

Source

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

Calls C++ function: void QPolygon::translate(int dx, int dy).

Source

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

Calls C++ function: void QPolygon::translate(const QPoint& offset).

Source

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

Calls C++ function: QPolygon QPolygon::translated(int dx, int dy) const.

Source

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

Calls C++ function: QPolygon QPolygon::translated(const QPoint& offset) const.

Source

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

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

Methods from Deref<Target = QVectorOfQPoint>§

Source

pub unsafe fn add_assign_q_vector_of_q_point( &self, l: impl CastInto<Ref<QVectorOfQPoint>>, ) -> Ref<QVectorOfQPoint>

Calls C++ function: QVector<QPoint>& QVector<QPoint>::operator+=(const QVector<QPoint>& l).

Source

pub unsafe fn add_assign_q_point( &self, t: impl CastInto<Ref<QPoint>>, ) -> Ref<QVectorOfQPoint>

Calls C++ function: QVector<QPoint>& QVector<QPoint>::operator+=(const QPoint& t).

Source

pub unsafe fn append_q_point(&self, t: impl CastInto<Ref<QPoint>>)

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

Source

pub unsafe fn append_q_vector_of_q_point( &self, l: impl CastInto<Ref<QVectorOfQPoint>>, )

Calls C++ function: void QVector<QPoint>::append(const QVector<QPoint>& l).

Source

pub unsafe fn at(&self, i: c_int) -> Ref<QPoint>

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

Source

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

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

Source

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

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

Source

pub unsafe fn capacity(&self) -> c_int

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

Source

pub unsafe fn clear(&self)

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

Calls C++ function: QVector<QPoint>& QVector<QPoint>::operator=(const QVector<QPoint>& v).

Source

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

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

Source

pub unsafe fn count_0a(&self) -> c_int

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

Source

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

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

Source

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

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

Source

pub unsafe fn detach(&self)

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

Source

pub unsafe fn empty(&self) -> bool

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

Source

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

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

Source

pub unsafe fn fill_2a( &self, t: impl CastInto<Ref<QPoint>>, size: c_int, ) -> Ref<QVectorOfQPoint>

Calls C++ function: QVector<QPoint>& QVector<QPoint>::fill(const QPoint& t, int size = …).

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn index_mut(&self, i: c_int) -> Ref<QPoint>

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

Source

pub unsafe fn index(&self, i: c_int) -> Ref<QPoint>

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

Source

pub unsafe fn index_of_2a( &self, t: impl CastInto<Ref<QPoint>>, from: c_int, ) -> c_int

Calls C++ function: int QVector<QPoint>::indexOf(const QPoint& t, int from = …) const.

Source

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

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

Source

pub unsafe fn insert_2a(&self, i: c_int, t: impl CastInto<Ref<QPoint>>)

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

Source

pub unsafe fn insert_3a( &self, i: c_int, n: c_int, t: impl CastInto<Ref<QPoint>>, )

Calls C++ function: void QVector<QPoint>::insert(int i, int n, const QPoint& t).

Source

pub unsafe fn is_detached(&self) -> bool

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

Source

pub unsafe fn is_empty(&self) -> bool

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn last_index_of_2a( &self, t: impl CastInto<Ref<QPoint>>, from: c_int, ) -> c_int

Calls C++ function: int QVector<QPoint>::lastIndexOf(const QPoint& t, int from = …) const.

Source

pub unsafe fn last_index_of_1a(&self, t: impl CastInto<Ref<QPoint>>) -> c_int

Calls C++ function: int QVector<QPoint>::lastIndexOf(const QPoint& t) const.

Source

pub unsafe fn length(&self) -> c_int

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

Source

pub unsafe fn mid_2a(&self, pos: c_int, len: c_int) -> CppBox<QVectorOfQPoint>

Calls C++ function: QVector<QPoint> QVector<QPoint>::mid(int pos, int len = …) const.

Source

pub unsafe fn mid_1a(&self, pos: c_int) -> CppBox<QVectorOfQPoint>

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

Source

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

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

Source

pub unsafe fn pop_back(&self)

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

Source

pub unsafe fn pop_front(&self)

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn remove_first(&self)

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

Source

pub unsafe fn remove_last(&self)

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn shrink_to_fit(&self)

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

Source

pub unsafe fn size(&self) -> c_int

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

Source

pub unsafe fn squeeze(&self)

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

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn take_at(&self, i: c_int) -> CppBox<QPoint>

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

Source

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

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

Source

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

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

Source

pub unsafe fn value_1a(&self, i: c_int) -> CppBox<QPoint>

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

Source

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

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

Trait Implementations§

Source§

impl CppDeletable for QPolygon

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QPolygon

Source§

fn deref(&self) -> &QVectorOfQPoint

Calls C++ function: QVector<QPoint>* static_cast<QVector<QPoint>*>(QPolygon* ptr).

Source§

type Target = QVectorOfQPoint

The resulting type after dereferencing.
Source§

impl Mul<Ref<QMatrix>> for &QPolygon

Source§

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

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

Source§

type Output = CppBox<QPolygon>

The resulting type after applying the * operator.
Source§

impl Mul<Ref<QTransform>> for &QPolygon

Source§

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

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

Source§

type Output = CppBox<QPolygon>

The resulting type after applying the * operator.
Source§

impl StaticDowncast<QPolygon> for QVectorOfQPoint

Source§

unsafe fn static_downcast(ptr: Ptr<QVectorOfQPoint>) -> Ptr<QPolygon>

Calls C++ function: QPolygon* static_cast<QPolygon*>(QVector<QPoint>* ptr).

Source§

impl StaticUpcast<QVectorOfQPoint> for QPolygon

Source§

unsafe fn static_upcast(ptr: Ptr<QPolygon>) -> Ptr<QVectorOfQPoint>

Calls C++ function: QVector<QPoint>* static_cast<QVector<QPoint>*>(QPolygon* 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.