java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QLine
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QLine extends QtObject implements Cloneable
Two-dimensional vector using integer precision
Java wrapper for Qt class QLine
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QLine()
See QLine::QLine()QLine(int x1, int y1, int x2, int y2)
QLine(QPoint pt1, QPoint pt2)
protected
QLine(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QPoint
center()
QLine
clone()
int
dx()
int
dy()
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()
QPoint
p1()
QPoint
p2()
void
readFrom(QDataStream arg__1)
void
setLine(int x1, int y1, int x2, int y2)
void
setP1(QPoint p1)
void
setP2(QPoint p2)
void
setPoints(QPoint p1, QPoint p2)
String
toString()
void
translate(int dx, int dy)
void
translate(QPoint p)
QLine
translated(int dx, int dy)
QLine
translated(QPoint p)
void
writeTo(QDataStream arg__1)
int
x1()
int
x2()
int
y1()
int
y2()
-
Constructor Details
-
QLine
public QLine()See QLine::QLine()
-
QLine
-
QLine
public QLine(int x1, int y1, int x2, int y2) -
QLine
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
center
-
dx
-
dy
-
isNull
-
writeTo
-
readFrom
-
p1
-
p2
-
setLine
-
setP1
-
setP2
-
setPoints
-
translate
-
translate
-
translated
-
translated
-
x1
-
x2
-
y1
-
y2
-
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
-