java.lang.Object
io.qt.QtObject
io.qt.core.QLine
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Two-dimensional vector using integer precision
Java wrapper for Qt class QLine
-
Constructor Summary
ConstructorDescriptionQLine()
SeeQLine::
QLine() QLine
(int x1, int y1, int x2, int y2) SeeQLine::
QLine(QLine) -
Method Summary
Modifier and TypeMethodDescriptionfinal QPoint
center()
clone()
Creates and returns a copy of this object.final int
dx()
SeeQLine::
dx()const final int
dy()
SeeQLine::
dy()const final boolean
boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QLine)
.final boolean
isNull()
final QPoint
p1()
SeeQLine::
p1()const final QPoint
p2()
SeeQLine::
p2()const void
readFrom
(QDataStream arg__1) final void
setLine
(int x1, int y1, int x2, int y2) final void
final void
final void
final QLineF
toLineF()
toString()
Seeoperator<<(QDebug,
QLine) 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()
SeeQLine::
x1()const final int
x2()
SeeQLine::
x2()const final int
y1()
SeeQLine::
y1()const final int
y2()
SeeQLine::
y2()const Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QLine
public QLine()See
QLine::
QLine() -
QLine
See
QLine::
QLine(QLine) - Parameters:
other
-
-
QLine
- Parameters:
pt1
-pt2
-
-
QLine
public QLine(int x1, int y1, int x2, int y2) - Parameters:
x1
-y1
-x2
-y2
-
-
-
Method Details
-
center
- Returns:
-
dx
See
QLine::
dx()const - Returns:
-
dy
See
QLine::
dy()const - Returns:
-
isNull
- Returns:
-
writeTo
- Parameters:
arg__1
-
-
equals
- Parameters:
d
-- Returns:
-
readFrom
- Parameters:
arg__1
-
-
p1
See
QLine::
p1()const - Returns:
-
p2
See
QLine::
p2()const - Returns:
-
setLine
- Parameters:
x1
-y1
-x2
-y2
-
-
setP1
- Parameters:
p1
-
-
setP2
- Parameters:
p2
-
-
setPoints
- Parameters:
p1
-p2
-
-
toLineF
- Returns:
- Since:
- This function was introduced in Qt 6.4.
-
translate
- Parameters:
p
-
-
translate
- Parameters:
dx
-dy
-
-
translated
- Parameters:
p
-- Returns:
-
translated
- Parameters:
dx
-dy
-- Returns:
-
x1
See
QLine::
x1()const - Returns:
-
x2
See
QLine::
x2()const - Returns:
-
y1
See
QLine::
y1()const - Returns:
-
y2
See
QLine::
y2()const - Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QLine)
. -
toString
See
operator<<(QDebug,
QLine) -
clone
Creates and returns a copy of this object.
See
QLine::
QLine(QLine)
-