- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Mouse cursor with an arbitrary shape
Java wrapper for Qt class QCursor
-
Constructor Summary
ConstructorDescriptionQCursor()
QCursor
(Qt.CursorShape shape) Overloaded constructor forQCursor(io.qt.gui.QBitmap, io.qt.gui.QBitmap, int, int)
Overloaded constructor forQCursor(io.qt.gui.QBitmap, io.qt.gui.QBitmap, int, int)
withhotY = -1
.Overloaded constructor forQCursor(io.qt.gui.QPixmap, int, int)
Overloaded constructor forQCursor(io.qt.gui.QPixmap, int, int)
withhotY = -1
. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(Qt.CursorShape cursor) Overloaded function forassign(io.qt.gui.QCursor)
.final void
final void
Overloaded function forassign(io.qt.gui.QCursor)
.final QBitmap
bitmap()
clone()
Creates and returns a copy of this object.final boolean
equals
(Qt.CursorShape rhs) Overloaded function forequals(io.qt.gui.QCursor)
.final boolean
Seeoperator==(QCursor,
QCursor) final boolean
Overloaded function forequals(io.qt.gui.QCursor)
.boolean
Seeoperator==(QCursor,
QCursor) int
hashCode()
Returns the objects's hash code computed byqHash(QCursor)
.final QPoint
hotSpot()
final QBitmap
mask()
final QPixmap
pixmap()
static QPoint
pos()
SeeQCursor::
pos() static QPoint
void
readFrom
(QDataStream inS) Seeoperator>>(QDataStream&,
QCursor&) static void
setPos
(int x, int y) static void
static void
static void
final void
setShape
(Qt.CursorShape newShape) final Qt.CursorShape
shape()
final void
toString()
Seeoperator<<(QDebug,
QCursor) void
writeTo
(QDataStream outS) Seeoperator<<(QDataStream&,
QCursor) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QCursor
public QCursor() -
QCursor
- Parameters:
bitmap
-mask
-hotX
-hotY
-
-
QCursor
- Parameters:
cursor
-
-
QCursor
- Parameters:
pixmap
-hotX
-hotY
-
-
QCursor
- Parameters:
shape
-
-
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
Overloaded constructor for
QCursor(io.qt.gui.QPixmap, int, int)
withhotY = -1
. -
QCursor
-
-
Method Details
-
bitmap
- Returns:
- Since:
- This function was introduced in Qt 5.15.
-
hotSpot
- Returns:
-
mask
- Returns:
- Since:
- This function was introduced in Qt 5.15.
-
writeTo
See
operator<<(QDataStream&,
QCursor) - Parameters:
outS
-
-
assign
- Parameters:
cursor
-
-
equals
See
operator==(QCursor,
QCursor) - Parameters:
rhs
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QCursor&) - Parameters:
inS
-
-
pixmap
- Returns:
-
setShape
- Parameters:
newShape
-
-
shape
- Returns:
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 5.7.
-
pos
See
QCursor::
pos() - Returns:
-
pos
- Parameters:
screen
-- Returns:
-
setPos
- Parameters:
p
-
-
setPos
- Parameters:
screen
-p
-
-
setPos
- Parameters:
screen
-x
-y
-
-
setPos
public static void setPos(int x, int y) - Parameters:
x
-y
-
-
equals
See
operator==(QCursor,
QCursor) -
hashCode
Returns the objects's hash code computed byqHash(QCursor)
. -
toString
See
operator<<(QDebug,
QCursor) -
clone
Creates and returns a copy of this object.
-
assign
Overloaded function for
assign(io.qt.gui.QCursor)
. -
assign
Overloaded function for
assign(io.qt.gui.QCursor)
. -
equals
Overloaded function for
equals(io.qt.gui.QCursor)
. -
equals
Overloaded function for
equals(io.qt.gui.QCursor)
.
-