pub struct QCursor { /* private fields */ }Expand description
C++ class: QCursor.
Implementations§
Source§impl QCursor
impl QCursor
Sourcepub unsafe fn bitmap_0a(&self) -> Ptr<QBitmap>
pub unsafe fn bitmap_0a(&self) -> Ptr<QBitmap>
Calls C++ function: const QBitmap* QCursor::bitmap() const.
Sourcepub unsafe fn bitmap_1a(&self, arg1: ReturnByValueConstant) -> CppBox<QBitmap>
pub unsafe fn bitmap_1a(&self, arg1: ReturnByValueConstant) -> CppBox<QBitmap>
Calls C++ function: QBitmap QCursor::bitmap(Qt::ReturnByValueConstant arg1) const.
Sourcepub unsafe fn copy_from(
&self,
cursor: impl CastInto<Ref<QCursor>>,
) -> Ref<QCursor>
pub unsafe fn copy_from( &self, cursor: impl CastInto<Ref<QCursor>>, ) -> Ref<QCursor>
Calls C++ function: QCursor& QCursor::operator=(const QCursor& cursor).
Sourcepub unsafe fn hot_spot(&self) -> CppBox<QPoint>
pub unsafe fn hot_spot(&self) -> CppBox<QPoint>
Calls C++ function: QPoint QCursor::hotSpot() const.
Sourcepub unsafe fn mask_0a(&self) -> Ptr<QBitmap>
pub unsafe fn mask_0a(&self) -> Ptr<QBitmap>
Calls C++ function: const QBitmap* QCursor::mask() const.
Sourcepub unsafe fn mask_1a(&self, arg1: ReturnByValueConstant) -> CppBox<QBitmap>
pub unsafe fn mask_1a(&self, arg1: ReturnByValueConstant) -> CppBox<QBitmap>
Calls C++ function: QBitmap QCursor::mask(Qt::ReturnByValueConstant arg1) const.
Sourcepub unsafe fn new() -> CppBox<QCursor>
pub unsafe fn new() -> CppBox<QCursor>
Calls C++ function: [constructor] void QCursor::QCursor().
Sourcepub unsafe fn from_cursor_shape(shape: CursorShape) -> CppBox<QCursor>
pub unsafe fn from_cursor_shape(shape: CursorShape) -> CppBox<QCursor>
Calls C++ function: [constructor] void QCursor::QCursor(Qt::CursorShape shape).
Sourcepub 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>
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 = …).
Sourcepub unsafe fn from_q_pixmap2_int(
pixmap: impl CastInto<Ref<QPixmap>>,
hot_x: c_int,
hot_y: c_int,
) -> CppBox<QCursor>
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 = …).
Sourcepub unsafe fn from_2_q_bitmap_int(
bitmap: impl CastInto<Ref<QBitmap>>,
mask: impl CastInto<Ref<QBitmap>>,
hot_x: c_int,
) -> CppBox<QCursor>
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 = …).
Sourcepub unsafe fn from_2_q_bitmap(
bitmap: impl CastInto<Ref<QBitmap>>,
mask: impl CastInto<Ref<QBitmap>>,
) -> CppBox<QCursor>
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).
Sourcepub unsafe fn from_q_pixmap_int(
pixmap: impl CastInto<Ref<QPixmap>>,
hot_x: c_int,
) -> CppBox<QCursor>
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 = …).
Sourcepub unsafe fn from_q_pixmap(
pixmap: impl CastInto<Ref<QPixmap>>,
) -> CppBox<QCursor>
pub unsafe fn from_q_pixmap( pixmap: impl CastInto<Ref<QPixmap>>, ) -> CppBox<QCursor>
Calls C++ function: [constructor] void QCursor::QCursor(const QPixmap& pixmap).
Sourcepub unsafe fn new_copy(cursor: impl CastInto<Ref<QCursor>>) -> CppBox<QCursor>
pub unsafe fn new_copy(cursor: impl CastInto<Ref<QCursor>>) -> CppBox<QCursor>
Calls C++ function: [constructor] void QCursor::QCursor(const QCursor& cursor).
Sourcepub unsafe fn pixmap(&self) -> CppBox<QPixmap>
pub unsafe fn pixmap(&self) -> CppBox<QPixmap>
Calls C++ function: QPixmap QCursor::pixmap() const.
Sourcepub unsafe fn pos_1a(screen: impl CastInto<Ptr<QScreen>>) -> CppBox<QPoint>
pub unsafe fn pos_1a(screen: impl CastInto<Ptr<QScreen>>) -> CppBox<QPoint>
Calls C++ function: static QPoint QCursor::pos(const QScreen* screen).
Sourcepub unsafe fn set_pos_2_int(x: c_int, y: c_int)
pub unsafe fn set_pos_2_int(x: c_int, y: c_int)
Calls C++ function: static void QCursor::setPos(int x, int y).
Sourcepub unsafe fn set_pos_q_screen2_int(
screen: impl CastInto<Ptr<QScreen>>,
x: c_int,
y: c_int,
)
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).
Sourcepub unsafe fn set_pos_q_point(p: impl CastInto<Ref<QPoint>>)
pub unsafe fn set_pos_q_point(p: impl CastInto<Ref<QPoint>>)
Calls C++ function: static void QCursor::setPos(const QPoint& p).
Sourcepub unsafe fn set_pos_q_screen_q_point(
screen: impl CastInto<Ptr<QScreen>>,
p: impl CastInto<Ref<QPoint>>,
)
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).
Sourcepub unsafe fn set_shape(&self, new_shape: CursorShape)
pub unsafe fn set_shape(&self, new_shape: CursorShape)
Calls C++ function: void QCursor::setShape(Qt::CursorShape newShape).
Sourcepub unsafe fn shape(&self) -> CursorShape
pub unsafe fn shape(&self) -> CursorShape
Calls C++ function: Qt::CursorShape QCursor::shape() const.
Sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QCursor>>)
pub unsafe fn swap(&self, other: impl CastInto<Ref<QCursor>>)
Calls C++ function: void QCursor::swap(QCursor& other).
Sourcepub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>
Calls C++ function: QVariant QCursor::operator QVariant() const.