| <!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: SkXfermode.h Source File</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 Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> |
| <div class="nav"> |
| <a class="el" href="dir_000000.html">include</a> / <a class="el" href="dir_000001.html">skia</a></div> |
| <h1>SkXfermode.h</h1><div class="fragment"><pre class="fragment">00001 <span class="preprocessor">#ifndef SkXfermode_DEFINED</span> |
| 00002 <span class="preprocessor"></span><span class="preprocessor">#define SkXfermode_DEFINED</span> |
| 00003 <span class="preprocessor"></span> |
| 00004 <span class="preprocessor">#include "SkRefCnt.h"</span> |
| 00005 <span class="preprocessor">#include "<a class="code" href="SkColor_8h.html">SkColor.h</a>"</span> |
| 00006 |
| <a name="l00015"></a><a class="code" href="classSkXfermode.html">00015</a> <span class="keyword">class </span><a class="code" href="classSkXfermode.html">SkXfermode</a> : <span class="keyword">public</span> <a class="code" href="classSkRefCnt.html">SkRefCnt</a> { |
| 00016 <span class="keyword">public</span>: |
| 00017 <span class="keyword">virtual</span> <span class="keywordtype">void</span> xfer32(<a class="code" href="SkColor_8h.html#a18">SkPMColor</a> dst[], <span class="keyword">const</span> <a class="code" href="SkColor_8h.html#a18">SkPMColor</a> src[], <span class="keywordtype">int</span> count, <span class="keyword">const</span> <a class="code" href="SkColor_8h.html#a16">SkAlpha</a> aa[]); |
| 00018 <span class="keyword">virtual</span> <span class="keywordtype">void</span> xfer16(uint16_t dst[], <span class="keyword">const</span> <a class="code" href="SkColor_8h.html#a18">SkPMColor</a> src[], <span class="keywordtype">int</span> count, <span class="keyword">const</span> <a class="code" href="SkColor_8h.html#a16">SkAlpha</a> aa[]); |
| 00019 <span class="keyword">virtual</span> <span class="keywordtype">void</span> xferA8(<a class="code" href="SkColor_8h.html#a16">SkAlpha</a> dst[], <span class="keyword">const</span> <a class="code" href="SkColor_8h.html#a18">SkPMColor</a> src[], <span class="keywordtype">int</span> count, <span class="keyword">const</span> <a class="code" href="SkColor_8h.html#a16">SkAlpha</a> aa[]); |
| 00020 }; |
| 00021 |
| 00023 |
| 00024 <span class="keyword">class </span>SkProcXfermode : <span class="keyword">public</span> <a class="code" href="classSkXfermode.html">SkXfermode</a> { |
| 00025 <span class="keyword">public</span>: |
| 00026 <span class="keyword">typedef</span> <a class="code" href="SkColor_8h.html#a18">SkPMColor</a> (*Proc)(<a class="code" href="SkColor_8h.html#a18">SkPMColor</a> src, <a class="code" href="SkColor_8h.html#a18">SkPMColor</a> dst); |
| 00027 |
| 00028 SkProcXfermode(Proc proc = nil) : fProc(proc) {} |
| 00029 |
| 00030 Proc getProc()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> fProc; } |
| 00031 <span class="keywordtype">void</span> setProc(Proc proc) { fProc = proc; } |
| 00032 |
| 00033 <span class="comment">// overrides</span> |
| 00034 <span class="keyword">virtual</span> <span class="keywordtype">void</span> xfer32(SkPMColor dst[], <span class="keyword">const</span> SkPMColor src[], <span class="keywordtype">int</span> count, <span class="keyword">const</span> SkAlpha aa[]); |
| 00035 <span class="keyword">virtual</span> <span class="keywordtype">void</span> xfer16(uint16_t dst[], <span class="keyword">const</span> SkPMColor src[], <span class="keywordtype">int</span> count, <span class="keyword">const</span> SkAlpha aa[]); |
| 00036 <span class="keyword">virtual</span> <span class="keywordtype">void</span> xferA8(SkAlpha dst[], <span class="keyword">const</span> SkPMColor src[], <span class="keywordtype">int</span> count, <span class="keyword">const</span> SkAlpha aa[]); |
| 00037 |
| 00038 <span class="keyword">private</span>: |
| 00039 Proc fProc; |
| 00040 }; |
| 00041 |
| 00042 <span class="preprocessor">#endif</span> |
| 00043 <span class="preprocessor"></span> |
| </pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue May 9 14:35:23 2006 for SGL by |
| <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> |