java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QCursor
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QCursor extends QtObject implements Cloneable
Mouse cursor with an arbitrary shape
Java wrapper for Qt class QCursor
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QCursor()
QCursor(Qt.CursorShape shape)
QCursor(QBitmap bitmap, QBitmap mask)
Overloaded constructor forQCursor(io.qt.gui.QBitmap, io.qt.gui.QBitmap, int, int)
QCursor(QBitmap bitmap, QBitmap mask, int hotX)
Overloaded constructor forQCursor(io.qt.gui.QBitmap, io.qt.gui.QBitmap, int, int)
withhotY = -1
.QCursor(QBitmap bitmap, QBitmap mask, int hotX, int hotY)
QCursor(QCursor cursor)
QCursor(QPixmap pixmap)
Overloaded constructor forQCursor(io.qt.gui.QPixmap, int, int)
QCursor(QPixmap pixmap, int hotX)
Overloaded constructor forQCursor(io.qt.gui.QPixmap, int, int)
withhotY = -1
.QCursor(QPixmap pixmap, int hotX, int hotY)
protected
QCursor(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QBitmap
bitmap()
QCursor
clone()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
QPoint
hotSpot()
QBitmap
mask()
QPixmap
pixmap()
static QPoint
pos()
See QCursor::pos()static QPoint
pos(QScreen screen)
void
readFrom(QDataStream inS)
static void
setPos(int x, int y)
static void
setPos(QPoint p)
static void
setPos(QScreen screen, int x, int y)
static void
setPos(QScreen screen, QPoint p)
void
setShape(Qt.CursorShape newShape)
Qt.CursorShape
shape()
void
swap(QCursor other)
String
toString()
void
writeTo(QDataStream outS)
-
Constructor Details
-
QCursor
public QCursor() -
QCursor
-
QCursor
Overloaded constructor for
QCursor(io.qt.gui.QBitmap, io.qt.gui.QBitmap, int, int)
withhotY = -1
. -
QCursor
Overloaded constructor for
QCursor(io.qt.gui.QBitmap, io.qt.gui.QBitmap, int, int)
with:
hotX = -1
hotY = -1
-
QCursor
-
QCursor
-
QCursor
Overloaded constructor for
QCursor(io.qt.gui.QPixmap, int, int)
withhotY = -1
. -
QCursor
-
QCursor
-
QCursor
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
bitmap
-
hotSpot
-
mask
-
writeTo
-
readFrom
-
pixmap
-
setShape
-
shape
-
swap
-
pos
See QCursor::pos()
-
pos
-
setPos
-
setPos
-
setPos
-
setPos
public static void setPos(int x, int y) -
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-