java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QPoint
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QPoint extends QtObject implements Cloneable
Defines a point in the plane using integer precision
Java wrapper for Qt class QPoint
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QPoint()
See QPoint::QPoint()QPoint(int xpos, int ypos)
protected
QPoint(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QPoint
add(QPoint p)
QPoint
clone()
QPoint
divide(double divisor)
static int
dotProduct(QPoint p1, QPoint p2)
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()
boolean
isNull()
int
manhattanLength()
QPoint
multiply(double factor)
QPoint
multiply(float factor)
QPoint
multiply(int factor)
void
readFrom(QDataStream arg__1)
void
setX(int x)
void
setY(int y)
QPoint
subtract(QPoint p)
String
toString()
QPoint
transposed()
void
writeTo(QDataStream arg__1)
int
x()
int
y()
-
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
-
y
-
dotProduct
-
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
public int hashCode() -
toString
-
clone
-