- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QPoint>
,Collection<QPoint>
,List<QPoint>
public class QPolygon extends QList<QPoint> implements Cloneable
List of points using integer precision
Java wrapper for Qt class QPolygon
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QPolygon()
QPolygon(QRect r)
Overloaded constructor forQPolygon(io.qt.core.QRect, boolean)
withclosed = false
.QPolygon(QRect r, boolean closed)
protected
QPolygon(QtObject.QPrivateConstructor p)
Constructor for internal use only.QPolygon(Collection<QPoint> v)
-
Method Summary
Modifier and Type Method Description void
append(int x, int y)
QRect
boundingRect()
QPolygon
clone()
boolean
containsPoint(QPoint pt, Qt.FillRule fillRule)
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()
QPolygon
intersected(QPolygon r)
boolean
intersects(QPolygon r)
void
readFrom(QDataStream stream)
QPolygon
subtracted(QPolygon r)
void
swap(QPolygon other)
String
toString()
void
translate(int dx, int dy)
void
translate(QPoint offset)
QPolygon
translated(int dx, int dy)
QPolygon
translated(QPoint offset)
QPolygon
united(QPolygon r)
void
writeTo(QDataStream stream)
Methods inherited from class io.qt.core.QList
add, add, append, append, at, begin, capacity, clear, contains, count, count, createVariantList, end, endsWith, fill, fill, first, get, indexOf, indexOf, insert, insert, isEmpty, last, lastIndexOf, lastIndexOf, length, mid, mid, move, of, prepend, remove, remove, removeAll, removeAt, removeAtIndex, removeFirst, removeLast, removeOne, replace, reserve, resize, set, size, squeeze, startsWith, swapItemsAt, takeAt, takeFirst, takeLast, value, value
Methods inherited from class io.qt.internal.QtJambiListObject
addAll, addAll, listIterator, listIterator, remove, retainAll, subList
Methods inherited from class io.qt.internal.QtJambiCollectionObject
containsAll, descendingIterator, iterator, removeAll, toArray, toArray
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.List
containsAll, iterator, removeAll, replaceAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
Method Details
-
boundingRect
-
containsPoint
-
intersected
-
intersects
-
writeTo
-
readFrom
-
subtracted
-
swap
-
translate
-
translate
-
translated
-
translated
-
united
-
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
-
append
-
toString
- Overrides:
toString
in classQtJambiCollectionObject<QPoint>
-
clone
-