Sophie

Sophie

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

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

<class name="QPainterPathStroker" doc="/**
&lt;p&gt;The &lt;a href=&quot;QPainterPathStroker.html#QPainterPathStroker()&quot;&gt;&lt;tt&gt;QPainterPathStroker&lt;/tt&gt;&lt;/a&gt; class is used to generate fillable outlines for a given painter path.&lt;/p&gt;
&lt;p&gt;By calling the &lt;a href=&quot;QPainterPathStroker.html#createStroke(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;createStroke&lt;/tt&gt;&lt;/a&gt; function, passing a given &lt;a href=&quot;QPainterPath.html&quot;&gt;&lt;tt&gt;QPainterPath&lt;/tt&gt;&lt;/a&gt; as argument, a new painter path representing the outline of the given path is created. The newly created painter path can then be filled to draw the original painter path's outline.&lt;/p&gt;
&lt;p&gt;You can control the various design aspects (width, cap styles, join styles and dash pattern) of the outlining using the following functions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QPainterPathStroker.html#setWidth(double)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainterPathStroker.html#setCapStyle(com.trolltech.qt.core.Qt.PenCapStyle)&quot;&gt;&lt;tt&gt;setCapStyle&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainterPathStroker.html#setJoinStyle(com.trolltech.qt.core.Qt.PenJoinStyle)&quot;&gt;&lt;tt&gt;setJoinStyle&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QPainterPathStroker.html#setDashPattern(java.util.List&lt;java.lang.Double&gt;)&quot;&gt;&lt;tt&gt;setDashPattern&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;a href=&quot;QPainterPathStroker.html#setDashPattern(java.util.List&lt;java.lang.Double&gt;)&quot;&gt;&lt;tt&gt;setDashPattern&lt;/tt&gt;&lt;/a&gt; function accepts both a Qt::PenStyle object and a vector representation of the pattern as argument.&lt;/p&gt;
&lt;p&gt;In addition you can specify a curve's threshold, controlling the granularity with which a curve is drawn, using the &lt;a href=&quot;QPainterPathStroker.html#setCurveThreshold(double)&quot;&gt;&lt;tt&gt;setCurveThreshold&lt;/tt&gt;&lt;/a&gt; function. The default threshold is a well adjusted value (0.25), and normally you should not need to modify it. However, you can make the curve's appearance smoother by decreasing its value.&lt;/p&gt;
&lt;p&gt;You can also control the miter limit for the generated outline using the &lt;a href=&quot;QPainterPathStroker.html#setMiterLimit(double)&quot;&gt;&lt;tt&gt;setMiterLimit&lt;/tt&gt;&lt;/a&gt; function. The miter limit describes how far from each join the miter join can extend. The limit is specified in the units of width so the pixelwise miter limit will be &lt;tt&gt;miterlimit * width&lt;/tt&gt;. This value is only used if the join style is Qt::MiterJoin.&lt;/p&gt;
&lt;p&gt;The painter path generated by the &lt;a href=&quot;QPainterPathStroker.html#createStroke(com.trolltech.qt.gui.QPainterPath)&quot;&gt;&lt;tt&gt;createStroke&lt;/tt&gt;&lt;/a&gt; function should only be used for outlining the given painter path. Otherwise it may cause unexpected behavior. Generated outlines also require the Qt::WindingFill rule which is set by default.&lt;/p&gt;

@see &lt;a href=&quot;QPen.html&quot;&gt;&lt;tt&gt;QPen&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QPainterPathStroker()" doc="/**
&lt;p&gt;Creates a new stroker.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.PenCapStyle capStyle()" doc="/**
&lt;p&gt;Returns the cap style of the generated outlines.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#setCapStyle(com.trolltech.qt.core.Qt.PenCapStyle)&quot;&gt;&lt;tt&gt;setCapStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPainterPath createStroke(com.trolltech.qt.gui.QPainterPath path)" doc="/**
&lt;p&gt;Generates a new path that is a fillable area representing the outline of the given &lt;tt&gt;path&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The various design aspects of the outline are based on the stroker's properties: &lt;a href=&quot;QPainterPathStroker.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPathStroker.html#capStyle()&quot;&gt;&lt;tt&gt;capStyle&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPathStroker.html#joinStyle()&quot;&gt;&lt;tt&gt;joinStyle&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPathStroker.html#dashPattern()&quot;&gt;&lt;tt&gt;dashPattern&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPainterPathStroker.html#curveThreshold()&quot;&gt;&lt;tt&gt;curveThreshold&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPainterPathStroker.html#miterLimit()&quot;&gt;&lt;tt&gt;miterLimit&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The generated path should only be used for outlining the given painter path. Otherwise it may cause unexpected behavior. Generated outlines also require the Qt::WindingFill rule which is set by default.&lt;/p&gt;
 */"/>
    <method name="public final double curveThreshold()" doc="/**
&lt;p&gt;Returns the curve flattening threshold for the generated outlines.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#setCurveThreshold(double)&quot;&gt;&lt;tt&gt;setCurveThreshold&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double dashOffset()" doc="/**
&lt;p&gt;Returns the dash offset for the generated outlines.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#setDashOffset(double)&quot;&gt;&lt;tt&gt;setDashOffset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.Double&gt; dashPattern()" doc="/**
&lt;p&gt;Returns the dash pattern for the generated outlines.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#setDashPattern(java.util.List&lt;java.lang.Double&gt;)&quot;&gt;&lt;tt&gt;setDashPattern&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.PenJoinStyle joinStyle()" doc="/**
&lt;p&gt;Returns the join style of the generated outlines.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#setJoinStyle(com.trolltech.qt.core.Qt.PenJoinStyle)&quot;&gt;&lt;tt&gt;setJoinStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double miterLimit()" doc="/**
&lt;p&gt;Returns the miter limit for the generated outlines.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#setMiterLimit(double)&quot;&gt;&lt;tt&gt;setMiterLimit&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCapStyle(com.trolltech.qt.core.Qt.PenCapStyle style)" doc="/**
&lt;p&gt;Sets the cap style of the generated outlines to &lt;tt&gt;style&lt;/tt&gt;. If a dash pattern is set, each segment of the pattern is subject to the cap &lt;tt&gt;style&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#capStyle()&quot;&gt;&lt;tt&gt;capStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCurveThreshold(double threshold)" doc="/**
&lt;p&gt;Specifies the curve flattening &lt;tt&gt;threshold&lt;/tt&gt;, controlling the granularity with which the generated outlines' curve is drawn.&lt;/p&gt;
&lt;p&gt;The default threshold is a well adjusted value (0.25), and normally you should not need to modify it. However, you can make the curve's appearance smoother by decreasing its value.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#curveThreshold()&quot;&gt;&lt;tt&gt;curveThreshold&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDashOffset(double offset)" doc="/**
&lt;p&gt;Sets the dash offset for the generated outlines to &lt;tt&gt;offset&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#dashOffset()&quot;&gt;&lt;tt&gt;dashOffset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDashPattern(com.trolltech.qt.core.Qt.PenStyle arg__1)" doc="/**
&lt;p&gt;Sets the dash pattern for the generated outlines to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setDashPattern(java.util.List&lt;java.lang.Double&gt; dashPattern)" doc="/**
&lt;p&gt;Sets the dash pattern for the generated outlines to &lt;tt&gt;dashPattern&lt;/tt&gt;. This function makes it possible to specify custom dash patterns.&lt;/p&gt;
&lt;p&gt;Each element in the vector contains the lengths of the dashes and spaces in the stroke, beginning with the first dash in the first element, the first space in the second element, and alternating between dashes and spaces for each following pair of elements.&lt;/p&gt;
&lt;p&gt;The vector can contain an odd number of elements, in which case the last element will be extended by the length of the first element when the pattern repeats.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#dashPattern()&quot;&gt;&lt;tt&gt;dashPattern&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setJoinStyle(com.trolltech.qt.core.Qt.PenJoinStyle style)" doc="/**
&lt;p&gt;Sets the join style of the generated outlines to &lt;tt&gt;style&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#joinStyle()&quot;&gt;&lt;tt&gt;joinStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMiterLimit(double length)" doc="/**
&lt;p&gt;Sets the miter limit of the generated outlines to &lt;tt&gt;length&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The miter limit describes how far from each join the miter join can extend. The limit is specified in units of the currently set width. So the pixelwise miter limit will be &lt;tt&gt;miterlimit * width&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This value is only used if the join style is Qt::MiterJoin.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#miterLimit()&quot;&gt;&lt;tt&gt;miterLimit&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWidth(double width)" doc="/**
&lt;p&gt;Sets the width of the generated outline painter path to &lt;tt&gt;width&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The generated outlines will extend approximately 50% of &lt;tt&gt;width&lt;/tt&gt; to each side of the given input path's original outline.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double width()" doc="/**
&lt;p&gt;Returns the width of the generated outlines.&lt;/p&gt;

@see &lt;a href=&quot;QPainterPathStroker.html#setWidth(double)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt; */"/>
</class>