Struct cxx_qt_lib::QPoint
source · #[repr(C)]pub struct QPoint { /* private fields */ }
Expand description
The QPoint struct defines a point in the plane using integer precision.
Implementations§
source§impl QPoint
impl QPoint
sourcepub fn manhattan_length(&self) -> i32
pub fn manhattan_length(&self) -> i32
Returns the sum of the absolute values of x() and y(), traditionally known as the “Manhattan length” of the vector from the origin to the point.
Trait Implementations§
source§impl ExternType for QPoint
impl ExternType for QPoint
source§impl PartialEq for QPoint
impl PartialEq for QPoint
source§impl QListElement for QPoint
impl QListElement for QPoint
type TypeId = (Q, L, i, s, t, __, Q, P, o, i, n, t)
fn append(list: &mut QList<Self>, value: Self)
fn append_clone(list: &mut QList<Self>, value: &Self)
fn clear(list: &mut QList<Self>)
fn clone(list: &QList<Self>) -> QList<Self>
fn contains(list: &QList<Self>, value: &Self) -> bool
fn default() -> QList<Self>
fn drop(list: &mut QList<Self>)
fn index_of(list: &QList<Self>, value: &Self) -> isize
fn insert(list: &mut QList<Self>, pos: isize, value: Self)
fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)
fn len(list: &QList<Self>) -> isize
fn remove(list: &mut QList<Self>, pos: isize)
fn reserve(list: &mut QList<Self>, size: isize)
source§impl QVariantValue for QPoint
impl QVariantValue for QPoint
source§impl QVectorElement for QPoint
impl QVectorElement for QPoint
type TypeId = (Q, V, e, c, t, o, r, __, Q, P, o, i, n, t)
fn append(vector: &mut QVector<Self>, value: Self)
fn append_clone(vector: &mut QVector<Self>, value: &Self)
fn clear(vector: &mut QVector<Self>)
fn clone(vector: &QVector<Self>) -> QVector<Self>
fn contains(vector: &QVector<Self>, value: &Self) -> bool
fn default() -> QVector<Self>
fn drop(vector: &mut QVector<Self>)
fn index_of(vector: &QVector<Self>, value: &Self) -> isize
fn insert(vector: &mut QVector<Self>, pos: isize, value: Self)
fn insert_clone(vector: &mut QVector<Self>, pos: isize, value: &Self)
fn len(vector: &QVector<Self>) -> isize
fn remove(vector: &mut QVector<Self>, pos: isize)
fn reserve(vector: &mut QVector<Self>, size: isize)
impl Eq for QPoint
impl StructuralPartialEq for QPoint
Auto Trait Implementations§
impl Freeze for QPoint
impl RefUnwindSafe for QPoint
impl Send for QPoint
impl Sync for QPoint
impl Unpin for QPoint
impl UnwindSafe for QPoint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more