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()
See QLine::dx()constint
dy()
See QLine::dy()constboolean
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()
See QLine::p1()constQPoint
p2()
See QLine::p2()constvoid
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()
See QLine::x1()constint
x2()
See QLine::x2()constint
y1()
See QLine::y1()constint
y2()
See QLine::y2()const
-
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
See QLine::dx()const
-
dy
See QLine::dy()const
-
isNull
-
writeTo
-
readFrom
-
p1
See QLine::p1()const
-
p2
See QLine::p2()const
-
setLine
-
setP1
-
setP2
-
setPoints
-
translate
-
translate
-
translated
-
translated
-
x1
See QLine::x1()const
-
x2
See QLine::x2()const
-
y1
See QLine::y1()const
-
y2
See QLine::y2()const
-
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
-
toString
-
clone
-