<class name="QPolygon" doc="/**
&lt;p&gt;The &lt;a href=&quot;QPolygon.html#QPolygon()&quot;&gt;&lt;tt&gt;QPolygon&lt;/tt&gt;&lt;/a&gt; class provides a vector of points using integer precision.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QPolygon.html#QPolygon()&quot;&gt;&lt;tt&gt;QPolygon&lt;/tt&gt;&lt;/a&gt; object is a QVector&amp;lt;&lt;a href=&quot;%2E%2E/core/QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;&amp;gt;. The easiest way to add points to a &lt;a href=&quot;QPolygon.html#QPolygon()&quot;&gt;&lt;tt&gt;QPolygon&lt;/tt&gt;&lt;/a&gt; is to use QVector's streaming operator, as illustrated below:&lt;/p&gt;
&lt;pre&gt;            QPolygon polygon;
            polygon &amp;lt;&amp;lt; QPoint(10, 20) &amp;lt;&amp;lt; QPoint(20, 30);&lt;/pre&gt;
&lt;p&gt;In addition to the functions provided by QVector, &lt;a href=&quot;QPolygon.html#QPolygon()&quot;&gt;&lt;tt&gt;QPolygon&lt;/tt&gt;&lt;/a&gt; provides some point-specific functions.&lt;/p&gt;
&lt;p&gt;Each point in a polygon can be retrieved by passing its index to the point() function. To populate the polygon, &lt;a href=&quot;QPolygon.html#QPolygon()&quot;&gt;&lt;tt&gt;QPolygon&lt;/tt&gt;&lt;/a&gt; provides the setPoint() function to set the point at a given index, the setPoints() function to set all the points in the polygon (resizing it to the given number of points), and the putPoints() function which copies a number of given points into the polygon from a specified index (resizing the polygon if necessary).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QPolygon.html#QPolygon()&quot;&gt;&lt;tt&gt;QPolygon&lt;/tt&gt;&lt;/a&gt; provides the &lt;a href=&quot;QPolygon.html#boundingRect()&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPolygon.html#translate(int, int)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; functions for geometry functions. Use the QMatrix::map() function for more general transformations of QPolygons.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPolygon.html#QPolygon()&quot;&gt;&lt;tt&gt;QPolygon&lt;/tt&gt;&lt;/a&gt; class is implicitly shared&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QVector&lt;/tt&gt;
@see &lt;a href=&quot;QPolygonF.html&quot;&gt;&lt;tt&gt;QPolygonF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLine.html&quot;&gt;&lt;tt&gt;QLine&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QPolygon(com.trolltech.qt.core.QRect r, boolean closed)" doc="/**
&lt;p&gt;Constructs a polygon from the given &lt;tt&gt;r&lt;/tt&gt;. If &lt;tt&gt;closed&lt;/tt&gt; is false, the polygon just contains the four points of the rectangle ordered clockwise, otherwise the polygon's fifth point is set to &lt;tt&gt;r&lt;/tt&gt;.topLeft().&lt;/p&gt;
&lt;p&gt;Note that the bottom-right corner of the rectangle is located at (rectangle.x() + rectangle.width(), rectangle.y() + rectangle.height()).&lt;/p&gt;

@see &lt;tt&gt;setPoints&lt;/tt&gt; */"/>
    <method name="public QPolygon(com.trolltech.qt.core.QRect r)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPolygon.html#QPolygon()&quot;&gt;&lt;tt&gt;QPolygon&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, false). */"/>
    <method name="public QPolygon(int size)" doc="/**
&lt;p&gt;Constructs a polygon of the given &lt;tt&gt;size&lt;/tt&gt;. Creates an empty polygon if &lt;tt&gt;size&lt;/tt&gt; == 0.&lt;/p&gt;

@see &lt;tt&gt;QVector::isEmpty&lt;/tt&gt; */"/>
    <method name="public QPolygon(java.util.List&lt;com.trolltech.qt.core.QPoint&gt; v)" doc="/**
&lt;p&gt;Constructs a polygon containing the specified &lt;tt&gt;v&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;setPoints&lt;/tt&gt; */"/>
    <method name="public QPolygon(com.trolltech.qt.gui.QPolygon a)" doc="/**
&lt;p&gt;Constructs a copy of the given &lt;tt&gt;a&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;setPoints&lt;/tt&gt; */"/>
    <method name="public QPolygon()" doc="/**
&lt;p&gt;Constructs a polygon with no points.&lt;/p&gt;

@see &lt;tt&gt;QVector::isEmpty&lt;/tt&gt; */"/>
    <method name="public final void append(com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;Inserts &lt;tt&gt;t&lt;/tt&gt; at the end of the vector.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QVector&amp;lt;QString&amp;gt; vector(0);
    vector.append(&amp;quot;one&amp;quot;);
    vector.append(&amp;quot;two&amp;quot;);
    vector.append(&amp;quot;three&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; vector: [&amp;quot;one&amp;quot;, &amp;quot;two&amp;quot;, three&amp;quot;]&lt;/pre&gt;
&lt;p&gt;This is the same as calling resize(&lt;a href=&quot;QPolygon.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; + 1) and assigning &lt;tt&gt;t&lt;/tt&gt; to the new last element in the vector.&lt;/p&gt;
&lt;p&gt;This operation is relatively fast, because QVector typically allocates more memory than necessary, so it can grow without reallocating the entire vector each time.&lt;/p&gt;

@see &lt;tt&gt;operator&amp;lt;&amp;lt;&lt;/tt&gt;
@see &lt;a href=&quot;QPolygon.html#prepend(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;prepend&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;insert&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint at(int i)" doc="/**
&lt;p&gt;Returns the item at index position &lt;tt&gt;i&lt;/tt&gt; in the vector.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;i&lt;/tt&gt; must be a valid index position in the vector (i.e&amp;#x2e;, 0 &amp;lt;= &lt;tt&gt;i&lt;/tt&gt; &amp;lt; &lt;a href=&quot;QPolygon.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#value(int)&quot;&gt;&lt;tt&gt;value&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;operator[]&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect boundingRect()" doc="/**
&lt;p&gt;Returns the bounding rectangle of the polygon, or &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;(0, 0, 0, 0) if the polygon is empty.&lt;/p&gt;

@see &lt;tt&gt;QVector::isEmpty&lt;/tt&gt; */"/>
    <method name="public final int capacity()" doc="/**
&lt;p&gt;Returns the maximum number of items that can be stored in the vector without forcing a reallocation.&lt;/p&gt;
&lt;p&gt;The sole purpose of this function is to provide a means of fine tuning QVector's memory usage. In general, you will rarely ever need to call this function. If you want to know how many items are in the vector, call &lt;a href=&quot;QPolygon.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#reserve(int)&quot;&gt;&lt;tt&gt;reserve&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#squeeze()&quot;&gt;&lt;tt&gt;squeeze&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clear()" doc="/**
&lt;p&gt;Removes all the elements from the vector.&lt;/p&gt;
&lt;p&gt;Same as resize(0).&lt;/p&gt;
 */"/>
    <method name="public final boolean contains(com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;Returns true if the vector contains an occurrence of &lt;tt&gt;t&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
&lt;p&gt;This function requires the value type to have an implementation of &lt;tt&gt;operator==()&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#indexOf(com.trolltech.qt.core.QPoint, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#count()&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean containsPoint(com.trolltech.qt.core.QPoint pt, com.trolltech.qt.core.Qt.FillRule fillRule)" doc="/**
&lt;p&gt;Returns true if the given &lt;tt&gt;pt&lt;/tt&gt; is inside the polygon according to the specified &lt;tt&gt;fillRule&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final int count(com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;Returns the number of occurrences of &lt;tt&gt;t&lt;/tt&gt; in the vector.&lt;/p&gt;
&lt;p&gt;This function requires the value type to have an implementation of &lt;tt&gt;operator==()&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#contains(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#indexOf(com.trolltech.qt.core.QPoint, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int count()" doc="/**
&lt;p&gt;Same as &lt;a href=&quot;QPolygon.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean empty()" doc="/**
&lt;p&gt;This function is provided for STL compatibility. It is equivalent to &lt;a href=&quot;QPolygon.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt;, returning true if the vector is empty; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QPoint&gt; fill(com.trolltech.qt.core.QPoint t, int size)" doc="/**
&lt;p&gt;Assigns &lt;tt&gt;t&lt;/tt&gt; to all items in the vector. If &lt;tt&gt;size&lt;/tt&gt; is different from -1 (the default), the vector is resized to size &lt;tt&gt;size&lt;/tt&gt; beforehand.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QVector&amp;lt;QString&amp;gt; vector(3);
    vector.fill(&amp;quot;Yes&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; vector: [&amp;quot;Yes&amp;quot;, &amp;quot;Yes&amp;quot;, &amp;quot;Yes&amp;quot;]

    vector.fill(&amp;quot;oh&amp;quot;, 5);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; vector: [&amp;quot;oh&amp;quot;, &amp;quot;oh&amp;quot;, &amp;quot;oh&amp;quot;, &amp;quot;oh&amp;quot;, &amp;quot;oh&amp;quot;]&lt;/pre&gt;

@see &lt;a href=&quot;QPolygon.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QPoint&gt; fill(com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPolygon.html#fill(com.trolltech.qt.core.QPoint, int)&quot;&gt;fill&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;t&lt;/tt&gt;, -1). */"/>
    <method name="public final com.trolltech.qt.core.QPoint first()"/>
    <method name="public final int indexOf(com.trolltech.qt.core.QPoint t, int from)" doc="/**
&lt;p&gt;Returns the index position of the first occurrence of &lt;tt&gt;t&lt;/tt&gt; in the vector, searching forward from index position &lt;tt&gt;from&lt;/tt&gt;. Returns -1 if no item matched.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QVector&amp;lt;QString&amp;gt; vector;
    vector &amp;lt;&amp;lt; &amp;quot;A&amp;quot; &amp;lt;&amp;lt; &amp;quot;B&amp;quot; &amp;lt;&amp;lt; &amp;quot;C&amp;quot; &amp;lt;&amp;lt; &amp;quot;B&amp;quot; &amp;lt;&amp;lt; &amp;quot;A&amp;quot;;
    vector.indexOf(&amp;quot;B&amp;quot;);            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 1
    vector.indexOf(&amp;quot;B&amp;quot;, 1);         &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 1
    vector.indexOf(&amp;quot;B&amp;quot;, 2);         &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 3
    vector.indexOf(&amp;quot;X&amp;quot;);            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns -1&lt;/pre&gt;
&lt;p&gt;This function requires the value type to have an implementation of &lt;tt&gt;operator==()&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#lastIndexOf(com.trolltech.qt.core.QPoint, int)&quot;&gt;&lt;tt&gt;lastIndexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#contains(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int indexOf(com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPolygon.html#indexOf(com.trolltech.qt.core.QPoint, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;t&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.gui.QPolygon intersected(com.trolltech.qt.gui.QPolygon r)" doc="/**
&lt;p&gt;Returns a polygon which is the intersection of this polygon and &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean isEmpty()" doc="/**
&lt;p&gt;Returns true if the vector has size 0; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint last()"/>
    <method name="public final int lastIndexOf(com.trolltech.qt.core.QPoint t, int from)" doc="/**
&lt;p&gt;Returns the index position of the last occurrence of the value &lt;tt&gt;t&lt;/tt&gt; in the vector, searching backward from index position &lt;tt&gt;from&lt;/tt&gt;. If &lt;tt&gt;from&lt;/tt&gt; is -1 (the default), the search starts at the last item. Returns -1 if no item matched.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QList&amp;lt;QString&amp;gt; vector;
    vector &amp;lt;&amp;lt; &amp;quot;A&amp;quot; &amp;lt;&amp;lt; &amp;quot;B&amp;quot; &amp;lt;&amp;lt; &amp;quot;C&amp;quot; &amp;lt;&amp;lt; &amp;quot;B&amp;quot; &amp;lt;&amp;lt; &amp;quot;A&amp;quot;;
    vector.lastIndexOf(&amp;quot;B&amp;quot;);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 3
    vector.lastIndexOf(&amp;quot;B&amp;quot;, 3);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 3
    vector.lastIndexOf(&amp;quot;B&amp;quot;, 2);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 1
    vector.lastIndexOf(&amp;quot;X&amp;quot;);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns -1&lt;/pre&gt;
&lt;p&gt;This function requires the value type to have an implementation of &lt;tt&gt;operator==()&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#indexOf(com.trolltech.qt.core.QPoint, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int lastIndexOf(com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPolygon.html#lastIndexOf(com.trolltech.qt.core.QPoint, int)&quot;&gt;&lt;tt&gt;lastIndexOf&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;t&lt;/tt&gt;, -1). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QPoint&gt; mid(int pos, int length)" doc="/**
&lt;p&gt;Returns a vector whose elements are copied from this vector, starting at position &lt;tt&gt;pos&lt;/tt&gt;. If &lt;tt&gt;length&lt;/tt&gt; is -1 (the default), all elements after &lt;tt&gt;pos&lt;/tt&gt; are copied; otherwise &lt;tt&gt;length&lt;/tt&gt; elements (or all remaining elements if there are less than &lt;tt&gt;length&lt;/tt&gt; elements) are copied.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QPoint&gt; mid(int pos)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPolygon.html#mid(int, int)&quot;&gt;mid&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;pos&lt;/tt&gt;, -1). */"/>
    <method name="public final void pop_back()" doc="/**
&lt;p&gt;This function is provided for STL compatibility. It is equivalent to erase(end() - 1).&lt;/p&gt;
 */"/>
    <method name="public final void pop_front()" doc="/**
&lt;p&gt;This function is provided for STL compatibility. It is equivalent to erase(begin()).&lt;/p&gt;
 */"/>
    <method name="public final void prepend(com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;Inserts &lt;tt&gt;t&lt;/tt&gt; at the beginning of the vector.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QVector&amp;lt;QString&amp;gt; vector;
    vector.prepend(&amp;quot;one&amp;quot;);
    vector.prepend(&amp;quot;two&amp;quot;);
    vector.prepend(&amp;quot;three&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; vector: [&amp;quot;three&amp;quot;, &amp;quot;two&amp;quot;, &amp;quot;one&amp;quot;]&lt;/pre&gt;
&lt;p&gt;This is the same as vector.insert(0, &lt;tt&gt;t&lt;/tt&gt;).&lt;/p&gt;
&lt;p&gt;For large vectors, this operation can be slow (linear time&lt;/tt&gt;), because it requires moving all the items in the vector by one position further in memory. If you want a container class that provides a fast &lt;a href=&quot;QPolygon.html#prepend(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;prepend&lt;/tt&gt;&lt;/a&gt; function, use QList or QLinkedList instead.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#append(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;append&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;insert&lt;/tt&gt; */"/>
    <method name="public final void push_back(com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;This function is provided for STL compatibility. It is equivalent to append(&lt;tt&gt;t&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void push_front(com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;This function is provided for STL compatibility. It is equivalent to prepend(&lt;tt&gt;t&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void remove(int i)" doc="/**
&lt;p&gt;Removes the element at index position &lt;tt&gt;i&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;insert&lt;/tt&gt;
@see &lt;a href=&quot;QPolygon.html#replace(int, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;replace&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#fill(com.trolltech.qt.core.QPoint, int)&quot;&gt;&lt;tt&gt;fill&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void remove(int i, int n)" doc="/**
&lt;p&gt;Removes &lt;tt&gt;n&lt;/tt&gt; elements from the middle of the vector, starting at index position &lt;tt&gt;i&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;insert&lt;/tt&gt;
@see &lt;a href=&quot;QPolygon.html#replace(int, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;replace&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#fill(com.trolltech.qt.core.QPoint, int)&quot;&gt;&lt;tt&gt;fill&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void replace(int i, com.trolltech.qt.core.QPoint t)" doc="/**
&lt;p&gt;Replaces the item at index position &lt;tt&gt;i&lt;/tt&gt; with &lt;tt&gt;t&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;i&lt;/tt&gt; must be a valid index position in the vector (i.e&amp;#x2e;, 0 &amp;lt;= &lt;tt&gt;i&lt;/tt&gt; &amp;lt; &lt;a href=&quot;QPolygon.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;tt&gt;operator[]&lt;/tt&gt;
@see &lt;a href=&quot;QPolygon.html#remove(int, int)&quot;&gt;&lt;tt&gt;remove&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void reserve(int size)" doc="/**
&lt;p&gt;Attempts to allocate memory for at least &lt;tt&gt;size&lt;/tt&gt; elements. If you know in advance how large the vector will be, you can call this function, and if you call &lt;a href=&quot;QPolygon.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; often you are likely to get better performance. If &lt;tt&gt;size&lt;/tt&gt; is an underestimate, the worst that will happen is that the QVector will be a bit slower.&lt;/p&gt;
&lt;p&gt;The sole purpose of this function is to provide a means of fine tuning QVector's memory usage. In general, you will rarely ever need to call this function. If you want to change the size of the vector, call &lt;a href=&quot;QPolygon.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#squeeze()&quot;&gt;&lt;tt&gt;squeeze&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#capacity()&quot;&gt;&lt;tt&gt;capacity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void resize(int size)" doc="/**
&lt;p&gt;Sets the size of the vector to &lt;tt&gt;size&lt;/tt&gt;. If &lt;tt&gt;size&lt;/tt&gt; is greater than the current size, elements are added to the end; the new elements are initialized with a default-constructed value&lt;/tt&gt;. If &lt;tt&gt;size&lt;/tt&gt; is less than the current size, elements are removed from the end.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSharable(boolean sharable)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final int size()" doc="/**
&lt;p&gt;Returns the number of items in the vector.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void squeeze()" doc="/**
&lt;p&gt;Releases any memory not required to store the items.&lt;/p&gt;
&lt;p&gt;The sole purpose of this function is to provide a means of fine tuning QVector's memory usage. In general, you will rarely ever need to call this function.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#reserve(int)&quot;&gt;&lt;tt&gt;reserve&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#capacity()&quot;&gt;&lt;tt&gt;capacity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPolygon subtracted(com.trolltech.qt.gui.QPolygon r)" doc="/**
&lt;p&gt;Returns a polygon which is &lt;tt&gt;r&lt;/tt&gt; subtracted from this polygon.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QPoint&gt; toList()" doc="/**
&lt;p&gt;Returns a QList object with the data contained in this QVector.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QVector&amp;lt;double&amp;gt; vect;
    vect &amp;lt;&amp;lt; &amp;quot;red&amp;quot; &amp;lt;&amp;lt; &amp;quot;green&amp;quot; &amp;lt;&amp;lt; &amp;quot;blue&amp;quot; &amp;lt;&amp;lt; &amp;quot;black&amp;quot;;

    QList&amp;lt;double&amp;gt; list = vect.toList();
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; list: [&amp;quot;red&amp;quot;, &amp;quot;green&amp;quot;, &amp;quot;blue&amp;quot;, &amp;quot;black&amp;quot;]&lt;/pre&gt;

@see &lt;a href=&quot;QPolygon.html#fromList(java.util.List&lt;com.trolltech.qt.core.QPoint&gt;)&quot;&gt;&lt;tt&gt;fromList&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QList::fromVector&lt;/tt&gt; */"/>
    <method name="public final void translate(com.trolltech.qt.core.QPoint offset)" doc="/**
&lt;p&gt;Translates all points in the polygon by the given &lt;tt&gt;offset&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void translate(int dx, int dy)" doc="/**
&lt;p&gt;Translates all points in the polygon by (&lt;tt&gt;dx&lt;/tt&gt;, &lt;tt&gt;dy&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPolygon united(com.trolltech.qt.gui.QPolygon r)" doc="/**
&lt;p&gt;Returns a polygon which is the union of this polygon and &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#intersected(com.trolltech.qt.gui.QPolygon)&quot;&gt;&lt;tt&gt;intersected&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html#subtracted(com.trolltech.qt.gui.QPolygon)&quot;&gt;&lt;tt&gt;subtracted&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint value(int i, com.trolltech.qt.core.QPoint defaultValue)" doc="/**
&lt;p&gt;If the index &lt;tt&gt;i&lt;/tt&gt; is out of bounds, the function returns &lt;tt&gt;defaultValue&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QPoint value(int i)" doc="/**
&lt;p&gt;Returns the value at index position &lt;tt&gt;i&lt;/tt&gt; in the vector.&lt;/p&gt;
&lt;p&gt;If the index &lt;tt&gt;i&lt;/tt&gt; is out of bounds, the function returns a default-constructed value&lt;/tt&gt;. If you are certain that &lt;tt&gt;i&lt;/tt&gt; is within bounds, you can use &lt;a href=&quot;QPolygon.html#at(int)&quot;&gt;&lt;tt&gt;at&lt;/tt&gt;&lt;/a&gt; instead, which is slightly faster.&lt;/p&gt;

@see &lt;a href=&quot;QPolygon.html#at(int)&quot;&gt;&lt;tt&gt;at&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;operator[]&lt;/tt&gt; */"/>
    <method name="public native static java.util.List&lt;com.trolltech.qt.core.QPoint&gt; fromList(java.util.List&lt;com.trolltech.qt.core.QPoint&gt; list)" doc="/**
&lt;p&gt;Returns a QVector object with the data contained in &lt;tt&gt;list&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QStringList list;
    list &amp;lt;&amp;lt; &amp;quot;Sven&amp;quot; &amp;lt;&amp;lt; &amp;quot;Kim&amp;quot; &amp;lt;&amp;lt; &amp;quot;Ola&amp;quot;;

    QVector&amp;lt;QString&amp;gt; vect = QVector&amp;lt;QString&amp;gt;::fromList(list);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; vect: [&amp;quot;Sven&amp;quot;, &amp;quot;Kim&amp;quot;, &amp;quot;Ola&amp;quot;]&lt;/pre&gt;

@see &lt;a href=&quot;QPolygon.html#toList()&quot;&gt;&lt;tt&gt;toList&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QList::toVector&lt;/tt&gt; */"/>
</class>
