java.lang.Object
io.qt.QtObject
io.qt.core.QPoint
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines a point in the plane using integer precision
Java wrapper for Qt class QPoint
-
Constructor Summary
ConstructorDescriptionQPoint()
SeeQPoint::
QPoint() QPoint
(int xpos, int ypos) SeeQPoint::
QPoint(QPoint) -
Method Summary
Modifier and TypeMethodDescriptionfinal QPoint
clone()
Creates and returns a copy of this object.final QPoint
div
(double c) final QPoint
divide
(double divisor) static int
dotProduct
(QPoint p1, QPoint p2) final boolean
boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QPoint)
.final boolean
isNull()
final int
final QPoint
final QPoint
multiply
(double factor) final QPoint
multiply
(float factor) final QPoint
multiply
(int factor) final QPoint
void
readFrom
(QDataStream arg__1) final void
setX
(int x) final void
setY
(int y) final QPoint
final QPoint
times
(double factor) Seeoperator*(QPoint,
double) final QPoint
times
(float factor) Seeoperator*(QPoint,
float) final QPoint
times
(int factor) Seeoperator*(QPoint,
int) final QPointF
toPointF()
toString()
Seeoperator<<(QDebug,
QPoint) final QPoint
final QPoint
Seeoperator-(QPoint)
final QPoint
Seeoperator+(QPoint)
void
writeTo
(QDataStream arg__1) final int
x()
SeeQPoint::
x()const final int
y()
SeeQPoint::
y()const Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QPoint
public QPoint()See
QPoint::
QPoint() -
QPoint
See
QPoint::
QPoint(QPoint) - Parameters:
other
-
-
QPoint
public QPoint(int xpos, int ypos) - Parameters:
xpos
-ypos
-
-
-
Method Details
-
isNull
- Returns:
-
manhattanLength
- Returns:
-
times
See
operator*(QPoint,
double) - Parameters:
factor
-- Returns:
-
times
See
operator*(QPoint,
float) - Parameters:
factor
-- Returns:
-
times
See
operator*(QPoint,
int) - Parameters:
factor
-- Returns:
-
multiply
- Parameters:
factor
-- Returns:
-
multiply
- Parameters:
factor
-- Returns:
-
multiply
- Parameters:
factor
-- Returns:
-
unaryPlus
See
operator+(QPoint)
- Returns:
-
plus
- Parameters:
p2
-- Returns:
-
add
- Parameters:
p
-- Returns:
-
unaryMinus
See
operator-(QPoint)
- Returns:
-
minus
- Parameters:
p2
-- Returns:
-
subtract
- Parameters:
p
-- Returns:
-
div
- Parameters:
c
-- Returns:
-
divide
- Parameters:
divisor
-- Returns:
-
writeTo
- Parameters:
arg__1
-
-
equals
- Parameters:
p2
-- Returns:
-
readFrom
- Parameters:
arg__1
-
-
setX
- Parameters:
x
-
-
setY
- Parameters:
y
-
-
toPointF
- Returns:
- Since:
- This function was introduced in Qt 6.4.
-
transposed
- Returns:
-
x
See
QPoint::
x()const - Returns:
-
y
See
QPoint::
y()const - Returns:
-
dotProduct
- Parameters:
p1
-p2
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QPoint)
. -
toString
See
operator<<(QDebug,
QPoint) -
clone
Creates and returns a copy of this object.
See
QPoint::
QPoint(QPoint)
-