java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.core.QLine
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Two-dimensional vector using integer precision
Java wrapper for Qt's class QLine
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQLine()
See QLine::QLine()QLine
(int x1, int y1, int x2, int y2) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QPoint
center()
clone()
final int
dx()
See QLine::dx()constfinal int
dy()
See QLine::dy()constboolean
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 QPoint
p1()
See QLine::p1()constfinal QPoint
p2()
See QLine::p2()constvoid
readFrom
(QDataStream arg__1) final void
setLine
(int x1, int y1, int x2, int y2) final void
final void
final void
toString()
final void
translate
(int dx, int dy) final void
final QLine
translated
(int dx, int dy) final QLine
translated
(QPoint p) void
writeTo
(QDataStream arg__1) final int
x1()
See QLine::x1()constfinal int
x2()
See QLine::x2()constfinal int
y1()
See QLine::y1()constfinal int
y2()
See QLine::y2()constMethods inherited from class io.qt.QtObject
dispose, isDisposed
-
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 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
-