Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > f34ba884321f511245df2a241b9e98c5 > files > 201

lib64cairomm1.0-devel-1.4.6-2mdv2008.1.x86_64.rpm

<!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>cairomm: win32_surface.h Source File</title>
        <link href="cairomm.css" rel="stylesheet" type="text/css">
    </head>
<body>
<!-- Generated by Doxygen 1.5.5 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_ece2dda898a4846236927a5f7f40c301.html">cairomm</a>
  </div>
</div>
</div>
<h1>win32_surface.h</h1><a href="win32__surface_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (C) 2005 The cairomm Development Team</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00004"></a>00004 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
<a name="l00005"></a>00005 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00006"></a>00006 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00009"></a>00009 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00010"></a>00010 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00011"></a>00011 <span class="comment"> * Library General Public License for more details.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
<a name="l00014"></a>00014 <span class="comment"> * License along with this library; if not, write to the Free Software</span>
<a name="l00015"></a>00015 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA</span>
<a name="l00016"></a>00016 <span class="comment"> * 02110-1301, USA.</span>
<a name="l00017"></a>00017 <span class="comment"> */</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef __CAIROMM_WIN32_SURFACE_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define __CAIROMM_WIN32_SURFACE_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;<a class="code" href="surface_8h.html">cairomm/surface.h</a>&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="code" href="enums_8h.html">cairomm/enums.h</a>&gt;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifdef CAIRO_HAS_WIN32_SURFACE</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#include &lt;cairo-win32.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#endif</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="comment">// This header is not included by cairomm.h because it requires Windows headers that </span>
<a name="l00030"></a>00030 <span class="comment">// tend to pollute the namespace with non-prefixed #defines and typedefs.</span>
<a name="l00031"></a>00031 <span class="comment">// You may include it directly if you need to use this API.</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="keyword">namespace </span>Cairo
<a name="l00034"></a>00034 {
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="preprocessor">#ifdef CAIRO_HAS_WIN32_SURFACE</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00045"></a><a class="code" href="classCairo_1_1Win32Surface.html">00045</a> <span class="keyword">class </span><a class="code" href="classCairo_1_1Win32Surface.html" title="A Win32Surface provides a way to render within Microsoft Windows.">Win32Surface</a> : <span class="keyword">public</span> <a class="code" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation...">Surface</a>
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047 <span class="keyword">public</span>:
<a name="l00048"></a>00048 
<a name="l00056"></a>00056   <span class="keyword">explicit</span> <a class="code" href="classCairo_1_1Win32Surface.html#74e9cee0ea5f89bcc5dc7444217b1f1d" title="Create a C++ wrapper for the C instance.">Win32Surface</a>(cairo_surface_t* <a class="code" href="classCairo_1_1Surface.html#d176eb7343b5902df3c19f9f56e59fb4" title="The underlying C cairo surface type.">cobject</a>, <span class="keywordtype">bool</span> has_reference = <span class="keyword">false</span>);
<a name="l00057"></a>00057   <span class="keyword">virtual</span> <a class="code" href="classCairo_1_1Win32Surface.html#04fd3568ffc9a969d7f625f28ae1e584">~Win32Surface</a>();
<a name="l00058"></a>00058 
<a name="l00064"></a>00064   HDC <a class="code" href="classCairo_1_1Win32Surface.html#cdcc018282d8cfed8bc992233a378aa4" title="Returns the HDC associated with this surface, or NULL if none.">get_dc</a>() <span class="keyword">const</span>;
<a name="l00065"></a>00065 
<a name="l00074"></a>00074   <span class="keyword">static</span> <a class="code" href="classCairo_1_1RefPtr.html" title="RefPtr&amp;lt;&amp;gt; is a reference-counting shared smartpointer.">RefPtr&lt;Win32Surface&gt;</a> <a class="code" href="classCairo_1_1Win32Surface.html#6e5658b32a2d2083d0fddf81428ca1fb" title="Creates a cairo surface that targets the given DC.">create</a>(HDC hdc);
<a name="l00075"></a>00075 
<a name="l00085"></a>00085   <span class="keyword">static</span> <a class="code" href="classCairo_1_1RefPtr.html" title="RefPtr&amp;lt;&amp;gt; is a reference-counting shared smartpointer.">RefPtr&lt;Win32Surface&gt;</a> <a class="code" href="classCairo_1_1Win32Surface.html#6e5658b32a2d2083d0fddf81428ca1fb" title="Creates a cairo surface that targets the given DC.">create</a>(<a class="code" href="namespaceCairo.html#d3f86970e1bd354b263303c9b8759166">Format</a> format, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 };
<a name="l00088"></a>00088 
<a name="l00089"></a>00089 <span class="preprocessor">#endif // CAIRO_HAS_WIN32_SURFACE</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span>
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 } <span class="comment">// namespace Cairo</span>
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="preprocessor">#endif //__CAIROMM_WIN32_SURFACE_H</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span>
<a name="l00096"></a>00096 <span class="comment">// vim: ts=2 sw=2 et</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 26 07:43:32 2008 for cairomm by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>