Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2148

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QPainterPath" doc="/**
&lt;p&gt;The &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; class provides a container for painting operations, enabling graphical shapes to be constructed and reused.&lt;/p&gt;
&lt;p&gt;A painter path is an object composed of a number of graphical building blocks, such as rectangles, ellipses, lines, and curves. Building blocks can be joined in closed subpaths, for example as a rectangle or an ellipse. A closed path has coinciding start and end points. Or they can exist independently as unclosed subpaths, such as lines and curves.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; object can be used for filling, outlining, and clipping. To generate fillable outlines for a given painter path, use the &lt;a href=&quot;QPainterPathStroker.html&quot;&gt;&lt;tt&gt;QPainterPathStroker&lt;/tt&gt;&lt;/a&gt; class. The main advantage of painter paths over normal drawing operations is that complex shapes only need to be created once; then they can be drawn many times using only calls to the QPainter::drawPath() function.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; provides a collection of functions that can be used to obtain information about the path and its elements. In addition it is possible to reverse the order of the elements using the &lt;a href=&quot;QPainterPath.html#toReversed()&quot;&gt;&lt;tt&gt;toReversed&lt;/tt&gt;&lt;/a&gt; function. There are also several functions to convert this painter path object into a polygon representation.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;#composing-a-qpainterpath&quot;&gt;Composing a QPainterPath&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#qpainterpath-information&quot;&gt;QPainterPath Information&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#qpainterpath-conversion&quot;&gt;QPainterPath Conversion&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#examples&quot;&gt;Examples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a name=&quot;composing-a-qpainterpath&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Composing a QPainterPath&lt;/h3&gt;
&lt;p&gt;A &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; object can be constructed as an empty path, with a given start point, or as a copy of another &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; object. Once created, lines and curves can be added to the path using the &lt;a href=&quot;QPainterPath.html#lineTo(double, double)&quot;&gt;&lt;tt&gt;lineTo&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#arcTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;arcTo&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#cubicTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;cubicTo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#quadTo(com.trolltech.qt.core.QPointF, com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;quadTo&lt;/tt&gt;&lt;/a&gt; functions. The lines and curves stretch from the &lt;a href=&quot;QPainterPath.html#currentPosition()&quot;&gt;&lt;tt&gt;currentPosition&lt;/tt&gt;&lt;/a&gt; to the position passed as argument.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainterPath.html#currentPosition()&quot;&gt;&lt;tt&gt;currentPosition&lt;/tt&gt;&lt;/a&gt; of the &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; object is always the end position of the last subpath that was added (or the initial start point). Use the &lt;a href=&quot;QPainterPath.html#moveTo(double, double)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt; function to move the &lt;a href=&quot;QPainterPath.html#currentPosition()&quot;&gt;&lt;tt&gt;currentPosition&lt;/tt&gt;&lt;/a&gt; without adding a component. The &lt;a href=&quot;QPainterPath.html#moveTo(double, double)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt; function implicitly starts a new subpath, and closes the previous one. Another way of starting a new subpath is to call the &lt;a href=&quot;QPainterPath.html#closeSubpath()&quot;&gt;&lt;tt&gt;closeSubpath&lt;/tt&gt;&lt;/a&gt; function which closes the current path by adding a line from the &lt;a href=&quot;QPainterPath.html#currentPosition()&quot;&gt;&lt;tt&gt;currentPosition&lt;/tt&gt;&lt;/a&gt; back to the path's start position. Note that the new path will have (0, 0) as its initial &lt;a href=&quot;QPainterPath.html#currentPosition()&quot;&gt;&lt;tt&gt;currentPosition&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; class also provides several convenience functions to add closed subpaths to a painter path: &lt;a href=&quot;QPainterPath.html#addEllipse(double, double, double, double)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#addPath(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#addRect(com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#addRegion(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;addRegion&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#addText(double, double, com.trolltech.qt.gui.QFont, java.lang.String)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QPainterPath.html#addPolygon(com.trolltech.qt.gui.QPolygonF)&quot;&gt;&lt;tt&gt;addPolygon&lt;/tt&gt;&lt;/a&gt; function adds an &lt;i&gt;unclosed&lt;/i&gt; subpath. In fact, these functions are all collections of &lt;a href=&quot;QPainterPath.html#moveTo(double, double)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#lineTo(double, double)&quot;&gt;&lt;tt&gt;lineTo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#cubicTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;cubicTo&lt;/tt&gt;&lt;/a&gt; operations.&lt;/p&gt;
&lt;p&gt;In addition, a path can be added to the current path using the &lt;a href=&quot;QPainterPath.html#connectPath(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;connectPath&lt;/tt&gt;&lt;/a&gt; function. But note that this function will connect the last element of the current path to the first element of given one by adding a line.&lt;/p&gt;
&lt;p&gt;Below is a code snippet that shows how a &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; object can be used:&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainterpath-construction.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QPainterPath path;
    path.addRect(20, 20, 60, 60);

    path.moveTo(0, 0);
    path.cubicTo(99, 0,  50, 50,  99, 99);
    path.cubicTo(0, 99,  50, 50,  0, 0);

    QPainter painter(this);
    painter.fillRect(0, 0, 100, 100, Qt::white);
    painter.setPen(QPen(QColor(79, 106, 25), 1, Qt::SolidLine,
                        Qt::FlatCap, Qt::MiterJoin));
    painter.setBrush(QColor(122, 163, 39));

    painter.drawPath(path);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The painter path is initially empty when constructed. We first add a rectangle, which is a closed subpath. Then we add two bezier curves which together form a closed subpath even though they are not closed individually. Finally we draw the entire path. The path is filled using the default fill rule, Qt::OddEvenFill. Qt provides two methods for filling paths:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qt-fillrule-oddeven.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qt-fillrule-winding.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Qt::OddEvenFill&lt;/th&gt;&lt;th&gt;Qt::WindingFill&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;See the Qt::FillRule documentation for the definition of the rules. A painter path's currently set fill rule can be retrieved using the &lt;a href=&quot;QPainterPath.html#fillRule()&quot;&gt;&lt;tt&gt;fillRule&lt;/tt&gt;&lt;/a&gt; function, and altered using the &lt;a href=&quot;QPainterPath.html#setFillRule(com.trolltech.qt.core.Qt.FillRule)&quot;&gt;&lt;tt&gt;setFillRule&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;a name=&quot;qpainterpath-information&quot;&gt;&lt;/a&gt;
&lt;h3&gt;QPainterPath Information&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; class provides a collection of functions that returns information about the path and its elements.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainterPath.html#currentPosition()&quot;&gt;&lt;tt&gt;currentPosition&lt;/tt&gt;&lt;/a&gt; function returns the end point of the last subpath that was added (or the initial start point). The &lt;a href=&quot;QPainterPath.html#elementAt(int)&quot;&gt;&lt;tt&gt;elementAt&lt;/tt&gt;&lt;/a&gt; function can be used to retrieve the various subpath elements, the &lt;i&gt;number&lt;/i&gt; of elements can be retrieved using the &lt;a href=&quot;QPainterPath.html#elementCount()&quot;&gt;&lt;tt&gt;elementCount&lt;/tt&gt;&lt;/a&gt; function, and the &lt;a href=&quot;QPainterPath.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; function tells whether this &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; object contains any elements at all.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainterPath.html#controlPointRect()&quot;&gt;&lt;tt&gt;controlPointRect&lt;/tt&gt;&lt;/a&gt; function returns the rectangle containing all the points and control points in this path. This function is significantly faster to compute than the exact &lt;a href=&quot;QPainterPath.html#boundingRect()&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; which returns the bounding rectangle of this painter path with floating point precision.&lt;/p&gt;
&lt;p&gt;Finally, &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; provides the &lt;a href=&quot;QPainterPath.html#contains(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt; function which can be used to determine whether a given point or rectangle is inside the path, and the &lt;a href=&quot;QPainterPath.html#intersects(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;intersects&lt;/tt&gt;&lt;/a&gt; function which determines if any of the points inside a given rectangle also are inside this path.&lt;/p&gt;
&lt;a name=&quot;qpainterpath-conversion&quot;&gt;&lt;/a&gt;
&lt;h3&gt;QPainterPath Conversion&lt;/h3&gt;
&lt;p&gt;For compatibility reasons, it might be required to simplify the representation of a painter path: &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; provides the &lt;a href=&quot;QPainterPath.html#toFillPolygon(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygon&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#toFillPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygons&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#toSubpathPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toSubpathPolygons&lt;/tt&gt;&lt;/a&gt; functions which convert the painter path into a polygon. The &lt;a href=&quot;QPainterPath.html#toFillPolygon(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygon&lt;/tt&gt;&lt;/a&gt; returns the painter path as one single polygon, while the two latter functions return a list of polygons.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainterPath.html#toFillPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygons&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#toSubpathPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toSubpathPolygons&lt;/tt&gt;&lt;/a&gt; functions are provided because it is usually faster to draw several small polygons than to draw one large polygon, even though the total number of points drawn is the same. The difference between the two is the &lt;i&gt;number&lt;/i&gt; of polygons they return: The &lt;a href=&quot;QPainterPath.html#toSubpathPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toSubpathPolygons&lt;/tt&gt;&lt;/a&gt; creates one polygon for each subpath regardless of intersecting subpaths (i.e&amp;#x2e; overlapping bounding rectangles), while the &lt;a href=&quot;QPainterPath.html#toFillPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygons&lt;/tt&gt;&lt;/a&gt; functions creates only one polygon for overlapping subpaths.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainterPath.html#toFillPolygon(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygon&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#toFillPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygons&lt;/tt&gt;&lt;/a&gt; functions first convert all the subpaths to polygons, then uses a rewinding technique to make sure that overlapping subpaths can be filled using the correct fill rule. Note that rewinding inserts additional lines in the polygon so the outline of the fill polygon does not match the outline of the path.&lt;/p&gt;
&lt;a name=&quot;examples&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Examples&lt;/h3&gt;
&lt;p&gt;Qt provides the Painter Paths Example&lt;/tt&gt; and the Vector Deformation Demo&lt;/tt&gt; which are located in Qt's example and demo directories respectively.&lt;/p&gt;
&lt;p&gt;The Painter Paths Example&lt;/tt&gt; shows how painter paths can be used to build complex shapes for rendering and lets the user experiment with the filling and stroking. The Vector Deformation Demo&lt;/tt&gt; shows how to use &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; to draw text.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainterpath-example.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainterpath-demo.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Painter Paths Example&lt;/tt&gt;&lt;/th&gt;&lt;th&gt;Vector Deformation Demo&lt;/tt&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html&quot;&gt;&lt;tt&gt;QPainterPathStroker&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRegion.html&quot;&gt;&lt;tt&gt;QRegion&lt;/tt&gt;&lt;/a&gt;
@see Painter Paths Example&lt;/tt&gt; */">
    <method name="public QPainterPath(com.trolltech.qt.gui.QPainterPath other)" doc="/**
&lt;p&gt;Creates a &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; object that is a copy of the given &lt;tt&gt;other&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;operator=&lt;/tt&gt; */"/>
    <method name="public QPainterPath(com.trolltech.qt.core.QPointF startPoint)" doc="/**
&lt;p&gt;Creates a &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; object with the given &lt;tt&gt;startPoint&lt;/tt&gt; as its current position.&lt;/p&gt;
 */"/>
    <method name="public QPainterPath()" doc="/**
&lt;p&gt;Constructs an empty &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
 */"/>
    <method name="public final void addEllipse(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Creates an ellipse within the the specified &lt;tt&gt;rect&lt;/tt&gt; and adds it to the painter path as a closed subpath.&lt;/p&gt;
&lt;p&gt;The ellipse is composed of a clockwise curve, starting and finishing at zero degrees (the 3 o'clock position).&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainterpath-addellipse.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QLinearGradient myGradient;
    QPen myPen;
    QRectF boundingRectangle;

    QPainterPath myPath;
    myPath.addEllipse(boundingRectangle);

    QPainter painter(this);
    painter.setBrush(myGradient);
    painter.setPen(myPen);
    painter.drawPath(myPath);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#arcTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;arcTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPainter::drawEllipse&lt;/tt&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void addEllipse(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Creates an ellipse within the bounding rectangle defined by its top-left corner at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;), &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;, and adds it to the painter path as a closed subpath.&lt;/p&gt;
 */"/>
    <method name="public final void addPath(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;path&lt;/tt&gt; to &lt;i&gt;this&lt;/i&gt; path as a closed subpath.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#connectPath(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;connectPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void addPolygon(com.trolltech.qt.gui.QPolygonF polygon)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;polygon&lt;/tt&gt; to the path as an (unclosed) subpath.&lt;/p&gt;
&lt;p&gt;Note that the current position after the polygon has been added, is the last point in &lt;tt&gt;polygon&lt;/tt&gt;. To draw a line back to the first point, use the &lt;a href=&quot;QPainterPath.html#closeSubpath()&quot;&gt;&lt;tt&gt;closeSubpath&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainterpath-addpolygon.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QLinearGradient myGradient;
    QPen myPen;
    QPolygonF myPolygon;

    QPainterPath myPath;
    myPath.addPolygon(myPolygon);

    QPainter painter(this);
    painter.setBrush(myGradient);
    painter.setPen(myPen);
    painter.drawPath(myPath);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#lineTo(double, double)&quot;&gt;&lt;tt&gt;lineTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void addRect(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Adds a rectangle at position (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;), with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;, as a closed subpath.&lt;/p&gt;
 */"/>
    <method name="public final void addRect(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;rect&lt;/tt&gt; to this path as a closed subpath.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;rect&lt;/tt&gt; is added as a clockwise set of lines. The painter path's current position after the &lt;tt&gt;rect&lt;/tt&gt; has been added is at the top-left corner of the rectangle.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainterpath-addrectangle.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QLinearGradient myGradient;
    QPen myPen;
    QRectF myRectangle;

    QPainterPath myPath;
    myPath.addRect(myRectangle);

    QPainter painter(this);
    painter.setBrush(myGradient);
    painter.setPen(myPen);
    painter.drawPath(myPath);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#addRegion(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;addRegion&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#lineTo(double, double)&quot;&gt;&lt;tt&gt;lineTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void addRegion(com.trolltech.qt.gui.QRegion region)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;region&lt;/tt&gt; to the path by adding each rectangle in the region as a separate closed subpath.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#addRect(com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void addRoundRect(com.trolltech.qt.core.QRectF rect, int roundness)" doc="/**
&lt;p&gt;Adds a rounded rectangle, &lt;tt&gt;rect&lt;/tt&gt;, to the path.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;roundness&lt;/tt&gt; argument specifies uniform roundness for the rectangle. Vertical and horizontal roundness factors will be adjusted accordingly to act uniformly around both axes. Use this method if you want a rectangle equally rounded across both the X and Y axis.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#addRoundRect(double, double, double, double, int, int)&quot;&gt;&lt;tt&gt;addRoundRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addRoundRect(com.trolltech.qt.core.QRectF rect, int xRnd, int yRnd)" doc="/**
&lt;p&gt;Adds a rectangle &lt;tt&gt;rect&lt;/tt&gt; with rounded corners to the path.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;xRnd&lt;/tt&gt; and &lt;tt&gt;yRnd&lt;/tt&gt; arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.&lt;/p&gt;
&lt;p&gt;A filled rectangle has a size of r.size(). A stroked rectangle has a size of r.size() plus the pen width.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#addRect(com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPen.html&quot;&gt;&lt;tt&gt;QPen&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addRoundRect(double x, double y, double w, double h, int roundness)" doc="/**
&lt;p&gt;Adds a rounded rectangle to the path, defined by the coordinates &lt;tt&gt;x&lt;/tt&gt; and &lt;tt&gt;y&lt;/tt&gt; with the specified &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;roundness&lt;/tt&gt; argument specifies uniform roundness for the rectangle. Vertical and horizontal roundness factors will be adjusted accordingly to act uniformly around both axes. Use this method if you want a rectangle equally rounded across both the X and Y axis.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#addRoundRect(double, double, double, double, int, int)&quot;&gt;&lt;tt&gt;addRoundRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addRoundRect(double x, double y, double w, double h, int xRnd, int yRnd)" doc="/**
&lt;p&gt;Adds a rectangle with rounded corners to the path. The rectangle is constructed from &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, and the width and height &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;xRnd&lt;/tt&gt; and &lt;tt&gt;yRnd&lt;/tt&gt; arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.&lt;/p&gt;
 */"/>
    <method name="public final void addText(com.trolltech.qt.core.QPointF point, com.trolltech.qt.gui.QFont f, java.lang.String text)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;text&lt;/tt&gt; to this path as a set of closed subpaths created from the &lt;tt&gt;f&lt;/tt&gt; supplied. The subpaths are positioned so that the left end of the text's baseline lies at the specified &lt;tt&gt;point&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainterpath-addtext.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QLinearGradient myGradient;
    QPen myPen;
    QFont myFont;
    QPointF baseline(x, y);

    QPainterPath myPath;
    myPath.addText(baseline, myFont, tr(&amp;quot;Qt&amp;quot;));

    QPainter painter(this);
    painter.setBrush(myGradient);
    painter.setPen(myPen);
    painter.drawPath(myPath);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;tt&gt;QPainter::drawText&lt;/tt&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void addText(double x, double y, com.trolltech.qt.gui.QFont f, java.lang.String text)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;text&lt;/tt&gt; to this path as a set of closed subpaths created from the &lt;tt&gt;f&lt;/tt&gt; supplied. The subpaths are positioned so that the left end of the text's baseline lies at the point specified by (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final double angleAtPercent(double t)" doc="/**
&lt;p&gt;Returns the angle perpendicular to the slope of the path at the percentage &lt;tt&gt;t&lt;/tt&gt;. The angle is constructed with the reference frame of the horizontal (x) axis and the left side of the path (left as defined by the direction of the path). The argument &lt;tt&gt;t&lt;/tt&gt; has to be between 0 and 1.&lt;/p&gt;
&lt;p&gt;Note that similarly to the other percent methods, the percentage measurment is not linear with regards to the length if curves are present in the path. When curves are present the percentage argument is mapped to the t parameter of the Bezier equations.&lt;/p&gt;
 */"/>
    <method name="public final void arcMoveTo(double x, double y, double w, double h, double angle)" doc="/**
&lt;p&gt;Creates a move to that lies on the arc that occupies the &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;) at &lt;tt&gt;angle&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void arcMoveTo(com.trolltech.qt.core.QRectF rect, double angle)" doc="/**
&lt;p&gt;Creates a move to that lies on the arc that occupies the given &lt;tt&gt;rect&lt;/tt&gt; at &lt;tt&gt;angle&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Angles are specified in degrees. Clockwise arcs can be specified using negative angles.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#moveTo(double, double)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#arcTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;arcTo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void arcTo(com.trolltech.qt.core.QRectF rect, double startAngle, double arcLength)" doc="/**
&lt;p&gt;Creates an arc that occupies the given &lt;tt&gt;rect&lt;/tt&gt;, beginning at the specified &lt;tt&gt;startAngle&lt;/tt&gt; and extending &lt;tt&gt;arcLength&lt;/tt&gt; degrees counter-clockwise.&lt;/p&gt;
&lt;p&gt;Angles are specified in degrees. Clockwise arcs can be specified using negative angles.&lt;/p&gt;
&lt;p&gt;Note that this function connects the starting point of the arc to the current position if they are not already connected. After the arc has been added, the current position is the last point in arc. To draw a line back to the first point, use the &lt;a href=&quot;QPainterPath.html#closeSubpath()&quot;&gt;&lt;tt&gt;closeSubpath&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainterpath-arcto.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QLinearGradient myGradient;
    QPen myPen;

    QPointF center, startPoint;

    QPainterPath myPath;
    myPath.moveTo(center);
    myPath.arcTo(boundingRect, startAngle,
                 sweepLength);

    QPainter painter(this);
    painter.setBrush(myGradient);
    painter.setPen(myPen);
    painter.drawPath(myPath);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#arcMoveTo(com.trolltech.qt.core.QRectF, double)&quot;&gt;&lt;tt&gt;arcMoveTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#addEllipse(double, double, double, double)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPainter::drawArc&lt;/tt&gt;
@see &lt;tt&gt;QPainter::drawPie&lt;/tt&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void arcTo(double x, double y, double w, double h, double startAngle, double arcLength)" doc="/**
&lt;p&gt;Creates an arc that occupies the rectangle &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;), beginning at the specified &lt;tt&gt;startAngle&lt;/tt&gt; and extending &lt;tt&gt;arcLength&lt;/tt&gt; degrees counter-clockwise.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRectF boundingRect()" doc="/**
&lt;p&gt;Returns the bounding rectangle of this painter path as a rectangle with floating point precision.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#controlPointRect()&quot;&gt;&lt;tt&gt;controlPointRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void closeSubpath()" doc="/**
&lt;p&gt;Closes the current subpath by drawing a line to the beginning of the subpath, automatically starting a new path. The current point of the new path is (0, 0).&lt;/p&gt;
&lt;p&gt;If the subpath does not contain any elements, this function does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#moveTo(double, double)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void connectPath(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Connects the given &lt;tt&gt;path&lt;/tt&gt; to &lt;i&gt;this&lt;/i&gt; path by adding a line from the last element of this path to the first element of the given path.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#addPath(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final boolean contains(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Returns true if the given &lt;tt&gt;rect&lt;/tt&gt; is inside the path, otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean contains(com.trolltech.qt.gui.QPainterPath p)" doc="/**
&lt;p&gt;Returns true if the given path &lt;tt&gt;p&lt;/tt&gt; is contained within the current path.&lt;/p&gt;
 */"/>
    <method name="public final boolean contains(com.trolltech.qt.core.QPointF pt)" doc="/**
&lt;p&gt;Returns true if the given &lt;tt&gt;pt&lt;/tt&gt; is inside the path, otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#intersects(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;intersects&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRectF controlPointRect()" doc="/**
&lt;p&gt;Returns the rectangle containing all the points and control points in this path.&lt;/p&gt;
&lt;p&gt;This function is significantly faster to compute than the exact &lt;a href=&quot;QPainterPath.html#boundingRect()&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;, and the returned rectangle is always a superset of the rectangle returned by &lt;a href=&quot;QPainterPath.html#boundingRect()&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#boundingRect()&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void cubicTo(com.trolltech.qt.core.QPointF ctrlPt1, com.trolltech.qt.core.QPointF ctrlPt2, com.trolltech.qt.core.QPointF endPt)" doc="/**
&lt;p&gt;Adds a cubic Bezier curve between the current position and the given &lt;tt&gt;endPt&lt;/tt&gt; using the control points specified by &lt;tt&gt;ctrlPt1&lt;/tt&gt;, and &lt;tt&gt;ctrlPt2&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;After the curve is added, the current position is updated to be at the end point of the curve.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qpainterpath-cubicto.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QLinearGradient myGradient;
    QPen myPen;

    QPainterPath myPath;
    myPath.cubicto(c1, c2, endPoint);

    QPainter painter(this);
    painter.setBrush(myGradient);
    painter.setPen(myPen);
    painter.drawPath(myPath);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#quadTo(com.trolltech.qt.core.QPointF, com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;quadTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void cubicTo(double ctrlPt1x, double ctrlPt1y, double ctrlPt2x, double ctrlPt2y, double endPtx, double endPty)" doc="/**
&lt;p&gt;Adds a cubic Bezier curve between the current position and the end point (&lt;tt&gt;endPtx&lt;/tt&gt;, &lt;tt&gt;endPty&lt;/tt&gt;) with control points specified by (&lt;tt&gt;ctrlPt1x&lt;/tt&gt;, &lt;tt&gt;ctrlPt1y&lt;/tt&gt;) and (&lt;tt&gt;ctrlPt2x&lt;/tt&gt;, &lt;tt&gt;ctrlPt2y&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QPointF currentPosition()" doc="/**
&lt;p&gt;Returns the current position of the path.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath_Element elementAt(int i)" doc="/**
&lt;p&gt;Returns the element at the given &lt;tt&gt;i&lt;/tt&gt; in the painter path.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#ElementType-enum&quot;&gt;&lt;tt&gt;ElementType&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#elementCount()&quot;&gt;&lt;tt&gt;elementCount&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int elementCount()" doc="/**
&lt;p&gt;Returns the number of path elements in the painter path.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#ElementType-enum&quot;&gt;&lt;tt&gt;ElementType&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#elementAt(int)&quot;&gt;&lt;tt&gt;elementAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.FillRule fillRule()" doc="/**
&lt;p&gt;Returns the painter path's currently set fill rule.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#setFillRule(com.trolltech.qt.core.Qt.FillRule)&quot;&gt;&lt;tt&gt;setFillRule&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath intersected(com.trolltech.qt.gui.QPainterPath r)" doc="/**
&lt;p&gt;Returns a path which is the intersection of this path and &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean intersects(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Returns true if any point in the given &lt;tt&gt;rect&lt;/tt&gt; intersects the path; otherwise returns false.&lt;/p&gt;
&lt;p&gt;There is an intersection if any of the lines making up the rectangle crosses a part of the path or if any part of the rectangle overlaps with any area enclosed by the path. This function respects the current &lt;a href=&quot;QPainterPath.html#fillRule()&quot;&gt;&lt;tt&gt;fillRule&lt;/tt&gt;&lt;/a&gt; to determine what is considered inside the path.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#contains(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean intersects(com.trolltech.qt.gui.QPainterPath p)" doc="/**
&lt;p&gt;Returns true if the current path intersects at any point the given path &lt;tt&gt;p&lt;/tt&gt;. The intersection will return false if the path is fully contained within this path (use &lt;a href=&quot;QPainterPath.html#contains(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt; to check for that case).&lt;/p&gt;
 */"/>
    <method name="public final boolean isEmpty()" doc="/**
&lt;p&gt;Returns true if there are no elements in this path, otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#elementCount()&quot;&gt;&lt;tt&gt;elementCount&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double length()" doc="/**
&lt;p&gt;Returns the length of the current path.&lt;/p&gt;
 */"/>
    <method name="public final void lineTo(com.trolltech.qt.core.QPointF p)" doc="/**
&lt;p&gt;Adds a straight line from the current position to the given &lt;tt&gt;p&lt;/tt&gt;. After the line is drawn, the current position is updated to be at the end point of the line.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#addPolygon(com.trolltech.qt.gui.QPolygonF)&quot;&gt;&lt;tt&gt;addPolygon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#addRect(com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void lineTo(double x, double y)" doc="/**
&lt;p&gt;Draws a line from the current position to the point (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void moveTo(com.trolltech.qt.core.QPointF p)" doc="/**
&lt;p&gt;Moves the current point to the given &lt;tt&gt;p&lt;/tt&gt;, implicitly starting a new subpath and closing the previous one.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#closeSubpath()&quot;&gt;&lt;tt&gt;closeSubpath&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void moveTo(double x, double y)" doc="/**
&lt;p&gt;Moves the current position to (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) and starts a new subpath, implicitly closing the previous path.&lt;/p&gt;
 */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final double percentAtLength(double t)" doc="/**
&lt;p&gt;Returns percentage of the whole path at the specified length &lt;tt&gt;t&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that similarly to other percent methods, the percentage measurment is not linear with regards to the length, if curves are present in the path. When curves are present the percentage argument is mapped to the t parameter of the Bezier equations.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QPointF pointAtPercent(double t)" doc="/**
&lt;p&gt;Returns the point at at the percentage &lt;tt&gt;t&lt;/tt&gt; of the current path. The argument &lt;tt&gt;t&lt;/tt&gt; has to be between 0 and 1.&lt;/p&gt;
&lt;p&gt;Note that similarly to other percent methods, the percentage measurment is not linear with regards to the length, if curves are present in the path. When curves are present the percentage argument is mapped to the t parameter of the Bezier equations.&lt;/p&gt;
 */"/>
    <method name="public final void quadTo(double ctrlPtx, double ctrlPty, double endPtx, double endPty)" doc="/**
&lt;p&gt;Adds a quadratic Bezier curve between the current point and the endpoint (&lt;tt&gt;endPtx&lt;/tt&gt;, &lt;tt&gt;endPty&lt;/tt&gt;) with the control point specified by (&lt;tt&gt;ctrlPtx&lt;/tt&gt;, &lt;tt&gt;ctrlPty&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void quadTo(com.trolltech.qt.core.QPointF ctrlPt, com.trolltech.qt.core.QPointF endPt)" doc="/**
&lt;p&gt;Adds a quadratic Bezier curve between the current position and the given &lt;tt&gt;endPt&lt;/tt&gt; with the control point specified by &lt;tt&gt;ctrlPt&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;After the curve is added, the current point is updated to be at the end point of the curve.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#cubicTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;cubicTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Composing a QPainterPath&lt;/tt&gt; */"/>
    <method name="public final void setElementPositionAt(int i, double x, double y)" doc="/**
&lt;p&gt;Sets the x and y coordinate of the element at index &lt;tt&gt;i&lt;/tt&gt; to &lt;tt&gt;x&lt;/tt&gt; and &lt;tt&gt;y&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setFillRule(com.trolltech.qt.core.Qt.FillRule fillRule)" doc="/**
&lt;p&gt;Sets the fill rule of the painter path to the given &lt;tt&gt;fillRule&lt;/tt&gt;. Qt provides two methods for filling paths:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qt-fillrule-oddeven.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qt-fillrule-winding.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Qt::OddEvenFill (default)&lt;/th&gt;&lt;th&gt;Qt::WindingFill&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#fillRule()&quot;&gt;&lt;tt&gt;fillRule&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double slopeAtPercent(double t)" doc="/**
&lt;p&gt;Returns the slope of the path at the percentage &lt;tt&gt;t&lt;/tt&gt;. The argument &lt;tt&gt;t&lt;/tt&gt; has to be between 0 and 1.&lt;/p&gt;
&lt;p&gt;Note that similarly to other percent methods, the percentage measurment is not linear with regards to the length, if curves are present in the path. When curves are present the percentage argument is mapped to the t parameter of the Bezier equations.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath subtracted(com.trolltech.qt.gui.QPainterPath r)" doc="/**
&lt;p&gt;Returns a path which is &lt;tt&gt;r&lt;/tt&gt; subtracted from this path.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath subtractedInverted(com.trolltech.qt.gui.QPainterPath r)" doc="/**
&lt;p&gt;Returns a path which is this path subtracted from &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPolygonF toFillPolygon(com.trolltech.qt.gui.QMatrix matrix)"/>
    <method name="public final com.trolltech.qt.gui.QPolygonF toFillPolygon()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainterPath.html#toFillPolygon(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygon&lt;/tt&gt;&lt;/a&gt;(QMatrix()). */"/>
    <method name="public final com.trolltech.qt.gui.QPolygonF toFillPolygon(com.trolltech.qt.gui.QTransform matrix)" doc="/**
&lt;p&gt;Converts the path into a polygon using the &lt;a href=&quot;QTransform.html&quot;&gt;&lt;tt&gt;QTransform&lt;/tt&gt;&lt;/a&gt; &lt;tt&gt;matrix&lt;/tt&gt;, and returns the polygon.&lt;/p&gt;
&lt;p&gt;The polygon is created by first converting all subpaths to polygons, then using a rewinding technique to make sure that overlapping subpaths can be filled using the correct fill rule.&lt;/p&gt;
&lt;p&gt;Note that rewinding inserts addition lines in the polygon so the outline of the fill polygon does not match the outline of the path.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#toSubpathPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toSubpathPolygons&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#toFillPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygons&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPainterPath Conversion&lt;/tt&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QPolygonF&gt; toFillPolygons(com.trolltech.qt.gui.QMatrix matrix)"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QPolygonF&gt; toFillPolygons()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainterPath.html#toFillPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygons&lt;/tt&gt;&lt;/a&gt;(QMatrix()). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QPolygonF&gt; toFillPolygons(com.trolltech.qt.gui.QTransform matrix)" doc="/**
&lt;p&gt;Converts the path into a list of polygons using the &lt;a href=&quot;QTransform.html&quot;&gt;&lt;tt&gt;QTransform&lt;/tt&gt;&lt;/a&gt; &lt;tt&gt;matrix&lt;/tt&gt;, and returns the list.&lt;/p&gt;
&lt;p&gt;The function differs from the &lt;a href=&quot;QPainterPath.html#toFillPolygon(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygon&lt;/tt&gt;&lt;/a&gt; function in that it creates several polygons. It is provided because it is usually faster to draw several small polygons than to draw one large polygon, even though the total number of points drawn is the same.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPainterPath.html#toFillPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygons&lt;/tt&gt;&lt;/a&gt; function differs from the &lt;a href=&quot;QPainterPath.html#toSubpathPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toSubpathPolygons&lt;/tt&gt;&lt;/a&gt; function in that it create only polygon for subpaths that have overlapping bounding rectangles.&lt;/p&gt;
&lt;p&gt;Like the &lt;a href=&quot;QPainterPath.html#toFillPolygon(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygon&lt;/tt&gt;&lt;/a&gt; function, this function uses a rewinding technique to make sure that overlapping subpaths can be filled using the correct fill rule. Note that rewinding inserts addition lines in the polygons so the outline of the fill polygon does not match the outline of the path.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#toSubpathPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toSubpathPolygons&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#toFillPolygon(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygon&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPainterPath Conversion&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath toReversed()" doc="/**
&lt;p&gt;Creates and returns a reversed copy of the path.&lt;/p&gt;
&lt;p&gt;It is the order of the elements that is reversed: If a &lt;a href=&quot;QPainterPath.html#QPainterPath()&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; is composed by calling the &lt;a href=&quot;QPainterPath.html#moveTo(double, double)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#lineTo(double, double)&quot;&gt;&lt;tt&gt;lineTo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#cubicTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;cubicTo&lt;/tt&gt;&lt;/a&gt; functions in the specified order, the reversed copy is composed by calling &lt;a href=&quot;QPainterPath.html#cubicTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;cubicTo&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#lineTo(double, double)&quot;&gt;&lt;tt&gt;lineTo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#moveTo(double, double)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QPolygonF&gt; toSubpathPolygons(com.trolltech.qt.gui.QMatrix matrix)"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QPolygonF&gt; toSubpathPolygons()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPainterPath.html#toSubpathPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toSubpathPolygons&lt;/tt&gt;&lt;/a&gt;(QMatrix()). */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QPolygonF&gt; toSubpathPolygons(com.trolltech.qt.gui.QTransform matrix)" doc="/**
&lt;p&gt;Converts the path into a list of polygons using the &lt;a href=&quot;QTransform.html&quot;&gt;&lt;tt&gt;QTransform&lt;/tt&gt;&lt;/a&gt; &lt;tt&gt;matrix&lt;/tt&gt;, and returns the list.&lt;/p&gt;
&lt;p&gt;This function creates one polygon for each subpath regardless of intersecting subpaths (i.e&amp;#x2e; overlapping bounding rectangles). To make sure that such overlapping subpaths are filled correctly, use the &lt;a href=&quot;QPainterPath.html#toFillPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygons&lt;/tt&gt;&lt;/a&gt; function instead.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#toFillPolygons(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygons&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#toFillPolygon(com.trolltech.qt.gui.QTransform)&quot;&gt;&lt;tt&gt;toFillPolygon&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QPainterPath Conversion&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath united(com.trolltech.qt.gui.QPainterPath r)" doc="/**
&lt;p&gt;Returns a path which is the union of this path and &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#intersected(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;intersected&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#subtracted(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;subtracted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#subtractedInverted(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;subtractedInverted&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="ElementType" doc="/**
&lt;p&gt;This enum describes the types of elements used to connect vertices in subpaths.&lt;/p&gt;
&lt;p&gt;Note that elements added as closed subpaths using the &lt;a href=&quot;QPainterPath.html#addEllipse(double, double, double, double)&quot;&gt;&lt;tt&gt;addEllipse&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#addPath(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;addPath&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#addPolygon(com.trolltech.qt.gui.QPolygonF)&quot;&gt;&lt;tt&gt;addPolygon&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#addRect(com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;addRect&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#addRegion(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;addRegion&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#addText(double, double, com.trolltech.qt.gui.QFont, java.lang.String)&quot;&gt;&lt;tt&gt;addText&lt;/tt&gt;&lt;/a&gt; convenience functions, is actually added to the path as a collection of separate elements using the &lt;a href=&quot;QPainterPath.html#moveTo(double, double)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPath.html#lineTo(double, double)&quot;&gt;&lt;tt&gt;lineTo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#cubicTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;cubicTo&lt;/tt&gt;&lt;/a&gt; functions.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPath.html#elementAt(int)&quot;&gt;&lt;tt&gt;elementAt&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainterPath.html#elementCount()&quot;&gt;&lt;tt&gt;elementCount&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="MoveToElement" doc="/**
&lt;p&gt;A new subpath. See also &lt;a href=&quot;QPainterPath.html#moveTo(double, double)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="LineToElement" doc="/**
&lt;p&gt;A line. See also &lt;a href=&quot;QPainterPath.html#lineTo(double, double)&quot;&gt;&lt;tt&gt;lineTo&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="CurveToElement" doc="/**
&lt;p&gt;A curve. See also &lt;a href=&quot;QPainterPath.html#cubicTo(double, double, double, double, double, double)&quot;&gt;&lt;tt&gt;cubicTo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPath.html#quadTo(com.trolltech.qt.core.QPointF, com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;quadTo&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="CurveToDataElement" doc="/**
&lt;p&gt;The extra data required to describe a curve in a &lt;a href=&quot;QPainterPath.html#ElementType-enum&quot;&gt;&lt;tt&gt;CurveToElement&lt;/tt&gt;&lt;/a&gt; element.&lt;/p&gt;
 */"/>
</enum>
</class>