Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 737

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The CairoFillRule class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairoformat.strideforwidth.html">CairoFormat::strideForWidth</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairofilter.html">CairoFilter</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.cairofillrule" class="reference">

 <h1 class="title">The CairoFillRule class</h1>
 

 <div class="partintro"><p class="verinfo">(No version information available, might only be in SVN)</p>


  <div class="section" id="cairofillrule.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">
   A <strong class="classname">CairoFillRule</strong> is used to select how paths are filled. For both fill rules, whether or not a
   point is included in the fill is determined by taking a ray from that point to infinity and looking at intersections
   with the path. The ray can be in any direction, as long as it doesn&#039;t pass through the end point of a segment or have
   a tricky intersection such as intersecting tangent to the path. (Note that filling is not actually implemented in
   this way. This is just a description of the rule that is applied.)
   </p>
   <p class="para">
       The default fill rule is <strong><code>CairoFillRule::WINDING</code></strong>.
   </p>
  </div>


  <div class="section" id="cairofillrule.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">CairoFillRule</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairofillrule.html#cairofillrule.constants.winding"><var class="varname">WINDING</var></a></var>
     <span class="initializer"> = 0</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairofillrule.html#cairofillrule.constants.even-odd"><var class="varname">EVEN_ODD</var></a></var>
     <span class="initializer"> = 1</span>
    ;</div>

    
   }</div>


  </div>
  

  <div class="section" id="cairofillrule.constants">
   <h2 class="title">Predefined Constants</h2>
   <dl>


    <dt id="cairofillrule.constants.winding">
     <span class="term"><strong><code>CairoFillRule::WINDING</code></strong></span>
     <dd>

      <p class="para">If the path crosses the ray from left-to-right, counts +1. If the path crosses the ray from right to left,
       counts -1. (Left and right are determined from the perspective of looking along the ray from the starting point.)
       If the total count is non-zero, the point will be filled.
      </p>
     </dd>

    </dt>


    <dt id="cairofillrule.constants.even-odd">
     <span class="term"><strong><code>CairoFillRule::EVEN_ODD</code></strong></span>
     <dd>

      <p class="para">Counts the total number of intersections, without regard to the orientation of the contour.
      If the total number of intersections is odd, the point will be filled. </p>
     </dd>

    </dt>


   </dl>

  </div>



 </div>

 

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairoformat.strideforwidth.html">CairoFormat::strideForWidth</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairofilter.html">CairoFilter</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>