blob: 249e0277bb6aff55437290f7a82f1697912318cb [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>SGL: SkComposePathEffect Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.0 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>SkComposePathEffect Class Reference</h1><code>#include &lt;<a class="el" href="SkPathEffect_8h-source.html">SkPathEffect.h</a>&gt;</code>
<p>
<p>Inheritance diagram for SkComposePathEffect:
<p><center><img src="classSkComposePathEffect.png" usemap="#SkComposePathEffect_map" border="0" alt=""></center>
<map name="SkComposePathEffect_map">
<area href="classSkPairPathEffect.html" alt="SkPairPathEffect" shape="rect" coords="0,168,136,192">
<area href="classSkPathEffect.html" alt="SkPathEffect" shape="rect" coords="0,112,136,136">
<area href="classSkFlattenable.html" alt="SkFlattenable" shape="rect" coords="0,56,136,80">
<area href="classSkRefCnt.html" alt="SkRefCnt" shape="rect" coords="0,0,136,24">
</map>
<a href="classSkComposePathEffect-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkComposePathEffect.html#a0">SkComposePathEffect</a> (<a class="el" href="classSkPathEffect.html">SkPathEffect</a> *outer, <a class="el" href="classSkPathEffect.html">SkPathEffect</a> *inner)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkComposePathEffect.html#a1">filterPath</a> (<a class="el" href="classSkPath.html">SkPath</a> *dst, const <a class="el" href="classSkPath.html">SkPath</a> &amp;src, SkScalar *width)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual Factory&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkComposePathEffect.html#a2">getFactory</a> ()</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This subclass of <a class="el" href="classSkPathEffect.html">SkPathEffect</a> composes its two arguments, to create a compound pathEffect.
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="SkComposePathEffect::SkComposePathEffect"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SkComposePathEffect::SkComposePathEffect </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkPathEffect.html">SkPathEffect</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>outer</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classSkPathEffect.html">SkPathEffect</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>inner</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Construct a pathEffect whose effect is to apply first the inner pathEffect and the the outer pathEffect (e.g. outer(inner(path))) The reference counts for outer and inner are both incremented in the constructor, and decremented in the destructor. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a1" doxytag="SkComposePathEffect::filterPath"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual bool SkComposePathEffect::filterPath </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classSkPath.html">SkPath</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>dst</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const <a class="el" href="classSkPath.html">SkPath</a> &amp;&nbsp;</td>
<td class="mdname" nowrap> <em>src</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>SkScalar *&nbsp;</td>
<td class="mdname" nowrap> <em>width</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Given a src path and a width value, return true if the patheffect has produced a new path (dst) and a new width value. If false is returned, ignore dst and width. On input, width &gt;= 0 means the src should be stroked On output, width &gt;= 0 means the dst should be stroked
<p>
Reimplemented from <a class="el" href="classSkPathEffect.html#a1">SkPathEffect</a>. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="SkComposePathEffect::getFactory"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual Factory SkComposePathEffect::getFactory </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
overrides for <a class="el" href="classSkFlattenable.html">SkFlattenable</a>. Subclasses should override this to (re)create their subclass
<p>
Reimplemented from <a class="el" href="classSkPathEffect.html#a2">SkPathEffect</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="SkPathEffect_8h-source.html">SkPathEffect.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue May 9 14:35:23 2006 for SGL by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.0 </small></address>
</body>
</html>