blob: f4029beb231458f2b14b3ba43a52e92997700280 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Skia: SkPixelXorXfermode Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>SkPixelXorXfermode Class Reference</h1><!-- doxytag: class="SkPixelXorXfermode" --><!-- doxytag: inherits="SkXfermode" -->
<p><code>#include &lt;<a class="el" href="_sk_pixel_xor_xfermode_8h_source.html">SkPixelXorXfermode.h</a>&gt;</code></p>
<p>Inherits <a class="el" href="class_sk_xfermode.html">SkXfermode</a>.</p>
<div class="dynheader">
Collaboration diagram for SkPixelXorXfermode:</div>
<div class="dynsection">
<div class="center"><img src="class_sk_pixel_xor_xfermode__coll__graph.png" border="0" usemap="#_sk_pixel_xor_xfermode_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="class_sk_pixel_xor_xfermode-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sk_pixel_xor_xfermode.html#ab3179d98586f6d58a0824b2a5ec9faa3">SkPixelXorXfermode</a> (<a class="el" href="_sk_color_8h.html#a84c81e6a24ff07a55333acf5603046a8">SkColor</a> opColor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_sk_flattenable.html#a66e7fa054ae7ef77e452e6e23c2650ad">Factory</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sk_pixel_xor_xfermode.html#a51ce7443db14576e4178e3cb93f7beda">getFactory</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sk_pixel_xor_xfermode.html#a4768c4ea4c874191663a884d0f0981d9">flatten</a> (<a class="el" href="class_sk_flattenable_write_buffer.html">SkFlattenableWriteBuffer</a> &amp;)</td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_sk_color_8h.html#a9ec12bd74c4b63b5da802b419106b8ea">SkPMColor</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sk_pixel_xor_xfermode.html#adb3a116e84bf58fbdd8354b5c1a971a8">xferColor</a> (<a class="el" href="_sk_color_8h.html#a9ec12bd74c4b63b5da802b419106b8ea">SkPMColor</a> src, <a class="el" href="_sk_color_8h.html#a9ec12bd74c4b63b5da802b419106b8ea">SkPMColor</a> dst)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><a class="el" href="class_sk_pixel_xor_xfermode.html">SkPixelXorXfermode</a> implements a simple pixel xor (op ^ src ^ dst). This transformation does not follow premultiplied conventions, therefore this proc *always* returns an opaque color (alpha == 255). Thus it is not really usefull for operating on blended colors. </p>
<p>Definition at line <a class="el" href="_sk_pixel_xor_xfermode_8h_source.html#l00027">27</a> of file <a class="el" href="_sk_pixel_xor_xfermode_8h_source.html">SkPixelXorXfermode.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab3179d98586f6d58a0824b2a5ec9faa3"></a><!-- doxytag: member="SkPixelXorXfermode::SkPixelXorXfermode" ref="ab3179d98586f6d58a0824b2a5ec9faa3" args="(SkColor opColor)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">SkPixelXorXfermode::SkPixelXorXfermode </td>
<td>(</td>
<td class="paramtype"><a class="el" href="_sk_color_8h.html#a84c81e6a24ff07a55333acf5603046a8">SkColor</a>&nbsp;</td>
<td class="paramname"> <em>opColor</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="_sk_pixel_xor_xfermode_8h_source.html#l00029">29</a> of file <a class="el" href="_sk_pixel_xor_xfermode_8h_source.html">SkPixelXorXfermode.h</a>.</p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a4768c4ea4c874191663a884d0f0981d9"></a><!-- doxytag: member="SkPixelXorXfermode::flatten" ref="a4768c4ea4c874191663a884d0f0981d9" args="(SkFlattenableWriteBuffer &amp;)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void SkPixelXorXfermode::flatten </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_sk_flattenable_write_buffer.html">SkFlattenableWriteBuffer</a> &amp;&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Override this to write data specific to your subclass into the buffer, being sure to call your super-class' version first. This data will later be passed to your Factory function, returned by <a class="el" href="class_sk_pixel_xor_xfermode.html#a51ce7443db14576e4178e3cb93f7beda">getFactory()</a>. </p>
<p>Reimplemented from <a class="el" href="class_sk_flattenable.html#a672baebeed8d8e81cd2a6b0da825fe9f">SkFlattenable</a>.</p>
</div>
</div>
<a class="anchor" id="a51ce7443db14576e4178e3cb93f7beda"></a><!-- doxytag: member="SkPixelXorXfermode::getFactory" ref="a51ce7443db14576e4178e3cb93f7beda" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_sk_flattenable.html#a66e7fa054ae7ef77e452e6e23c2650ad">Factory</a> SkPixelXorXfermode::getFactory </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Implement this to return a factory function pointer that can be called to recreate your class given a buffer (previously written to by your override of <a class="el" href="class_sk_pixel_xor_xfermode.html#a4768c4ea4c874191663a884d0f0981d9">flatten()</a>. </p>
<p>Implements <a class="el" href="class_sk_flattenable.html#a899954e816a929a02e28d835707ca966">SkFlattenable</a>.</p>
</div>
</div>
<a class="anchor" id="adb3a116e84bf58fbdd8354b5c1a971a8"></a><!-- doxytag: member="SkPixelXorXfermode::xferColor" ref="adb3a116e84bf58fbdd8354b5c1a971a8" args="(SkPMColor src, SkPMColor dst)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="_sk_color_8h.html#a9ec12bd74c4b63b5da802b419106b8ea">SkPMColor</a> SkPixelXorXfermode::xferColor </td>
<td>(</td>
<td class="paramtype"><a class="el" href="_sk_color_8h.html#a9ec12bd74c4b63b5da802b419106b8ea">SkPMColor</a>&nbsp;</td>
<td class="paramname"> <em>src</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="_sk_color_8h.html#a9ec12bd74c4b63b5da802b419106b8ea">SkPMColor</a>&nbsp;</td>
<td class="paramname"> <em>dst</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The default implementation of xfer32/xfer16/xferA8 in turn call this method, 1 color at a time (upscaled to a SkPMColor). The default implmentation of this method just returns dst. If performance is important, your subclass should override xfer32/xfer16/xferA8 directly.</p>
<p>This method will not be called directly by the client, so it need not be implemented if your subclass has overridden xfer32/xfer16/xferA8 </p>
<p>Reimplemented from <a class="el" href="class_sk_xfermode.html#acfe486577509fa1d1c723819841f738a">SkXfermode</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/effects/<a class="el" href="_sk_pixel_xor_xfermode_8h_source.html">SkPixelXorXfermode.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Oct 20 11:03:42 2009 for Skia by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>