Skip to main content

QCursor

Struct QCursor 

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

C++ class: QCursor.

Implementations§

Source§

impl QCursor

Source

pub unsafe fn bitmap_0a(&self) -> Ptr<QBitmap>

Calls C++ function: const QBitmap* QCursor::bitmap() const.

Source

pub unsafe fn bitmap_1a(&self, arg1: ReturnByValueConstant) -> CppBox<QBitmap>

Calls C++ function: QBitmap QCursor::bitmap(Qt::ReturnByValueConstant arg1) const.

Source

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

Calls C++ function: QCursor& QCursor::operator=(const QCursor& cursor).

Source

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

Calls C++ function: QPoint QCursor::hotSpot() const.

Source

pub unsafe fn mask_0a(&self) -> Ptr<QBitmap>

Calls C++ function: const QBitmap* QCursor::mask() const.

Source

pub unsafe fn mask_1a(&self, arg1: ReturnByValueConstant) -> CppBox<QBitmap>

Calls C++ function: QBitmap QCursor::mask(Qt::ReturnByValueConstant arg1) const.

Source

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

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

Source

pub unsafe fn from_cursor_shape(shape: CursorShape) -> CppBox<QCursor>

Calls C++ function: [constructor] void QCursor::QCursor(Qt::CursorShape shape).

Source

pub unsafe fn from_2_q_bitmap2_int( bitmap: impl CastInto<Ref<QBitmap>>, mask: impl CastInto<Ref<QBitmap>>, hot_x: c_int, hot_y: c_int, ) -> CppBox<QCursor>

Calls C++ function: [constructor] void QCursor::QCursor(const QBitmap& bitmap, const QBitmap& mask, int hotX = …, int hotY = …).

Source

pub unsafe fn from_q_pixmap2_int( pixmap: impl CastInto<Ref<QPixmap>>, hot_x: c_int, hot_y: c_int, ) -> CppBox<QCursor>

Calls C++ function: [constructor] void QCursor::QCursor(const QPixmap& pixmap, int hotX = …, int hotY = …).

Source

pub unsafe fn from_2_q_bitmap_int( bitmap: impl CastInto<Ref<QBitmap>>, mask: impl CastInto<Ref<QBitmap>>, hot_x: c_int, ) -> CppBox<QCursor>

Calls C++ function: [constructor] void QCursor::QCursor(const QBitmap& bitmap, const QBitmap& mask, int hotX = …).

Source

pub unsafe fn from_2_q_bitmap( bitmap: impl CastInto<Ref<QBitmap>>, mask: impl CastInto<Ref<QBitmap>>, ) -> CppBox<QCursor>

Calls C++ function: [constructor] void QCursor::QCursor(const QBitmap& bitmap, const QBitmap& mask).

Source

pub unsafe fn from_q_pixmap_int( pixmap: impl CastInto<Ref<QPixmap>>, hot_x: c_int, ) -> CppBox<QCursor>

Calls C++ function: [constructor] void QCursor::QCursor(const QPixmap& pixmap, int hotX = …).

Source

pub unsafe fn from_q_pixmap( pixmap: impl CastInto<Ref<QPixmap>>, ) -> CppBox<QCursor>

Calls C++ function: [constructor] void QCursor::QCursor(const QPixmap& pixmap).

Source

pub unsafe fn new_copy(cursor: impl CastInto<Ref<QCursor>>) -> CppBox<QCursor>

Calls C++ function: [constructor] void QCursor::QCursor(const QCursor& cursor).

Source

pub unsafe fn pixmap(&self) -> CppBox<QPixmap>

Calls C++ function: QPixmap QCursor::pixmap() const.

Source

pub unsafe fn pos_0a() -> CppBox<QPoint>

Calls C++ function: static QPoint QCursor::pos().

Source

pub unsafe fn pos_1a(screen: impl CastInto<Ptr<QScreen>>) -> CppBox<QPoint>

Calls C++ function: static QPoint QCursor::pos(const QScreen* screen).

Source

pub unsafe fn set_pos_2_int(x: c_int, y: c_int)

Calls C++ function: static void QCursor::setPos(int x, int y).

Source

pub unsafe fn set_pos_q_screen2_int( screen: impl CastInto<Ptr<QScreen>>, x: c_int, y: c_int, )

Calls C++ function: static void QCursor::setPos(QScreen* screen, int x, int y).

Source

pub unsafe fn set_pos_q_point(p: impl CastInto<Ref<QPoint>>)

Calls C++ function: static void QCursor::setPos(const QPoint& p).

Source

pub unsafe fn set_pos_q_screen_q_point( screen: impl CastInto<Ptr<QScreen>>, p: impl CastInto<Ref<QPoint>>, )

Calls C++ function: static void QCursor::setPos(QScreen* screen, const QPoint& p).

Source

pub unsafe fn set_shape(&self, new_shape: CursorShape)

Calls C++ function: void QCursor::setShape(Qt::CursorShape newShape).

Source

pub unsafe fn shape(&self) -> CursorShape

Calls C++ function: Qt::CursorShape QCursor::shape() const.

Source

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

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

Source

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

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

Trait Implementations§

Source§

impl CppDeletable for QCursor

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QCursor>> for QCursor

Source§

fn eq(&self, rhs: &Ref<QCursor>) -> bool

Calls C++ function: bool operator==(const QCursor& lhs, const QCursor& rhs).

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§

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.