blob: b172448f9f9ba50cd07e5c6260d198947ce0553a [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: SkBounder 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>SkBounder Class Reference</h1><code>#include &lt;<a class="el" href="SkBounder_8h-source.html">SkBounder.h</a>&gt;</code>
<p>
<p>Inheritance diagram for SkBounder:
<p><center><img src="classSkBounder.png" usemap="#SkBounder_map" border="0" alt=""></center>
<map name="SkBounder_map">
<area href="classSkRefCnt.html" alt="SkRefCnt" shape="rect" coords="0,0,74,24">
</map>
<a href="classSkBounder-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"><a class="anchor" name="a0" doxytag="SkBounder::doIRect"></a>
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>doIRect</b> (const SkRect16 &amp;, const SkRegion &amp;)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="SkBounder::doHairline"></a>
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>doHairline</b> (const SkPoint &amp;, const SkPoint &amp;, const <a class="el" href="classSkPaint.html">SkPaint</a> &amp;, const SkRegion &amp;)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="SkBounder::doRect"></a>
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>doRect</b> (const SkRect &amp;, const <a class="el" href="classSkPaint.html">SkPaint</a> &amp;, const SkRegion &amp;)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="SkBounder::doPath"></a>
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>doPath</b> (const <a class="el" href="classSkPath.html">SkPath</a> &amp;, const <a class="el" href="classSkPaint.html">SkPaint</a> &amp;, const SkRegion &amp;, SkScalar width)</td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkBounder.html#b0">onIRect</a> (const SkRect16 &amp;)=0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSkBounder.html#b1">commit</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="n0" doxytag="SkBounder::SkAutoBounderCommit"></a>
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>SkAutoBounderCommit</b></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Base class for intercepting the device bounds of shapes before they are drawn. Install a subclass of this in your canvas.
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="b1" doxytag="SkBounder::commit"></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 void SkBounder::commit </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> [protected, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Called after each shape has been drawn. The default implementation does nothing, but your override could use this notification to signal itself that the offscreen being rendered into needs to be updated to the screen. </td>
</tr>
</table>
<a class="anchor" name="b0" doxytag="SkBounder::onIRect"></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 SkBounder::onIRect </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const SkRect16 &amp;&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [protected, pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Override in your subclass. This is called with the device bounds of an object (text, geometry, image) just before it is drawn. If your method returns false, the drawing for that shape is aborted. If your method returns true, drawing continues. The bounds your method receives have already been transformed in to device coordinates, and clipped to the current clip. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="SkBounder_8h-source.html">SkBounder.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>