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
ConstructorsConstructorDescriptionQPoint()SeeQPoint::QPoint() QPoint(int xpos, int ypos) SeeQPoint::QPoint(QPoint) -
Method Summary
Modifier and TypeMethodDescriptionfinal QPointclone()Creates and returns a copy of this object.final QPointdiv(double c) Seeoperator/(QPoint,qreal) final QPointdivide(double divisor) static intdotProduct(QPoint p1, QPoint p2) final booleanSeeoperator==(QPoint,QPoint) booleanSeeoperator==(QPoint,QPoint) inthashCode()Returns the objects's hash code computed byqHash(QPoint).final booleanisNull()final intfinal QPointfinal QPointmultiply(double factor) final QPointmultiply(float factor) final QPointmultiply(int factor) final QPointvoidreadFrom(QDataStream arg__1) Seeoperator>>(QDataStream&,QPoint&) final voidsetX(int x) final voidsetY(int y) final QPointfinal QPointtimes(double factor) Seeoperator*(QPoint,double) final QPointtimes(float factor) Seeoperator*(QPoint,float) final QPointtimes(int factor) Seeoperator*(QPoint,int) toString()Seeoperator<<(QDebug,QPoint) final QPointfinal QPointSeeoperator-(QPoint)final QPointSeeoperator+(QPoint)voidwriteTo(QDataStream arg__1) Seeoperator<<(QDataStream&,QPoint) final intx()SeeQPoint::x()const final inty()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:
- Since:
- This function was introduced in Qt 5.0.
-
add
- Parameters:
p-- Returns:
-
unaryMinus
See
operator-(QPoint)- Returns:
-
minus
- Parameters:
p2-- Returns:
-
subtract
- Parameters:
p-- Returns:
-
div
See
operator/(QPoint,qreal) - Parameters:
c-- Returns:
-
divide
- Parameters:
divisor-- Returns:
-
writeTo
See
operator<<(QDataStream&,QPoint) - Parameters:
arg__1-
-
equals
See
operator==(QPoint,QPoint) - Parameters:
p2-- Returns:
-
readFrom
See
operator>>(QDataStream&,QPoint&) - Parameters:
arg__1-
-
setX
- Parameters:
x-
-
setY
- Parameters:
y-
-
transposed
- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
x
See
QPoint::x()const - Returns:
-
y
See
QPoint::y()const - Returns:
-
dotProduct
- Parameters:
p1-p2-- Returns:
- Since:
- This function was introduced in Qt 5.1.
-
equals
See
operator==(QPoint,QPoint) -
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)
-