Skip to main content

QLine

Struct QLine 

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

C++ class: QLine.

Implementations§

Source§

impl QLine

Source

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

Calls C++ function: QPoint QLine::center() const.

Source

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

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

Source

pub unsafe fn dx(&self) -> c_int

Calls C++ function: int QLine::dx() const.

Source

pub unsafe fn dy(&self) -> c_int

Calls C++ function: int QLine::dy() const.

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QLine::isNull() const.

Source

pub unsafe fn new_0a() -> CppBox<QLine>

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

Source

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

Source

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

Source

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

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

Source

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

Calls C++ function: QPoint QLine::p1() const.

Source

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

Calls C++ function: QPoint QLine::p2() const.

Source

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

Source

pub unsafe fn set_p1(&self, p1: impl CastInto<Ref<QPoint>>)

Calls C++ function: void QLine::setP1(const QPoint& p1).

Source

pub unsafe fn set_p2(&self, p2: impl CastInto<Ref<QPoint>>)

Calls C++ function: void QLine::setP2(const QPoint& p2).

Source

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

Source

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

Calls C++ function: void QLine::translate(const QPoint& p).

Source

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

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

Source

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

Calls C++ function: QLine QLine::translated(const QPoint& p) const.

Source

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

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

Source

pub unsafe fn x1(&self) -> c_int

Calls C++ function: int QLine::x1() const.

Source

pub unsafe fn x2(&self) -> c_int

Calls C++ function: int QLine::x2() const.

Source

pub unsafe fn y1(&self) -> c_int

Calls C++ function: int QLine::y1() const.

Source

pub unsafe fn y2(&self) -> c_int

Calls C++ function: int QLine::y2() const.

Trait Implementations§

Source§

impl CppDeletable for QLine

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QLine>> for QLine

Source§

fn eq(&self, d: &Ref<QLine>) -> bool

Calls C++ function: bool QLine::operator==(const QLine& d) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

impl Freeze for QLine

§

impl RefUnwindSafe for QLine

§

impl Send for QLine

§

impl Sync for QLine

§

impl Unpin for QLine

§

impl UnsafeUnpin for QLine

§

impl UnwindSafe for QLine

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