<!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: Cairo::Win32PrintingSurface Class Reference</title> <link href="cairomm.css" rel="stylesheet" type="text/css"> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</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="examples.html"><span>Examples</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceCairo.html">Cairo</a> </li> <li class="navelem"><a class="el" href="classCairo_1_1Win32PrintingSurface.html">Win32PrintingSurface</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <h1>Cairo::Win32PrintingSurface Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="Cairo::Win32PrintingSurface" --><!-- doxytag: inherits="Cairo::Surface" --> <p>A multi-page vector surface type for printing on Microsoft Windows. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for Cairo::Win32PrintingSurface:</div> <div class="dyncontent"> <div class="center"><img src="classCairo_1_1Win32PrintingSurface__inherit__graph.png" border="0" usemap="#Cairo_1_1Win32PrintingSurface_inherit__map" alt="Inheritance graph"/></div> <map name="Cairo_1_1Win32PrintingSurface_inherit__map" id="Cairo_1_1Win32PrintingSurface_inherit__map"> <area shape="rect" id="node2" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh..." alt="" coords="45,6,149,37"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classCairo_1_1Win32PrintingSurface-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Win32PrintingSurface.html#ac487a4537e12408e1420051976477032">Win32PrintingSurface</a> (cairo_surface_t*<a class="el" href="classCairo_1_1Surface.html#ad176eb7343b5902df3c19f9f56e59fb4">cobject</a>, bool has_reference=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Win32PrintingSurface.html#abacc406740bec0fe5d1b4a9f50642af1">~Win32PrintingSurface</a> ()</td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><br class="typebreak"/> < <a class="el" href="classCairo_1_1Win32PrintingSurface.html">Win32PrintingSurface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Win32PrintingSurface.html#a433dfdbac69b4ca3428f9b7d1066a317">create</a> (HDC hdc)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a cairo surface that targets the given DC. <a href="#a433dfdbac69b4ca3428f9b7d1066a317"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A multi-page vector surface type for printing on Microsoft Windows. </p> <dl class="note"><dt><b>Note:</b></dt><dd>For this <a class="el" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh...">Surface</a> to be available, cairo must have been compiled with Win32 support</dd></dl> <dl class="since"><dt><b>Since:</b></dt><dd>1.8 </dd></dl> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ac487a4537e12408e1420051976477032"></a><!-- doxytag: member="Cairo::Win32PrintingSurface::Win32PrintingSurface" ref="ac487a4537e12408e1420051976477032" args="(cairo_surface_t *cobject, bool has_reference=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Cairo::Win32PrintingSurface::Win32PrintingSurface </td> <td>(</td> <td class="paramtype">cairo_surface_t * </td> <td class="paramname"><em>cobject</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>has_reference</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="abacc406740bec0fe5d1b4a9f50642af1"></a><!-- doxytag: member="Cairo::Win32PrintingSurface::~Win32PrintingSurface" ref="abacc406740bec0fe5d1b4a9f50642af1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Cairo::Win32PrintingSurface::~Win32PrintingSurface </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a433dfdbac69b4ca3428f9b7d1066a317"></a><!-- doxytag: member="Cairo::Win32PrintingSurface::create" ref="a433dfdbac69b4ca3428f9b7d1066a317" args="(HDC hdc)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1Win32PrintingSurface.html">Win32PrintingSurface</a>> Cairo::Win32PrintingSurface::create </td> <td>(</td> <td class="paramtype">HDC </td> <td class="paramname"><em>hdc</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a cairo surface that targets the given DC. </p> <p>The DC will be queried for its initial clip extents, and this will be used as the size of the cairo surface. The DC should be a printing DC; antialiasing will be ignored, and GDI will be used as much as possible to draw to the surface.</p> <p>The returned surface will be wrapped using the paginated surface to provide correct complex rendering behaviour; <a class="el" href="classCairo_1_1Surface.html#ad318acd86c1875854ef4e1e2867052c3" title="Emits and clears the current page for backends that support multiple pages.">show_page()</a> and associated methods must be used for correct output.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">hdc</td><td>the DC to create a surface for.</td></tr> </table> </dd> </dl> <dl class="since"><dt><b>Since:</b></dt><dd>1.8 </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>cairomm/win32_surface.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Mon May 9 2011 09:51:07 for cairomm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>