java.lang.Object
io.qt.internal.NativeUtility.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's class QPoint
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQPoint()
See QPoint::QPoint()QPoint
(int xpos, int ypos) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QPoint
clone()
final QPoint
divide
(double divisor) static int
dotProduct
(QPoint p1, QPoint p2) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.int
hashCode()
final boolean
isNull()
final int
final QPoint
multiply
(double factor) final QPoint
multiply
(float factor) final QPoint
multiply
(int factor) void
readFrom
(QDataStream arg__1) final void
setX
(int x) final void
setY
(int y) final QPoint
toString()
final QPoint
void
writeTo
(QDataStream arg__1) final int
x()
See QPoint::x()constfinal int
y()
See QPoint::y()constMethods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QPoint
public QPoint()See QPoint::QPoint()
-
QPoint
public QPoint(int xpos, int ypos) -
QPoint
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
isNull
-
manhattanLength
-
multiply
-
multiply
-
multiply
-
add
-
subtract
-
divide
-
writeTo
-
readFrom
-
setX
-
setY
-
transposed
-
x
See QPoint::x()const
-
y
See QPoint::y()const
-
dotProduct
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-