Blob Blame History Raw
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>cairomm: Cairo::Context Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">cairomm
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;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_1Context.html">Context</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classCairo_1_1Context-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Cairo::Context Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> is the main class used to draw in cairomm.  
 <a href="classCairo_1_1Context.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a14e54b45199452f9916ebcafcd4a629e"><td class="memItemLeft" align="right" valign="top">typedef cairo_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a14e54b45199452f9916ebcafcd4a629e">cobject</a></td></tr>
<tr class="memdesc:a14e54b45199452f9916ebcafcd4a629e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The base cairo C type that is wrapped by <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Cairo::Context</a>.  <a href="#a14e54b45199452f9916ebcafcd4a629e">More...</a><br /></td></tr>
<tr class="separator:a14e54b45199452f9916ebcafcd4a629e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:adb2361743a9f017e662c3c6809dfc765"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#adb2361743a9f017e662c3c6809dfc765">Context</a> (cairo_t*<a class="el" href="classCairo_1_1Context.html#a14e54b45199452f9916ebcafcd4a629e">cobject</a>, bool has_reference=false)</td></tr>
<tr class="memdesc:adb2361743a9f017e662c3c6809dfc765"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a C++ wrapper for the C instance.  <a href="#adb2361743a9f017e662c3c6809dfc765">More...</a><br /></td></tr>
<tr class="separator:adb2361743a9f017e662c3c6809dfc765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acac6e893153cbe7748227dbfdcb97949"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#acac6e893153cbe7748227dbfdcb97949">Context</a> (const <a class="el" href="classCairo_1_1Context.html">Context</a>&amp;)=delete</td></tr>
<tr class="separator:acac6e893153cbe7748227dbfdcb97949"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacccd66c3098f6191618939b86bf22f2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1Context.html">Context</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aacccd66c3098f6191618939b86bf22f2">operator=</a> (const <a class="el" href="classCairo_1_1Context.html">Context</a>&amp;)=delete</td></tr>
<tr class="separator:aacccd66c3098f6191618939b86bf22f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35d214d3ad4d29bd5993d683333a9791"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a35d214d3ad4d29bd5993d683333a9791">~Context</a> ()</td></tr>
<tr class="separator:a35d214d3ad4d29bd5993d683333a9791"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5249fa850f6adc1cb743e60a65a1ddb6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6">save</a> ()</td></tr>
<tr class="memdesc:a5249fa850f6adc1cb743e60a65a1ddb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Makes a copy of the current state of the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> and saves it on an internal stack of saved states.  <a href="#a5249fa850f6adc1cb743e60a65a1ddb6">More...</a><br /></td></tr>
<tr class="separator:a5249fa850f6adc1cb743e60a65a1ddb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45a80032b95d87eafe72dc2ab235f815"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a45a80032b95d87eafe72dc2ab235f815">restore</a> ()</td></tr>
<tr class="memdesc:a45a80032b95d87eafe72dc2ab235f815"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restores cr to the state saved by a preceding call to <a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a> and removes that state from the stack of saved states.  <a href="#a45a80032b95d87eafe72dc2ab235f815">More...</a><br /></td></tr>
<tr class="separator:a45a80032b95d87eafe72dc2ab235f815"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61f276527b921cbd4fd81880ac372e2a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a61f276527b921cbd4fd81880ac372e2a">set_operator</a> (<a class="el" href="namespaceCairo.html#a2d612c31d146fc32d486f9614560c8d1">Operator</a> op)</td></tr>
<tr class="memdesc:a61f276527b921cbd4fd81880ac372e2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the compositing operator to be used for all drawing operations.  <a href="#a61f276527b921cbd4fd81880ac372e2a">More...</a><br /></td></tr>
<tr class="separator:a61f276527b921cbd4fd81880ac372e2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a534d571d5aa4b500782036202a3e2aea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a534d571d5aa4b500782036202a3e2aea">set_source</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1Pattern.html">Pattern</a> &gt;&amp; source)</td></tr>
<tr class="memdesc:a534d571d5aa4b500782036202a3e2aea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the source pattern within the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> to source.  <a href="#a534d571d5aa4b500782036202a3e2aea">More...</a><br /></td></tr>
<tr class="separator:a534d571d5aa4b500782036202a3e2aea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff3f3fc62bdf862646bb8cc568c30b2a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aff3f3fc62bdf862646bb8cc568c30b2a">set_source_rgb</a> (double red, double green, double blue)</td></tr>
<tr class="memdesc:aff3f3fc62bdf862646bb8cc568c30b2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the source pattern within the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> to an opaque color.  <a href="#aff3f3fc62bdf862646bb8cc568c30b2a">More...</a><br /></td></tr>
<tr class="separator:aff3f3fc62bdf862646bb8cc568c30b2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9267aed8eb866701178dcada6c7e51a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#af9267aed8eb866701178dcada6c7e51a">set_source_rgba</a> (double red, double green, double blue, double alpha)</td></tr>
<tr class="memdesc:af9267aed8eb866701178dcada6c7e51a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the source pattern within the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> to a translucent color.  <a href="#af9267aed8eb866701178dcada6c7e51a">More...</a><br /></td></tr>
<tr class="separator:af9267aed8eb866701178dcada6c7e51a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad88c0ef8700410920b37833b8e6ed329"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ad88c0ef8700410920b37833b8e6ed329">set_source</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&amp; surface, double x, double y)</td></tr>
<tr class="memdesc:ad88c0ef8700410920b37833b8e6ed329"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a convenience function for creating a pattern from a <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> and setting it as the source.  <a href="#ad88c0ef8700410920b37833b8e6ed329">More...</a><br /></td></tr>
<tr class="separator:ad88c0ef8700410920b37833b8e6ed329"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01481a915f4086051f1c200f0f7a33d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a01481a915f4086051f1c200f0f7a33d1">set_tolerance</a> (double tolerance)</td></tr>
<tr class="memdesc:a01481a915f4086051f1c200f0f7a33d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the tolerance used when converting paths into trapezoids.  <a href="#a01481a915f4086051f1c200f0f7a33d1">More...</a><br /></td></tr>
<tr class="separator:a01481a915f4086051f1c200f0f7a33d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79220a6785490688fdea41750d8933d6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a79220a6785490688fdea41750d8933d6">set_antialias</a> (<a class="el" href="namespaceCairo.html#a2cb381e7f63bef767a7d697fc5af13b4">Antialias</a> antialias)</td></tr>
<tr class="memdesc:a79220a6785490688fdea41750d8933d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the antialiasing mode of the rasterizer used for drawing shapes.  <a href="#a79220a6785490688fdea41750d8933d6">More...</a><br /></td></tr>
<tr class="separator:a79220a6785490688fdea41750d8933d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad15693ae817e3229409d831c7dd96bed"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ad15693ae817e3229409d831c7dd96bed">set_fill_rule</a> (<a class="el" href="namespaceCairo.html#a1ba15b0a2e22c87c14af044801006c85">FillRule</a> fill_rule)</td></tr>
<tr class="memdesc:ad15693ae817e3229409d831c7dd96bed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the current fill rule within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#ad15693ae817e3229409d831c7dd96bed">More...</a><br /></td></tr>
<tr class="separator:ad15693ae817e3229409d831c7dd96bed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ad2649d95e81a65aa0c581c4345375e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e">set_line_width</a> (double width)</td></tr>
<tr class="memdesc:a9ad2649d95e81a65aa0c581c4345375e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current line width within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#a9ad2649d95e81a65aa0c581c4345375e">More...</a><br /></td></tr>
<tr class="separator:a9ad2649d95e81a65aa0c581c4345375e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07fd8fc2c75558484e960c5ff63a61cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a07fd8fc2c75558484e960c5ff63a61cc">set_line_cap</a> (<a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1e">LineCap</a> line_cap)</td></tr>
<tr class="memdesc:a07fd8fc2c75558484e960c5ff63a61cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current line cap style within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#a07fd8fc2c75558484e960c5ff63a61cc">More...</a><br /></td></tr>
<tr class="separator:a07fd8fc2c75558484e960c5ff63a61cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23b5ba9363f568cacc1abf5e79a0200d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a23b5ba9363f568cacc1abf5e79a0200d">set_line_join</a> (<a class="el" href="namespaceCairo.html#adbc632404edaa736e01c12122239de73">LineJoin</a> line_join)</td></tr>
<tr class="memdesc:a23b5ba9363f568cacc1abf5e79a0200d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current line join style within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#a23b5ba9363f568cacc1abf5e79a0200d">More...</a><br /></td></tr>
<tr class="separator:a23b5ba9363f568cacc1abf5e79a0200d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa0b483d3f36facb1c9f2aa7f0a0ac13"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13">set_dash</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00964.html">std::valarray</a>&lt; double &gt;&amp; dashes, double offset)</td></tr>
<tr class="memdesc:aaa0b483d3f36facb1c9f2aa7f0a0ac13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alternate version of <a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a>.  <a href="#aaa0b483d3f36facb1c9f2aa7f0a0ac13">More...</a><br /></td></tr>
<tr class="separator:aaa0b483d3f36facb1c9f2aa7f0a0ac13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade74abb6db86a97ff3800e431e27ba45"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ade74abb6db86a97ff3800e431e27ba45">set_dash</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; double &gt;&amp; dashes, double offset)</td></tr>
<tr class="memdesc:ade74abb6db86a97ff3800e431e27ba45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the dash pattern to be used by <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>.  <a href="#ade74abb6db86a97ff3800e431e27ba45">More...</a><br /></td></tr>
<tr class="separator:ade74abb6db86a97ff3800e431e27ba45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73d1ece668f1534ed91ae97cbd6abffe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a73d1ece668f1534ed91ae97cbd6abffe">set_dash</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00964.html">std::valarray</a>&lt; double &gt;&amp; dashes, double offset)</td></tr>
<tr class="memdesc:a73d1ece668f1534ed91ae97cbd6abffe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alternate version of <a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a>.  <a href="#a73d1ece668f1534ed91ae97cbd6abffe">More...</a><br /></td></tr>
<tr class="separator:a73d1ece668f1534ed91ae97cbd6abffe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5de6d8a98135971116c63c28fd736b7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ad5de6d8a98135971116c63c28fd736b7">set_dash</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; double &gt;&amp; dashes, double offset)</td></tr>
<tr class="memdesc:ad5de6d8a98135971116c63c28fd736b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the dash pattern to be used by <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>.  <a href="#ad5de6d8a98135971116c63c28fd736b7">More...</a><br /></td></tr>
<tr class="separator:ad5de6d8a98135971116c63c28fd736b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab20ad42403add42a9388b281074b77d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ab20ad42403add42a9388b281074b77d2">unset_dash</a> ()</td></tr>
<tr class="memdesc:ab20ad42403add42a9388b281074b77d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function disables a dash pattern that was set with <a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a>  <a href="#ab20ad42403add42a9388b281074b77d2">More...</a><br /></td></tr>
<tr class="separator:ab20ad42403add42a9388b281074b77d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a583445ca963769d3f31613bc55b1e8ad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a583445ca963769d3f31613bc55b1e8ad">set_miter_limit</a> (double limit)</td></tr>
<tr class="memdesc:a583445ca963769d3f31613bc55b1e8ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current miter limit within the cairo context.  <a href="#a583445ca963769d3f31613bc55b1e8ad">More...</a><br /></td></tr>
<tr class="separator:a583445ca963769d3f31613bc55b1e8ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3058f50f915d9c43d165dfcd1a940cdc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a3058f50f915d9c43d165dfcd1a940cdc">translate</a> (double tx, double ty)</td></tr>
<tr class="memdesc:a3058f50f915d9c43d165dfcd1a940cdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modifies the current transformation matrix (CTM) by translating the user-space origin by (tx, ty).  <a href="#a3058f50f915d9c43d165dfcd1a940cdc">More...</a><br /></td></tr>
<tr class="separator:a3058f50f915d9c43d165dfcd1a940cdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45543fb03fb740fe4c013492f348e084"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a45543fb03fb740fe4c013492f348e084">scale</a> (double sx, double sy)</td></tr>
<tr class="memdesc:a45543fb03fb740fe4c013492f348e084"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modifies the current transformation matrix (CTM) by scaling the X and Y user-space axes by sx and sy respectively.  <a href="#a45543fb03fb740fe4c013492f348e084">More...</a><br /></td></tr>
<tr class="separator:a45543fb03fb740fe4c013492f348e084"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a332811cd74028c20b5832501ec46d67e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a332811cd74028c20b5832501ec46d67e">rotate</a> (double angle_radians)</td></tr>
<tr class="memdesc:a332811cd74028c20b5832501ec46d67e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modifies the current transformation matrix (CTM) by rotating the user-space axes by angle radians.  <a href="#a332811cd74028c20b5832501ec46d67e">More...</a><br /></td></tr>
<tr class="separator:a332811cd74028c20b5832501ec46d67e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ae251ef83d7c2985f4306abc905934d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a0ae251ef83d7c2985f4306abc905934d">rotate_degrees</a> (double angle_degres)</td></tr>
<tr class="memdesc:a0ae251ef83d7c2985f4306abc905934d"><td class="mdescLeft">&#160;</td><td class="mdescRight">A convenience wrapper around <a class="el" href="classCairo_1_1Context.html#a332811cd74028c20b5832501ec46d67e" title="Modifies the current transformation matrix (CTM) by rotating the user-space axes by angle radians...">rotate()</a> that accepts angles in degrees.  <a href="#a0ae251ef83d7c2985f4306abc905934d">More...</a><br /></td></tr>
<tr class="separator:a0ae251ef83d7c2985f4306abc905934d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac520512061fa271fff3b1f922f94c9cb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ac520512061fa271fff3b1f922f94c9cb">transform</a> (const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; matrix)</td></tr>
<tr class="memdesc:ac520512061fa271fff3b1f922f94c9cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modifies the current transformation matrix (CTM) by applying matrix as an additional transformation.  <a href="#ac520512061fa271fff3b1f922f94c9cb">More...</a><br /></td></tr>
<tr class="separator:ac520512061fa271fff3b1f922f94c9cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bb46fed0df67873bef36e8d7c515c5a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a1bb46fed0df67873bef36e8d7c515c5a">transform</a> (const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; matrix)</td></tr>
<tr class="separator:a1bb46fed0df67873bef36e8d7c515c5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2eafbac5591e569d22495f7920d60d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ac2eafbac5591e569d22495f7920d60d2">set_matrix</a> (const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; matrix)</td></tr>
<tr class="memdesc:ac2eafbac5591e569d22495f7920d60d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modifies the current transformation matrix (CTM) by setting it equal to matrix.  <a href="#ac2eafbac5591e569d22495f7920d60d2">More...</a><br /></td></tr>
<tr class="separator:ac2eafbac5591e569d22495f7920d60d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d94c400c393d7e40bf2d2bbf4e6dcba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a6d94c400c393d7e40bf2d2bbf4e6dcba">set_matrix</a> (const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; matrix)</td></tr>
<tr class="separator:a6d94c400c393d7e40bf2d2bbf4e6dcba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3e9b13312b6ef331830b5348093e19e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aa3e9b13312b6ef331830b5348093e19e">set_identity_matrix</a> ()</td></tr>
<tr class="memdesc:aa3e9b13312b6ef331830b5348093e19e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the current transformation matrix (CTM) by setting it equal to the identity matrix.  <a href="#aa3e9b13312b6ef331830b5348093e19e">More...</a><br /></td></tr>
<tr class="separator:aa3e9b13312b6ef331830b5348093e19e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9cc3eeb14b515b184be6a401c0993a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aa9cc3eeb14b515b184be6a401c0993a4">user_to_device</a> (double&amp; x, double&amp; y)</td></tr>
<tr class="memdesc:aa9cc3eeb14b515b184be6a401c0993a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform a coordinate from user space to device space by multiplying the given point by the current transformation matrix (CTM).  <a href="#aa9cc3eeb14b515b184be6a401c0993a4">More...</a><br /></td></tr>
<tr class="separator:aa9cc3eeb14b515b184be6a401c0993a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0daccfeaa8b173b26473e79271f7e88"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ab0daccfeaa8b173b26473e79271f7e88">user_to_device_distance</a> (double&amp; dx, double&amp; dy)</td></tr>
<tr class="memdesc:ab0daccfeaa8b173b26473e79271f7e88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform a distance vector from user space to device space.  <a href="#ab0daccfeaa8b173b26473e79271f7e88">More...</a><br /></td></tr>
<tr class="separator:ab0daccfeaa8b173b26473e79271f7e88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c7acaaf16d4740cd7fee2298bf2b5c4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a0c7acaaf16d4740cd7fee2298bf2b5c4">device_to_user</a> (double&amp; x, double&amp; y)</td></tr>
<tr class="memdesc:a0c7acaaf16d4740cd7fee2298bf2b5c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform a coordinate from device space to user space by multiplying the given point by the inverse of the current transformation matrix (CTM).  <a href="#a0c7acaaf16d4740cd7fee2298bf2b5c4">More...</a><br /></td></tr>
<tr class="separator:a0c7acaaf16d4740cd7fee2298bf2b5c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f396567b0504d1421abb5f7ed38cd97"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a2f396567b0504d1421abb5f7ed38cd97">device_to_user_distance</a> (double&amp; dx, double&amp; dy)</td></tr>
<tr class="memdesc:a2f396567b0504d1421abb5f7ed38cd97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform a distance vector from device space to user space.  <a href="#a2f396567b0504d1421abb5f7ed38cd97">More...</a><br /></td></tr>
<tr class="separator:a2f396567b0504d1421abb5f7ed38cd97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30ee2fbeca1cb347548d5b9d186e38ea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a30ee2fbeca1cb347548d5b9d186e38ea">user_to_device</a> (double&amp; x, double&amp; y) const </td></tr>
<tr class="memdesc:a30ee2fbeca1cb347548d5b9d186e38ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform a coordinate from user space to device space by multiplying the given point by the current transformation matrix (CTM).  <a href="#a30ee2fbeca1cb347548d5b9d186e38ea">More...</a><br /></td></tr>
<tr class="separator:a30ee2fbeca1cb347548d5b9d186e38ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14e24c58fc7f39af6a127ac5b684a9cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a14e24c58fc7f39af6a127ac5b684a9cc">user_to_device_distance</a> (double&amp; dx, double&amp; dy) const </td></tr>
<tr class="memdesc:a14e24c58fc7f39af6a127ac5b684a9cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform a distance vector from user space to device space.  <a href="#a14e24c58fc7f39af6a127ac5b684a9cc">More...</a><br /></td></tr>
<tr class="separator:a14e24c58fc7f39af6a127ac5b684a9cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41f54b367cae7c9efd35749cad69a260"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a41f54b367cae7c9efd35749cad69a260">device_to_user</a> (double&amp; x, double&amp; y) const </td></tr>
<tr class="memdesc:a41f54b367cae7c9efd35749cad69a260"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform a coordinate from device space to user space by multiplying the given point by the inverse of the current transformation matrix (CTM).  <a href="#a41f54b367cae7c9efd35749cad69a260">More...</a><br /></td></tr>
<tr class="separator:a41f54b367cae7c9efd35749cad69a260"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a522345149deb1b5545e0d9a4ba99b3be"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a522345149deb1b5545e0d9a4ba99b3be">device_to_user_distance</a> (double&amp; dx, double&amp; dy) const </td></tr>
<tr class="memdesc:a522345149deb1b5545e0d9a4ba99b3be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform a distance vector from device space to user space.  <a href="#a522345149deb1b5545e0d9a4ba99b3be">More...</a><br /></td></tr>
<tr class="separator:a522345149deb1b5545e0d9a4ba99b3be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a527efe9a3a5bf48f768e223d5f4fecca"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a527efe9a3a5bf48f768e223d5f4fecca">begin_new_path</a> ()</td></tr>
<tr class="memdesc:a527efe9a3a5bf48f768e223d5f4fecca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the current path.  <a href="#a527efe9a3a5bf48f768e223d5f4fecca">More...</a><br /></td></tr>
<tr class="separator:a527efe9a3a5bf48f768e223d5f4fecca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cb4b961893563c585ed05a67126b0df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a8cb4b961893563c585ed05a67126b0df">begin_new_sub_path</a> ()</td></tr>
<tr class="memdesc:a8cb4b961893563c585ed05a67126b0df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begin a new subpath.  <a href="#a8cb4b961893563c585ed05a67126b0df">More...</a><br /></td></tr>
<tr class="separator:a8cb4b961893563c585ed05a67126b0df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4086700b5f780fd3fb94bea941895022"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022">move_to</a> (double x, double y)</td></tr>
<tr class="memdesc:a4086700b5f780fd3fb94bea941895022"><td class="mdescLeft">&#160;</td><td class="mdescRight">If the current subpath is not empty, begin a new subpath.  <a href="#a4086700b5f780fd3fb94bea941895022">More...</a><br /></td></tr>
<tr class="separator:a4086700b5f780fd3fb94bea941895022"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae305a9f8a79cc0e0693393a940ee1de8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8">line_to</a> (double x, double y)</td></tr>
<tr class="memdesc:ae305a9f8a79cc0e0693393a940ee1de8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a line to the path from the current point to position (x, y) in user-space coordinates.  <a href="#ae305a9f8a79cc0e0693393a940ee1de8">More...</a><br /></td></tr>
<tr class="separator:ae305a9f8a79cc0e0693393a940ee1de8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bdb6a5e2ea0e4bc9441bdc5704805f7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a9bdb6a5e2ea0e4bc9441bdc5704805f7">curve_to</a> (double x1, double y1, double x2, double y2, double x3, double y3)</td></tr>
<tr class="memdesc:a9bdb6a5e2ea0e4bc9441bdc5704805f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a cubic Bezier spline to the path from the current point to position (x3, y3) in user-space coordinates, using (x1, y1) and (x2, y2) as the control points.  <a href="#a9bdb6a5e2ea0e4bc9441bdc5704805f7">More...</a><br /></td></tr>
<tr class="separator:a9bdb6a5e2ea0e4bc9441bdc5704805f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa96080beea581244f0a3838fb7c9ee6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aaa96080beea581244f0a3838fb7c9ee6">arc</a> (double xc, double yc, double radius, double angle1, double angle2)</td></tr>
<tr class="memdesc:aaa96080beea581244f0a3838fb7c9ee6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a circular arc of the given radius to the current path.  <a href="#aaa96080beea581244f0a3838fb7c9ee6">More...</a><br /></td></tr>
<tr class="separator:aaa96080beea581244f0a3838fb7c9ee6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a9e7517cd5afd49d729b8a87539a305"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a1a9e7517cd5afd49d729b8a87539a305">arc_negative</a> (double xc, double yc, double radius, double angle1, double angle2)</td></tr>
<tr class="memdesc:a1a9e7517cd5afd49d729b8a87539a305"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a circular arc of the given <em>radius</em> to the current path.  <a href="#a1a9e7517cd5afd49d729b8a87539a305">More...</a><br /></td></tr>
<tr class="separator:a1a9e7517cd5afd49d729b8a87539a305"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c739ac7e8e43d395f24dff0a0a83c0d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a3c739ac7e8e43d395f24dff0a0a83c0d">rel_move_to</a> (double dx, double dy)</td></tr>
<tr class="memdesc:a3c739ac7e8e43d395f24dff0a0a83c0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">If the current subpath is not empty, begin a new subpath.  <a href="#a3c739ac7e8e43d395f24dff0a0a83c0d">More...</a><br /></td></tr>
<tr class="separator:a3c739ac7e8e43d395f24dff0a0a83c0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35f2d0f7e9afcb59eef83af3d2831f2b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a35f2d0f7e9afcb59eef83af3d2831f2b">rel_line_to</a> (double dx, double dy)</td></tr>
<tr class="memdesc:a35f2d0f7e9afcb59eef83af3d2831f2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Relative-coordinate version of <a class="el" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8" title="Adds a line to the path from the current point to position (x, y) in user-space coordinates. ">line_to()</a>.  <a href="#a35f2d0f7e9afcb59eef83af3d2831f2b">More...</a><br /></td></tr>
<tr class="separator:a35f2d0f7e9afcb59eef83af3d2831f2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7660dac997d5db2f7ce1539c20345e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ad7660dac997d5db2f7ce1539c20345e2">rel_curve_to</a> (double dx1, double dy1, double dx2, double dy2, double dx3, double dy3)</td></tr>
<tr class="memdesc:ad7660dac997d5db2f7ce1539c20345e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Relative-coordinate version of <a class="el" href="classCairo_1_1Context.html#a9bdb6a5e2ea0e4bc9441bdc5704805f7" title="Adds a cubic Bezier spline to the path from the current point to position (x3, y3) in user-space coor...">curve_to()</a>.  <a href="#ad7660dac997d5db2f7ce1539c20345e2">More...</a><br /></td></tr>
<tr class="separator:ad7660dac997d5db2f7ce1539c20345e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85ee124b89c43dc29ff0d964bd005c11"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a85ee124b89c43dc29ff0d964bd005c11">rectangle</a> (double x, double y, double width, double height)</td></tr>
<tr class="memdesc:a85ee124b89c43dc29ff0d964bd005c11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a closed-subpath rectangle of the given size to the current path at position (x, y) in user-space coordinates.  <a href="#a85ee124b89c43dc29ff0d964bd005c11">More...</a><br /></td></tr>
<tr class="separator:a85ee124b89c43dc29ff0d964bd005c11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32211b0684b1d264c17402b5289fcba0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a32211b0684b1d264c17402b5289fcba0">close_path</a> ()</td></tr>
<tr class="memdesc:a32211b0684b1d264c17402b5289fcba0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a line segment to the path from the current point to the beginning of the current subpath, (the most recent point passed to <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a>), and closes this subpath.  <a href="#a32211b0684b1d264c17402b5289fcba0">More...</a><br /></td></tr>
<tr class="separator:a32211b0684b1d264c17402b5289fcba0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad919eae3bc3b9827a3c1ceff2d86833e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ad919eae3bc3b9827a3c1ceff2d86833e">paint</a> ()</td></tr>
<tr class="memdesc:ad919eae3bc3b9827a3c1ceff2d86833e"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that paints the current source everywhere within the current clip region.  <a href="#ad919eae3bc3b9827a3c1ceff2d86833e">More...</a><br /></td></tr>
<tr class="separator:ad919eae3bc3b9827a3c1ceff2d86833e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34208a6c6868cdcd65866cb8a2349525"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a34208a6c6868cdcd65866cb8a2349525">paint_with_alpha</a> (double alpha)</td></tr>
<tr class="memdesc:a34208a6c6868cdcd65866cb8a2349525"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that paints the current source everywhere within the current clip region using a mask of constant alpha value alpha.  <a href="#a34208a6c6868cdcd65866cb8a2349525">More...</a><br /></td></tr>
<tr class="separator:a34208a6c6868cdcd65866cb8a2349525"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ad3ea59afb6bb4fa04d000f5e9c3cf2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a2ad3ea59afb6bb4fa04d000f5e9c3cf2">mask</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1Pattern.html">Pattern</a> &gt;&amp; pattern)</td></tr>
<tr class="memdesc:a2ad3ea59afb6bb4fa04d000f5e9c3cf2"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that paints the current source using the alpha channel of pattern as a mask.  <a href="#a2ad3ea59afb6bb4fa04d000f5e9c3cf2">More...</a><br /></td></tr>
<tr class="separator:a2ad3ea59afb6bb4fa04d000f5e9c3cf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f76e3b13027efc4c8745de5e04e00ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a2f76e3b13027efc4c8745de5e04e00ec">mask</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&amp; surface, double surface_x, double surface_y)</td></tr>
<tr class="memdesc:a2f76e3b13027efc4c8745de5e04e00ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that paints the current source using the alpha channel of surface as a mask.  <a href="#a2f76e3b13027efc4c8745de5e04e00ec">More...</a><br /></td></tr>
<tr class="separator:a2f76e3b13027efc4c8745de5e04e00ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e4acbb44f4b3fac00ee93f6251d6d17"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17">stroke</a> ()</td></tr>
<tr class="memdesc:a8e4acbb44f4b3fac00ee93f6251d6d17"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that strokes the current <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> according to the current line width, line join, line cap, and dash settings.  <a href="#a8e4acbb44f4b3fac00ee93f6251d6d17">More...</a><br /></td></tr>
<tr class="separator:a8e4acbb44f4b3fac00ee93f6251d6d17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab10d89295e122b04ff1bbda425ae069c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ab10d89295e122b04ff1bbda425ae069c">stroke_preserve</a> ()</td></tr>
<tr class="memdesc:ab10d89295e122b04ff1bbda425ae069c"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that strokes the current <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> according to the current line width, line join, line cap, and dash settings.  <a href="#ab10d89295e122b04ff1bbda425ae069c">More...</a><br /></td></tr>
<tr class="separator:ab10d89295e122b04ff1bbda425ae069c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a484790884dd138108b07c0ebbbe21d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d">fill</a> ()</td></tr>
<tr class="memdesc:a0a484790884dd138108b07c0ebbbe21d"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled).  <a href="#a0a484790884dd138108b07c0ebbbe21d">More...</a><br /></td></tr>
<tr class="separator:a0a484790884dd138108b07c0ebbbe21d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ef3f887f91527a485ce1300972ac8e3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a0ef3f887f91527a485ce1300972ac8e3">fill_preserve</a> ()</td></tr>
<tr class="memdesc:a0ef3f887f91527a485ce1300972ac8e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled).  <a href="#a0ef3f887f91527a485ce1300972ac8e3">More...</a><br /></td></tr>
<tr class="separator:a0ef3f887f91527a485ce1300972ac8e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ccbeacb2a7f2d787b3daf31a69383fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a7ccbeacb2a7f2d787b3daf31a69383fd">copy_page</a> ()</td></tr>
<tr class="memdesc:a7ccbeacb2a7f2d787b3daf31a69383fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Emits the current page for backends that support multiple pages, but doesn't clear it, so, the contents of the current page will be retained for the next page too.  <a href="#a7ccbeacb2a7f2d787b3daf31a69383fd">More...</a><br /></td></tr>
<tr class="separator:a7ccbeacb2a7f2d787b3daf31a69383fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a525cac95b4d4c2abea12b82c433adba9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a525cac95b4d4c2abea12b82c433adba9">show_page</a> ()</td></tr>
<tr class="memdesc:a525cac95b4d4c2abea12b82c433adba9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Emits and clears the current page for backends that support multiple pages.  <a href="#a525cac95b4d4c2abea12b82c433adba9">More...</a><br /></td></tr>
<tr class="separator:a525cac95b4d4c2abea12b82c433adba9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15e153f40f02aaccd0aed27f7720bf6a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a15e153f40f02aaccd0aed27f7720bf6a">in_stroke</a> (double x, double y) const </td></tr>
<tr class="memdesc:a15e153f40f02aaccd0aed27f7720bf6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tests whether the given point is inside the area that would be affected by a <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a> operation given the current path and stroking parameters.  <a href="#a15e153f40f02aaccd0aed27f7720bf6a">More...</a><br /></td></tr>
<tr class="separator:a15e153f40f02aaccd0aed27f7720bf6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d50e91f8ed135cee8741fef805df070"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a3d50e91f8ed135cee8741fef805df070">in_fill</a> (double x, double y) const </td></tr>
<tr class="memdesc:a3d50e91f8ed135cee8741fef805df070"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tests whether the given point is inside the area that would be affected by a <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> operation given the current path and filling parameters.  <a href="#a3d50e91f8ed135cee8741fef805df070">More...</a><br /></td></tr>
<tr class="separator:a3d50e91f8ed135cee8741fef805df070"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99dafb17beaaf5e115a731f35a828684"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a99dafb17beaaf5e115a731f35a828684">in_clip</a> (double x, double y) const </td></tr>
<tr class="memdesc:a99dafb17beaaf5e115a731f35a828684"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tests whether the given point is inside the area that would be visible through the current clip, i.e.  <a href="#a99dafb17beaaf5e115a731f35a828684">More...</a><br /></td></tr>
<tr class="separator:a99dafb17beaaf5e115a731f35a828684"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbcad49bf4f75eca485fa4d728255ae0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#afbcad49bf4f75eca485fa4d728255ae0">get_stroke_extents</a> (double&amp; x1, double&amp; y1, double&amp; x2, double&amp; y2) const </td></tr>
<tr class="memdesc:afbcad49bf4f75eca485fa4d728255ae0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes a bounding box in user coordinates covering the area that would be affected, (the "inked" area), by a <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a> operation given the current path and stroke parameters.  <a href="#afbcad49bf4f75eca485fa4d728255ae0">More...</a><br /></td></tr>
<tr class="separator:afbcad49bf4f75eca485fa4d728255ae0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80bceb0e11be82c365b4606efe3a8d30"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a80bceb0e11be82c365b4606efe3a8d30">get_fill_extents</a> (double&amp; x1, double&amp; y1, double&amp; x2, double&amp; y2) const </td></tr>
<tr class="memdesc:a80bceb0e11be82c365b4606efe3a8d30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes a bounding box in user coordinates covering the area that would be affected, (the "inked" area), by a <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> operation given the current path and fill parameters.  <a href="#a80bceb0e11be82c365b4606efe3a8d30">More...</a><br /></td></tr>
<tr class="separator:a80bceb0e11be82c365b4606efe3a8d30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82d001967dc8ba3e45f4d7a06c4b9ff2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a82d001967dc8ba3e45f4d7a06c4b9ff2">reset_clip</a> ()</td></tr>
<tr class="memdesc:a82d001967dc8ba3e45f4d7a06c4b9ff2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the current clip region to its original, unrestricted state.  <a href="#a82d001967dc8ba3e45f4d7a06c4b9ff2">More...</a><br /></td></tr>
<tr class="separator:a82d001967dc8ba3e45f4d7a06c4b9ff2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a423077b911738772807cc8bc24c25488"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488">clip</a> ()</td></tr>
<tr class="memdesc:a423077b911738772807cc8bc24c25488"><td class="mdescLeft">&#160;</td><td class="mdescRight">Establishes a new clip region by intersecting the current clip region with the current <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> as it would be filled by <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> and according to the current fill rule.  <a href="#a423077b911738772807cc8bc24c25488">More...</a><br /></td></tr>
<tr class="separator:a423077b911738772807cc8bc24c25488"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2987c4ecac0438ee808c34d3c35c7f2e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a2987c4ecac0438ee808c34d3c35c7f2e">clip_preserve</a> ()</td></tr>
<tr class="memdesc:a2987c4ecac0438ee808c34d3c35c7f2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Establishes a new clip region by intersecting the current clip region with the current path as it would be filled by <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> and according to the current fill rule.  <a href="#a2987c4ecac0438ee808c34d3c35c7f2e">More...</a><br /></td></tr>
<tr class="separator:a2987c4ecac0438ee808c34d3c35c7f2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7211a6110201b959ee46c47aa173b12a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a7211a6110201b959ee46c47aa173b12a">get_clip_extents</a> (double&amp; x1, double&amp; y1, double&amp; x2, double&amp; y2) const </td></tr>
<tr class="memdesc:a7211a6110201b959ee46c47aa173b12a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes a bounding box in user coordinates covering the area inside the current clip.  <a href="#a7211a6110201b959ee46c47aa173b12a">More...</a><br /></td></tr>
<tr class="separator:a7211a6110201b959ee46c47aa173b12a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dc19917311f812e667d71102b0d986b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a7dc19917311f812e667d71102b0d986b">copy_clip_rectangle_list</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a5a956a3226f8c0cece695c49f453e124">Rectangle</a> &gt;&amp; rectangles) const </td></tr>
<tr class="memdesc:a7dc19917311f812e667d71102b0d986b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current clip region as a list of rectangles in user coordinates.  <a href="#a7dc19917311f812e667d71102b0d986b">More...</a><br /></td></tr>
<tr class="separator:a7dc19917311f812e667d71102b0d986b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb1da5f3949195f76424e11be923fbfd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#acb1da5f3949195f76424e11be923fbfd">select_font_face</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; family, <a class="el" href="namespaceCairo.html#a0a2c19fefac301a702a6b7fdb368bf55">FontSlant</a> slant, <a class="el" href="namespaceCairo.html#ad8514818fb9292a5864b57f4b8a1e546">FontWeight</a> weight)</td></tr>
<tr class="memdesc:acb1da5f3949195f76424e11be923fbfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selects a family and style of font from a simplified description as a family name, slant and weight.  <a href="#acb1da5f3949195f76424e11be923fbfd">More...</a><br /></td></tr>
<tr class="separator:acb1da5f3949195f76424e11be923fbfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8a04a09c2e871a470fd030edb45b024"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ac8a04a09c2e871a470fd030edb45b024">set_font_size</a> (double <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01656.html#ga445a43f417432dd1b9aed90ef239c700">size</a>)</td></tr>
<tr class="memdesc:ac8a04a09c2e871a470fd030edb45b024"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current font matrix to a scale by a factor of <em>size</em>, replacing any font matrix previously set with <a class="el" href="classCairo_1_1Context.html#ac8a04a09c2e871a470fd030edb45b024" title="Sets the current font matrix to a scale by a factor of size, replacing any font matrix previously set...">set_font_size()</a> or <a class="el" href="classCairo_1_1Context.html#a7981bd1109ec5538fb505b36ec377757" title="Sets the current font matrix to . ">set_font_matrix()</a>.  <a href="#ac8a04a09c2e871a470fd030edb45b024">More...</a><br /></td></tr>
<tr class="separator:ac8a04a09c2e871a470fd030edb45b024"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7981bd1109ec5538fb505b36ec377757"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a7981bd1109ec5538fb505b36ec377757">set_font_matrix</a> (const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; matrix)</td></tr>
<tr class="memdesc:a7981bd1109ec5538fb505b36ec377757"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current font matrix to .  <a href="#a7981bd1109ec5538fb505b36ec377757">More...</a><br /></td></tr>
<tr class="separator:a7981bd1109ec5538fb505b36ec377757"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aada6eda8880143f16721d6311206b25f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aada6eda8880143f16721d6311206b25f">get_font_matrix</a> (<a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; matrix) const </td></tr>
<tr class="memdesc:aada6eda8880143f16721d6311206b25f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current font matrix.  <a href="#aada6eda8880143f16721d6311206b25f">More...</a><br /></td></tr>
<tr class="separator:aada6eda8880143f16721d6311206b25f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d7f465d946804a8fe9877d7f7f4bbcb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a2d7f465d946804a8fe9877d7f7f4bbcb">set_font_options</a> (const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp; options)</td></tr>
<tr class="memdesc:a2d7f465d946804a8fe9877d7f7f4bbcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a set of custom font rendering options.  <a href="#a2d7f465d946804a8fe9877d7f7f4bbcb">More...</a><br /></td></tr>
<tr class="separator:a2d7f465d946804a8fe9877d7f7f4bbcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d44b4f4e45a4fb2a794f3486f895640"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a8d44b4f4e45a4fb2a794f3486f895640">set_font_matrix</a> (const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; matrix)</td></tr>
<tr class="separator:a8d44b4f4e45a4fb2a794f3486f895640"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34be6fb9a99354259d3944b1b31c634b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a34be6fb9a99354259d3944b1b31c634b">get_font_matrix</a> (<a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; matrix) const </td></tr>
<tr class="separator:a34be6fb9a99354259d3944b1b31c634b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab69217658ea7fa4e859aa305e3bc3ebc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ab69217658ea7fa4e859aa305e3bc3ebc">get_font_options</a> (<a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp; options) const </td></tr>
<tr class="memdesc:ab69217658ea7fa4e859aa305e3bc3ebc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves font rendering options set via <a class="el" href="classCairo_1_1Context.html#a2d7f465d946804a8fe9877d7f7f4bbcb" title="Sets a set of custom font rendering options. ">set_font_options()</a>.  <a href="#ab69217658ea7fa4e859aa305e3bc3ebc">More...</a><br /></td></tr>
<tr class="separator:ab69217658ea7fa4e859aa305e3bc3ebc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa8c0b24d9338d392c18435babeb4263"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aaa8c0b24d9338d392c18435babeb4263">set_scaled_font</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1ScaledFont.html">ScaledFont</a> &gt;&amp; scaled_font)</td></tr>
<tr class="memdesc:aaa8c0b24d9338d392c18435babeb4263"><td class="mdescLeft">&#160;</td><td class="mdescRight">Replaces the current font face, font matrix, and font options in the context with those of the <em>scaled_font</em>.  <a href="#aaa8c0b24d9338d392c18435babeb4263">More...</a><br /></td></tr>
<tr class="separator:aaa8c0b24d9338d392c18435babeb4263"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a511ca42d6c21a4cfc9ce4c4b1116ddad"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1ScaledFont.html">ScaledFont</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a511ca42d6c21a4cfc9ce4c4b1116ddad">get_scaled_font</a> ()</td></tr>
<tr class="memdesc:a511ca42d6c21a4cfc9ce4c4b1116ddad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current scaled font.  <a href="#a511ca42d6c21a4cfc9ce4c4b1116ddad">More...</a><br /></td></tr>
<tr class="separator:a511ca42d6c21a4cfc9ce4c4b1116ddad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a584596d6f12dbea30519b908cacce038"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a584596d6f12dbea30519b908cacce038">show_text</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; utf8)</td></tr>
<tr class="memdesc:a584596d6f12dbea30519b908cacce038"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to the current font_face, font_size (font_matrix), and font_options.  <a href="#a584596d6f12dbea30519b908cacce038">More...</a><br /></td></tr>
<tr class="separator:a584596d6f12dbea30519b908cacce038"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af51f2c2ff72e8af66abeea3d15d25553"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#af51f2c2ff72e8af66abeea3d15d25553">show_glyphs</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp; glyphs)</td></tr>
<tr class="memdesc:af51f2c2ff72e8af66abeea3d15d25553"><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing operator that generates the shape from an array of glyphs, rendered according to the current font face, font size (font matrix), and font options.  <a href="#af51f2c2ff72e8af66abeea3d15d25553">More...</a><br /></td></tr>
<tr class="separator:af51f2c2ff72e8af66abeea3d15d25553"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45723fd605cc2343ab46cf603d330002"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a45723fd605cc2343ab46cf603d330002">show_text_glyphs</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; utf8, const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp; glyphs, const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a3c23510889078c8a75d66add004ab288">TextCluster</a> &gt;&amp; clusters, <a class="el" href="namespaceCairo.html#a61b770cf36c555a4098b5428e030542a">TextClusterFlags</a> cluster_flags)</td></tr>
<tr class="memdesc:a45723fd605cc2343ab46cf603d330002"><td class="mdescLeft">&#160;</td><td class="mdescRight">This operation has rendering effects similar to <a class="el" href="classCairo_1_1Context.html#af51f2c2ff72e8af66abeea3d15d25553" title="A drawing operator that generates the shape from an array of glyphs, rendered according to the curren...">show_glyphs()</a> but, if the target surface supports it, uses the provided text and cluster mapping to embed the text for the glyphs shown in the output.  <a href="#a45723fd605cc2343ab46cf603d330002">More...</a><br /></td></tr>
<tr class="separator:a45723fd605cc2343ab46cf603d330002"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbe72f83295624f8905a350c589e7209"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#acbe72f83295624f8905a350c589e7209">get_font_extents</a> (<a class="el" href="namespaceCairo.html#aa7da46c699a67bfbdd5400af7e6b7b39">FontExtents</a>&amp; extents) const </td></tr>
<tr class="memdesc:acbe72f83295624f8905a350c589e7209"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the font extents for the currently selected font.  <a href="#acbe72f83295624f8905a350c589e7209">More...</a><br /></td></tr>
<tr class="separator:acbe72f83295624f8905a350c589e7209"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b344db51097aba30e36452e1364faef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a9b344db51097aba30e36452e1364faef">set_font_face</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&amp; font_face)</td></tr>
<tr class="memdesc:a9b344db51097aba30e36452e1364faef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Replaces the current font face in the context with <em>font_face</em> <em>font_face</em>.  <a href="#a9b344db51097aba30e36452e1364faef">More...</a><br /></td></tr>
<tr class="separator:a9b344db51097aba30e36452e1364faef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a837ff58a69e3e74f6a6ef9da8454af2b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a837ff58a69e3e74f6a6ef9da8454af2b">get_text_extents</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; utf8, <a class="el" href="namespaceCairo.html#af6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp; extents) const </td></tr>
<tr class="memdesc:a837ff58a69e3e74f6a6ef9da8454af2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the extents for a string of text.  <a href="#a837ff58a69e3e74f6a6ef9da8454af2b">More...</a><br /></td></tr>
<tr class="separator:a837ff58a69e3e74f6a6ef9da8454af2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa37e5c6559f2573cfc55bb6fa5f6ef6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#afa37e5c6559f2573cfc55bb6fa5f6ef6">get_glyph_extents</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp; glyphs, <a class="el" href="namespaceCairo.html#af6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp; extents) const </td></tr>
<tr class="memdesc:afa37e5c6559f2573cfc55bb6fa5f6ef6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the extents for an array of glyphs.  <a href="#afa37e5c6559f2573cfc55bb6fa5f6ef6">More...</a><br /></td></tr>
<tr class="separator:afa37e5c6559f2573cfc55bb6fa5f6ef6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5613b4202f82f6a53f1aeac6c58e5521"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a5613b4202f82f6a53f1aeac6c58e5521">text_path</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>&amp; utf8)</td></tr>
<tr class="memdesc:a5613b4202f82f6a53f1aeac6c58e5521"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds closed paths for text to the current path.  <a href="#a5613b4202f82f6a53f1aeac6c58e5521">More...</a><br /></td></tr>
<tr class="separator:a5613b4202f82f6a53f1aeac6c58e5521"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3372fc30d9a26c8d26c440a21464ce5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ad3372fc30d9a26c8d26c440a21464ce5">glyph_path</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp; glyphs)</td></tr>
<tr class="memdesc:ad3372fc30d9a26c8d26c440a21464ce5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds closed paths for the glyphs to the current path.  <a href="#ad3372fc30d9a26c8d26c440a21464ce5">More...</a><br /></td></tr>
<tr class="separator:ad3372fc30d9a26c8d26c440a21464ce5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5683fc9da28916cb237b4868a9c5d97"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#a2d612c31d146fc32d486f9614560c8d1">Operator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aa5683fc9da28916cb237b4868a9c5d97">get_operator</a> () const </td></tr>
<tr class="memdesc:aa5683fc9da28916cb237b4868a9c5d97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current compositing operator for a cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#aa5683fc9da28916cb237b4868a9c5d97">More...</a><br /></td></tr>
<tr class="separator:aa5683fc9da28916cb237b4868a9c5d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a216632e43aa061890c0a637ea41f7960"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a216632e43aa061890c0a637ea41f7960">get_tolerance</a> () const </td></tr>
<tr class="memdesc:a216632e43aa061890c0a637ea41f7960"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current tolerance value, as set by <a class="el" href="classCairo_1_1Context.html#a01481a915f4086051f1c200f0f7a33d1" title="Sets the tolerance used when converting paths into trapezoids. ">set_tolerance()</a>  <a href="#a216632e43aa061890c0a637ea41f7960">More...</a><br /></td></tr>
<tr class="separator:a216632e43aa061890c0a637ea41f7960"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3269ed87a45ce150d1b7bd00c1c18a80"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#a2cb381e7f63bef767a7d697fc5af13b4">Antialias</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a3269ed87a45ce150d1b7bd00c1c18a80">get_antialias</a> () const </td></tr>
<tr class="memdesc:a3269ed87a45ce150d1b7bd00c1c18a80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current shape antialiasing mode, as set by <a class="el" href="classCairo_1_1Context.html#a79220a6785490688fdea41750d8933d6" title="Set the antialiasing mode of the rasterizer used for drawing shapes. ">set_antialias()</a>  <a href="#a3269ed87a45ce150d1b7bd00c1c18a80">More...</a><br /></td></tr>
<tr class="separator:a3269ed87a45ce150d1b7bd00c1c18a80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69b25af8a2bac826a330e1bfeb2f1a1f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a69b25af8a2bac826a330e1bfeb2f1a1f">get_current_point</a> (double&amp; x, double&amp; y) const </td></tr>
<tr class="memdesc:a69b25af8a2bac826a330e1bfeb2f1a1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current point of the current path, which is conceptually the final point reached by the path so far.  <a href="#a69b25af8a2bac826a330e1bfeb2f1a1f">More...</a><br /></td></tr>
<tr class="separator:a69b25af8a2bac826a330e1bfeb2f1a1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1db62850e9879589bacd463e54406b50"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a1db62850e9879589bacd463e54406b50">has_current_point</a> () const </td></tr>
<tr class="memdesc:a1db62850e9879589bacd463e54406b50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if there is a current point defined.  <a href="#a1db62850e9879589bacd463e54406b50">More...</a><br /></td></tr>
<tr class="separator:a1db62850e9879589bacd463e54406b50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21a26ea9c08bb3c9c4180635f58fa7f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#a1ba15b0a2e22c87c14af044801006c85">FillRule</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a21a26ea9c08bb3c9c4180635f58fa7f8">get_fill_rule</a> () const </td></tr>
<tr class="memdesc:a21a26ea9c08bb3c9c4180635f58fa7f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current fill rule, as set by <a class="el" href="classCairo_1_1Context.html#ad15693ae817e3229409d831c7dd96bed" title="Set the current fill rule within the cairo Context. ">set_fill_rule()</a>.  <a href="#a21a26ea9c08bb3c9c4180635f58fa7f8">More...</a><br /></td></tr>
<tr class="separator:a21a26ea9c08bb3c9c4180635f58fa7f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aacb5cd843266b708ae47bc9a4f7014"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a2aacb5cd843266b708ae47bc9a4f7014">get_line_width</a> () const </td></tr>
<tr class="memdesc:a2aacb5cd843266b708ae47bc9a4f7014"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current line width, as set by <a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a>.  <a href="#a2aacb5cd843266b708ae47bc9a4f7014">More...</a><br /></td></tr>
<tr class="separator:a2aacb5cd843266b708ae47bc9a4f7014"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf84f561587f41a6cdaffe8024ebf96c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1e">LineCap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aaf84f561587f41a6cdaffe8024ebf96c">get_line_cap</a> () const </td></tr>
<tr class="memdesc:aaf84f561587f41a6cdaffe8024ebf96c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current line cap style, as set by <a class="el" href="classCairo_1_1Context.html#a07fd8fc2c75558484e960c5ff63a61cc" title="Sets the current line cap style within the cairo Context. ">set_line_cap()</a>  <a href="#aaf84f561587f41a6cdaffe8024ebf96c">More...</a><br /></td></tr>
<tr class="separator:aaf84f561587f41a6cdaffe8024ebf96c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a543677421cced4e1eca10f70dd36220f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#adbc632404edaa736e01c12122239de73">LineJoin</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a543677421cced4e1eca10f70dd36220f">get_line_join</a> () const </td></tr>
<tr class="memdesc:a543677421cced4e1eca10f70dd36220f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current line join style, as set by <a class="el" href="classCairo_1_1Context.html#a23b5ba9363f568cacc1abf5e79a0200d" title="Sets the current line join style within the cairo Context. ">set_line_join()</a>  <a href="#a543677421cced4e1eca10f70dd36220f">More...</a><br /></td></tr>
<tr class="separator:a543677421cced4e1eca10f70dd36220f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55c7e2c0533e35635c31c34ec498a4a2"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a55c7e2c0533e35635c31c34ec498a4a2">get_miter_limit</a> () const </td></tr>
<tr class="memdesc:a55c7e2c0533e35635c31c34ec498a4a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current miter limit, as set by <a class="el" href="classCairo_1_1Context.html#a583445ca963769d3f31613bc55b1e8ad" title="Sets the current miter limit within the cairo context. ">set_miter_limit()</a>  <a href="#a55c7e2c0533e35635c31c34ec498a4a2">More...</a><br /></td></tr>
<tr class="separator:a55c7e2c0533e35635c31c34ec498a4a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa43d0034e155d3c0244e0b4fdaf6af9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aaa43d0034e155d3c0244e0b4fdaf6af9">get_dash</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; double &gt;&amp; dashes, double&amp; offset) const </td></tr>
<tr class="memdesc:aaa43d0034e155d3c0244e0b4fdaf6af9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current dash array and offset.  <a href="#aaa43d0034e155d3c0244e0b4fdaf6af9">More...</a><br /></td></tr>
<tr class="separator:aaa43d0034e155d3c0244e0b4fdaf6af9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03b21f4a3a44e28086c3a25075fdcea1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a03b21f4a3a44e28086c3a25075fdcea1">get_matrix</a> (<a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp; matrix)</td></tr>
<tr class="memdesc:a03b21f4a3a44e28086c3a25075fdcea1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores the current transformation matrix (CTM) into matrix.  <a href="#a03b21f4a3a44e28086c3a25075fdcea1">More...</a><br /></td></tr>
<tr class="separator:a03b21f4a3a44e28086c3a25075fdcea1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea651404be2fa942033c636e2665cd7e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aea651404be2fa942033c636e2665cd7e">get_matrix</a> (<a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp; matrix)</td></tr>
<tr class="separator:aea651404be2fa942033c636e2665cd7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99cadcdd63e366bc793306e8d3cfee37"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a99cadcdd63e366bc793306e8d3cfee37">get_matrix</a> () const </td></tr>
<tr class="memdesc:a99cadcdd63e366bc793306e8d3cfee37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current transformation matrix (CTM)  <a href="#a99cadcdd63e366bc793306e8d3cfee37">More...</a><br /></td></tr>
<tr class="separator:a99cadcdd63e366bc793306e8d3cfee37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48743c731a58fb25524593dc90b567b3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1Path.html">Path</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a48743c731a58fb25524593dc90b567b3">copy_path</a> () const </td></tr>
<tr class="memdesc:a48743c731a58fb25524593dc90b567b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of the current path and returns it to the user.  <a href="#a48743c731a58fb25524593dc90b567b3">More...</a><br /></td></tr>
<tr class="separator:a48743c731a58fb25524593dc90b567b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28d0fa55e1d478ec05975b3c9f545c53"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a28d0fa55e1d478ec05975b3c9f545c53">get_path_extents</a> (double&amp; x1, double&amp; y1, double&amp; x2, double&amp; y2) const </td></tr>
<tr class="memdesc:a28d0fa55e1d478ec05975b3c9f545c53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes a bounding box in user-space coordinates covering the points on the current path.  <a href="#a28d0fa55e1d478ec05975b3c9f545c53">More...</a><br /></td></tr>
<tr class="separator:a28d0fa55e1d478ec05975b3c9f545c53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5213dad7e0b0054d631053abe0df1c7d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1Path.html">Path</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a5213dad7e0b0054d631053abe0df1c7d">copy_path_flat</a> () const </td></tr>
<tr class="memdesc:a5213dad7e0b0054d631053abe0df1c7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a flattened copy of the current path and returns it to the user.  <a href="#a5213dad7e0b0054d631053abe0df1c7d">More...</a><br /></td></tr>
<tr class="separator:a5213dad7e0b0054d631053abe0df1c7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee34ef17540ad11f33176e8897d73203"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aee34ef17540ad11f33176e8897d73203">append_path</a> (const <a class="el" href="classCairo_1_1Path.html">Path</a>&amp; path)</td></tr>
<tr class="memdesc:aee34ef17540ad11f33176e8897d73203"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append the path onto the current path.  <a href="#aee34ef17540ad11f33176e8897d73203">More...</a><br /></td></tr>
<tr class="separator:aee34ef17540ad11f33176e8897d73203"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0a5a1ee48ff742d87480a689dca51c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6">push_group</a> ()</td></tr>
<tr class="memdesc:aa0a5a1ee48ff742d87480a689dca51c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Temporarily redirects drawing to an intermediate surface known as a group.  <a href="#aa0a5a1ee48ff742d87480a689dca51c6">More...</a><br /></td></tr>
<tr class="separator:aa0a5a1ee48ff742d87480a689dca51c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad08812ecb59891f92e79a3d4dbca2d97"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ad08812ecb59891f92e79a3d4dbca2d97">push_group_with_content</a> (<a class="el" href="namespaceCairo.html#a1f0f5d82599dfeabbeb2396dbfd767d0">Content</a> content)</td></tr>
<tr class="memdesc:ad08812ecb59891f92e79a3d4dbca2d97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Temporarily redirects drawing to an intermediate surface known as a group.  <a href="#ad08812ecb59891f92e79a3d4dbca2d97">More...</a><br /></td></tr>
<tr class="separator:ad08812ecb59891f92e79a3d4dbca2d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aece6278f4d71ce652557c80788415711"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Pattern.html">Pattern</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aece6278f4d71ce652557c80788415711">pop_group</a> ()</td></tr>
<tr class="memdesc:aece6278f4d71ce652557c80788415711"><td class="mdescLeft">&#160;</td><td class="mdescRight">Terminates the redirection begun by a call to <a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group()</a> or <a class="el" href="classCairo_1_1Context.html#ad08812ecb59891f92e79a3d4dbca2d97" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group_with_content()</a> and returns a new pattern containing the results of all drawing operations performed to the group.  <a href="#aece6278f4d71ce652557c80788415711">More...</a><br /></td></tr>
<tr class="separator:aece6278f4d71ce652557c80788415711"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd11fa1d3a582e0975ebb0155b9d4467"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#abd11fa1d3a582e0975ebb0155b9d4467">pop_group_to_source</a> ()</td></tr>
<tr class="memdesc:abd11fa1d3a582e0975ebb0155b9d4467"><td class="mdescLeft">&#160;</td><td class="mdescRight">Terminates the redirection begun by a call to <a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group()</a> or <a class="el" href="classCairo_1_1Context.html#ad08812ecb59891f92e79a3d4dbca2d97" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group_with_content()</a> and installs the resulting pattern as the source pattern in the given cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#abd11fa1d3a582e0975ebb0155b9d4467">More...</a><br /></td></tr>
<tr class="separator:abd11fa1d3a582e0975ebb0155b9d4467"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad75b7d22f76958a6651e9f02172525f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ad75b7d22f76958a6651e9f02172525f8">get_group_target</a> ()</td></tr>
<tr class="memdesc:ad75b7d22f76958a6651e9f02172525f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the target surface for the current group as started by the most recent call to <a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group()</a> or <a class="el" href="classCairo_1_1Context.html#ad08812ecb59891f92e79a3d4dbca2d97" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group_with_content()</a>.  <a href="#ad75b7d22f76958a6651e9f02172525f8">More...</a><br /></td></tr>
<tr class="separator:ad75b7d22f76958a6651e9f02172525f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6908784c77134e45b09bd1ff4bcb34c9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a6908784c77134e45b09bd1ff4bcb34c9">get_group_target</a> () const </td></tr>
<tr class="memdesc:a6908784c77134e45b09bd1ff4bcb34c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Same as the non-const version but returns a reference to a const <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>.  <a href="#a6908784c77134e45b09bd1ff4bcb34c9">More...</a><br /></td></tr>
<tr class="separator:a6908784c77134e45b09bd1ff4bcb34c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a614bcb4e9570c5b5c54b3bfc304c194a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1Context.html#a14e54b45199452f9916ebcafcd4a629e">cobject</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a614bcb4e9570c5b5c54b3bfc304c194a">cobj</a> ()</td></tr>
<tr class="memdesc:a614bcb4e9570c5b5c54b3bfc304c194a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a pointer to the base C type that is wrapped by the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#a614bcb4e9570c5b5c54b3bfc304c194a">More...</a><br /></td></tr>
<tr class="separator:a614bcb4e9570c5b5c54b3bfc304c194a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae99b48b6e596f42a7ccb90ab4ae94074"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCairo_1_1Context.html#a14e54b45199452f9916ebcafcd4a629e">cobject</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ae99b48b6e596f42a7ccb90ab4ae94074">cobj</a> () const </td></tr>
<tr class="memdesc:ae99b48b6e596f42a7ccb90ab4ae94074"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a pointer to the base C type that is wrapped by the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#ae99b48b6e596f42a7ccb90ab4ae94074">More...</a><br /></td></tr>
<tr class="separator:ae99b48b6e596f42a7ccb90ab4ae94074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:aa3606d313d54bc1b26938a8dfadc1e94"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aa3606d313d54bc1b26938a8dfadc1e94">get_font_face</a> ()</td></tr>
<tr class="memdesc:aa3606d313d54bc1b26938a8dfadc1e94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current font face.  <a href="#aa3606d313d54bc1b26938a8dfadc1e94">More...</a><br /></td></tr>
<tr class="separator:aa3606d313d54bc1b26938a8dfadc1e94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02c602da267ff6c0b29d638f4a59a158"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a02c602da267ff6c0b29d638f4a59a158">get_font_face</a> () const </td></tr>
<tr class="separator:a02c602da267ff6c0b29d638f4a59a158"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a0b6eeda4d80f3d591a770cbbbf8a0c87"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Pattern.html">Pattern</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a0b6eeda4d80f3d591a770cbbbf8a0c87">get_source</a> ()</td></tr>
<tr class="memdesc:a0b6eeda4d80f3d591a770cbbbf8a0c87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current source pattern for the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#a0b6eeda4d80f3d591a770cbbbf8a0c87">More...</a><br /></td></tr>
<tr class="separator:a0b6eeda4d80f3d591a770cbbbf8a0c87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa17cc0c92671d0d4c2d48bc3a79858d0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1Pattern.html">Pattern</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aa17cc0c92671d0d4c2d48bc3a79858d0">get_source</a> () const </td></tr>
<tr class="separator:aa17cc0c92671d0d4c2d48bc3a79858d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:aea76bccc09bdab482f96469a4e7f94f6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#aea76bccc09bdab482f96469a4e7f94f6">get_target</a> ()</td></tr>
<tr class="memdesc:aea76bccc09bdab482f96469a4e7f94f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the target surface associated with this <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.  <a href="#aea76bccc09bdab482f96469a4e7f94f6">More...</a><br /></td></tr>
<tr class="separator:aea76bccc09bdab482f96469a4e7f94f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39f36fa1f1460ca8a7f0504f01cb4d90"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a39f36fa1f1460ca8a7f0504f01cb4d90">get_target</a> () const </td></tr>
<tr class="separator:a39f36fa1f1460ca8a7f0504f01cb4d90"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a9a27f6ec57d788fd3ecbc310aeb24d99"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Context.html">Context</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a9a27f6ec57d788fd3ecbc310aeb24d99">create</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&amp; target)</td></tr>
<tr class="separator:a9a27f6ec57d788fd3ecbc310aeb24d99"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ac3c5491dbf6e57a26369e987361f6cd8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#ac3c5491dbf6e57a26369e987361f6cd8">Context</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&amp; target)</td></tr>
<tr class="separator:ac3c5491dbf6e57a26369e987361f6cd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a620db06ff96d42e8e1db12ada0435fcc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1Context.html#a14e54b45199452f9916ebcafcd4a629e">cobject</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Context.html#a620db06ff96d42e8e1db12ada0435fcc">m_cobject</a></td></tr>
<tr class="separator:a620db06ff96d42e8e1db12ada0435fcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> is the main class used to draw in cairomm. </p>
<p>It contains the current state of the rendering device, including coordinates of yet to be drawn shapes.</p>
<p>In the simplest case, create a <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> with its target <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>, set its drawing options (line width, color, etc), create shapes with methods like <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a> and <a class="el" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8" title="Adds a line to the path from the current point to position (x, y) in user-space coordinates. ">line_to()</a>, and then draw the shapes to the <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> using methods such as <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a> or <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a>.</p>
<p><a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> is a reference-counted object that should be used via <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr<> is a reference-counting shared smartpointer. ">Cairo::RefPtr</a>. </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a14e54b45199452f9916ebcafcd4a629e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef cairo_t <a class="el" href="classCairo_1_1Context.html#a14e54b45199452f9916ebcafcd4a629e">Cairo::Context::cobject</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The base cairo C type that is wrapped by <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Cairo::Context</a>. </p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac3c5491dbf6e57a26369e987361f6cd8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::Context::Context </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="adb2361743a9f017e662c3c6809dfc765"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::Context::Context </td>
          <td>(</td>
          <td class="paramtype">cairo_t *&#160;</td>
          <td class="paramname"><em>cobject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>has_reference</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a C++ wrapper for the C instance. </p>
<p>This C++ instance should then be given to a <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr<> is a reference-counting shared smartpointer. ">RefPtr</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cobject</td><td>The C instance. </td></tr>
    <tr><td class="paramname">has_reference</td><td>Whether we already have a reference. Otherwise, the constructor will take an extra reference. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acac6e893153cbe7748227dbfdcb97949"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::Context::Context </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1Context.html">Context</a>&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a35d214d3ad4d29bd5993d683333a9791"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual Cairo::Context::~Context </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aee34ef17540ad11f33176e8897d73203"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::append_path </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1Path.html">Path</a>&amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Append the path onto the current path. </p>
<p>The path may be either the return value from one of <a class="el" href="classCairo_1_1Context.html#a48743c731a58fb25524593dc90b567b3" title="Creates a copy of the current path and returns it to the user. ">copy_path()</a> or <a class="el" href="classCairo_1_1Context.html#a5213dad7e0b0054d631053abe0df1c7d" title="Gets a flattened copy of the current path and returns it to the user. ">copy_path_flat()</a> or it may be constructed manually.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>path to be appended </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aaa96080beea581244f0a3838fb7c9ee6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::arc </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>xc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>yc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>angle1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>angle2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a circular arc of the given radius to the current path. </p>
<p>The arc is centered at (<em>xc</em>, <em>yc</em>), begins at <em>angle1</em> and proceeds in the direction of increasing angles to end at <em>angle2</em>. If <em>angle2</em> is less than <em>angle1</em> it will be progressively increased by 2*M_PI until it is greater than <em>angle1</em>.</p>
<p>If there is a current point, an initial line segment will be added to the path to connect the current point to the beginning of the arc. If this initial line is undesired, it can be avoided by calling <a class="el" href="classCairo_1_1Context.html#a8cb4b961893563c585ed05a67126b0df" title="Begin a new subpath. ">begin_new_sub_path()</a> before calling <a class="el" href="classCairo_1_1Context.html#aaa96080beea581244f0a3838fb7c9ee6" title="Adds a circular arc of the given radius to the current path. ">arc()</a>.</p>
<p>Angles are measured in radians. An angle of 0 is in the direction of the positive X axis (in user-space). An angle of M_PI/2.0 radians (90 degrees) is in the direction of the positive Y axis (in user-space). Angles increase in the direction from the positive X axis toward the positive Y axis. So with the default transformation matrix, angles increase in a clockwise direction.</p>
<p>( To convert from degrees to radians, use degrees * (M_PI / 180.0). )</p>
<p>This function gives the arc in the direction of increasing angles; see <a class="el" href="classCairo_1_1Context.html#a1a9e7517cd5afd49d729b8a87539a305" title="Adds a circular arc of the given radius to the current path. ">arc_negative()</a> to get the arc in the direction of decreasing angles.</p>
<p>The arc is circular in user-space. To achieve an elliptical arc, you can scale the current transformation matrix by different amounts in the X and Y directions. For example, to draw an ellipse in the box given by x, y, width, height:</p>
<div class="fragment"><div class="line">context-&gt;save();</div>
<div class="line">context-&gt;translate(x, y);</div>
<div class="line">context-&gt;scale(width / 2.0, height / 2.0);</div>
<div class="line">context-&gt;arc(0.0, 0.0, 1.0, 0.0, 2 * M_PI);</div>
<div class="line">context-&gt;restore();</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xc</td><td>X position of the center of the arc </td></tr>
    <tr><td class="paramname">yc</td><td>Y position of the center of the arc </td></tr>
    <tr><td class="paramname">radius</td><td>the radius of the arc </td></tr>
    <tr><td class="paramname">angle1</td><td>the start angle, in radians </td></tr>
    <tr><td class="paramname">angle2</td><td>the end angle, in radians </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a14">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1a9e7517cd5afd49d729b8a87539a305"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::arc_negative </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>xc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>yc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>angle1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>angle2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a circular arc of the given <em>radius</em> to the current path. </p>
<p>The arc is centered at (<em>xc</em>, <em>yc</em>), begins at <em>angle1</em> and proceeds in the direction of decreasing angles to end at <em>angle2</em>. If <em>angle2</em> is greater than <em>angle1</em> it will be progressively decreased by 2*M_PI until it is greater than <em>angle1</em>.</p>
<p>See <a class="el" href="classCairo_1_1Context.html#aaa96080beea581244f0a3838fb7c9ee6" title="Adds a circular arc of the given radius to the current path. ">arc()</a> for more details. This function differs only in the direction of the arc between the two angles.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xc</td><td>X position of the center of the arc </td></tr>
    <tr><td class="paramname">yc</td><td>Y position of the center of the arc </td></tr>
    <tr><td class="paramname">radius</td><td>the radius of the arc </td></tr>
    <tr><td class="paramname">angle1</td><td>the start angle, in radians </td></tr>
    <tr><td class="paramname">angle2</td><td>the end angle, in radians </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a527efe9a3a5bf48f768e223d5f4fecca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::begin_new_path </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the current path. </p>
<p>After this call there will be no current point. </p>

</div>
</div>
<a class="anchor" id="a8cb4b961893563c585ed05a67126b0df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::begin_new_sub_path </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Begin a new subpath. </p>
<p>Note that the existing path is not affected. After this call there will be no current point.</p>
<p>In many cases, this call is not needed since new subpaths are frequently started with <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a>.</p>
<p>A call to <a class="el" href="classCairo_1_1Context.html#a8cb4b961893563c585ed05a67126b0df" title="Begin a new subpath. ">begin_new_sub_path()</a> is particularly useful when beginning a new subpath with one of the <a class="el" href="classCairo_1_1Context.html#aaa96080beea581244f0a3838fb7c9ee6" title="Adds a circular arc of the given radius to the current path. ">arc()</a> calls. This makes things easier as it is no longer necessary to manually compute the arc's initial coordinates for a call to <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a>.</p>
<dl class="section since"><dt>Since</dt><dd>1.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a423077b911738772807cc8bc24c25488"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::clip </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Establishes a new clip region by intersecting the current clip region with the current <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> as it would be filled by <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> and according to the current fill rule. </p>
<p>After <a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488" title="Establishes a new clip region by intersecting the current clip region with the current Path as it wou...">clip()</a>, the current path will be cleared from the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.</p>
<p>The current clip region affects all drawing operations by effectively masking out any changes to the surface that are outside the current clip region.</p>
<p>Calling <a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488" title="Establishes a new clip region by intersecting the current clip region with the current Path as it wou...">clip()</a> can only make the clip region smaller, never larger. But the current clip is part of the graphics state, so a temporary restriction of the clip region can be achieved by calling <a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488" title="Establishes a new clip region by intersecting the current clip region with the current Path as it wou...">clip()</a> within a <a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a>/restore() pair. The only other means of increasing the size of the clip region is <a class="el" href="classCairo_1_1Context.html#a82d001967dc8ba3e45f4d7a06c4b9ff2" title="Reset the current clip region to its original, unrestricted state. ">reset_clip()</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#ad15693ae817e3229409d831c7dd96bed" title="Set the current fill rule within the cairo Context. ">set_fill_rule()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2987c4ecac0438ee808c34d3c35c7f2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::clip_preserve </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Establishes a new clip region by intersecting the current clip region with the current path as it would be filled by <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> and according to the current fill rule. </p>
<p>Unlike <a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488" title="Establishes a new clip region by intersecting the current clip region with the current Path as it wou...">clip()</a>, clip_preserve preserves the path within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488" title="Establishes a new clip region by intersecting the current clip region with the current Path as it wou...">clip()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#ad15693ae817e3229409d831c7dd96bed" title="Set the current fill rule within the cairo Context. ">set_fill_rule()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a32211b0684b1d264c17402b5289fcba0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::close_path </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a line segment to the path from the current point to the beginning of the current subpath, (the most recent point passed to <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a>), and closes this subpath. </p>
<p>After this call the current point will be at the joined endpoint of the sub-path.</p>
<p>The behavior of <a class="el" href="classCairo_1_1Context.html#a32211b0684b1d264c17402b5289fcba0" title="Adds a line segment to the path from the current point to the beginning of the current subpath...">close_path()</a> is distinct from simply calling <a class="el" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8" title="Adds a line to the path from the current point to position (x, y) in user-space coordinates. ">line_to()</a> with the equivalent coordinate in the case of stroking. When a closed subpath is stroked, there are no caps on the ends of the subpath. Instead, there is a line join connecting the final and initial segments of the subpath.</p>
<p>If there is no current point before the call to <a class="el" href="classCairo_1_1Context.html#a32211b0684b1d264c17402b5289fcba0" title="Adds a line segment to the path from the current point to the beginning of the current subpath...">close_path()</a>, this function will have no effect. </p>

</div>
</div>
<a class="anchor" id="a614bcb4e9570c5b5c54b3bfc304c194a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1Context.html#a14e54b45199452f9916ebcafcd4a629e">cobject</a>* Cairo::Context::cobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets a pointer to the base C type that is wrapped by the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>

</div>
</div>
<a class="anchor" id="ae99b48b6e596f42a7ccb90ab4ae94074"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classCairo_1_1Context.html#a14e54b45199452f9916ebcafcd4a629e">cobject</a>* Cairo::Context::cobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets a pointer to the base C type that is wrapped by the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>

</div>
</div>
<a class="anchor" id="a7dc19917311f812e667d71102b0d986b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::copy_clip_rectangle_list </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a5a956a3226f8c0cece695c49f453e124">Rectangle</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>rectangles</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current clip region as a list of rectangles in user coordinates. </p>
<p>This function will throw an exception if the clip region cannot be represented as a list of user-space rectangles.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rectangles</td><td>a vector to store the rectangles into</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7ccbeacb2a7f2d787b3daf31a69383fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::copy_page </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Emits the current page for backends that support multiple pages, but doesn't clear it, so, the contents of the current page will be retained for the next page too. </p>
<p>Use <a class="el" href="classCairo_1_1Context.html#a525cac95b4d4c2abea12b82c433adba9" title="Emits and clears the current page for backends that support multiple pages. ">show_page()</a> if you want to get an empty page after the emission.</p>
<p>This is a convenience function that simply calls <a class="el" href="classCairo_1_1Surface.html#aae22bcaa9becbf3ca703a380f70c2c0a" title="Emits the current page for backends that support multiple pages, but doesn&#39;t clear it...">Surface::copy_page()</a> on <em>cr's</em> target. </p>

</div>
</div>
<a class="anchor" id="a48743c731a58fb25524593dc90b567b3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1Path.html">Path</a>* Cairo::Context::copy_path </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a copy of the current path and returns it to the user. </p>
<dl class="section note"><dt>Note</dt><dd>The caller owns the <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> object returned from this function. The <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> object must be freed when you are finished with it. </dd></dl>

</div>
</div>
<a class="anchor" id="a5213dad7e0b0054d631053abe0df1c7d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1Path.html">Path</a>* Cairo::Context::copy_path_flat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets a flattened copy of the current path and returns it to the user. </p>
<p>This function is like <a class="el" href="classCairo_1_1Context.html#a48743c731a58fb25524593dc90b567b3" title="Creates a copy of the current path and returns it to the user. ">copy_path()</a> except that any curves in the path will be approximated with piecewise-linear approximations, (accurate to within the current tolerance value). That is, the result is guaranteed to not have any elements of type CAIRO_PATH_CURVE_TO which will instead be replaced by a series of CAIRO_PATH_LINE_TO elements.</p>
<dl class="section note"><dt>Note</dt><dd>The caller owns the <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> object returned from this function. The <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> object must be freed when you are finished with it. </dd></dl>

</div>
</div>
<a class="anchor" id="a9a27f6ec57d788fd3ecbc310aeb24d99"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1Context.html">Context</a>&gt; Cairo::Context::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="image-surface_8cc-example.html#a2">image-surface.cc</a>, <a class="el" href="pdf-surface_8cc-example.html#a2">pdf-surface.cc</a>, <a class="el" href="ps-surface_8cc-example.html#a2">ps-surface.cc</a>, <a class="el" href="svg-surface_8cc-example.html#a2">svg-surface.cc</a>, <a class="el" href="toy-text_8cc-example.html#a2">toy-text.cc</a>, and <a class="el" href="user-font_8cc-example.html#a11">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9bdb6a5e2ea0e4bc9441bdc5704805f7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::curve_to </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y3</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a cubic Bezier spline to the path from the current point to position (x3, y3) in user-space coordinates, using (x1, y1) and (x2, y2) as the control points. </p>
<p>After this call the current point will be (x3, y3).</p>
<p>If there is no current point before the call to <a class="el" href="classCairo_1_1Context.html#a9bdb6a5e2ea0e4bc9441bdc5704805f7" title="Adds a cubic Bezier spline to the path from the current point to position (x3, y3) in user-space coor...">curve_to()</a> this function will behave as if preceded by a call to move_to(x1, y1).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x1</td><td>the X coordinate of the first control point </td></tr>
    <tr><td class="paramname">y1</td><td>the Y coordinate of the first control point </td></tr>
    <tr><td class="paramname">x2</td><td>the X coordinate of the second control point </td></tr>
    <tr><td class="paramname">y2</td><td>the Y coordinate of the second control point </td></tr>
    <tr><td class="paramname">x3</td><td>the X coordinate of the end of the curve </td></tr>
    <tr><td class="paramname">y3</td><td>the Y coordinate of the end of the curve </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0c7acaaf16d4740cd7fee2298bf2b5c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::device_to_user </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transform a coordinate from device space to user space by multiplying the given point by the inverse of the current transformation matrix (CTM). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>X value of coordinate (in/out parameter) </td></tr>
    <tr><td class="paramname">y</td><td>Y value of coordinate (in/out parameter)</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000005">Deprecated:</a></b></dt><dd>Use the const version. </dd></dl>

</div>
</div>
<a class="anchor" id="a41f54b367cae7c9efd35749cad69a260"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::device_to_user </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transform a coordinate from device space to user space by multiplying the given point by the inverse of the current transformation matrix (CTM). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>X value of coordinate (in/out parameter) </td></tr>
    <tr><td class="paramname">y</td><td>Y value of coordinate (in/out parameter) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2f396567b0504d1421abb5f7ed38cd97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::device_to_user_distance </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transform a distance vector from device space to user space. </p>
<p>This function is similar to <a class="el" href="classCairo_1_1Context.html#a0c7acaaf16d4740cd7fee2298bf2b5c4" title="Transform a coordinate from device space to user space by multiplying the given point by the inverse ...">device_to_user()</a> except that the translation components of the inverse CTM will be ignored when transforming (dx,dy).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dx</td><td>X component of a distance vector (in/out parameter) </td></tr>
    <tr><td class="paramname">dy</td><td>Y component of a distance vector (in/out parameter)</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000006">Deprecated:</a></b></dt><dd>Use the const version. </dd></dl>

</div>
</div>
<a class="anchor" id="a522345149deb1b5545e0d9a4ba99b3be"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::device_to_user_distance </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transform a distance vector from device space to user space. </p>
<p>This function is similar to <a class="el" href="classCairo_1_1Context.html#a0c7acaaf16d4740cd7fee2298bf2b5c4" title="Transform a coordinate from device space to user space by multiplying the given point by the inverse ...">device_to_user()</a> except that the translation components of the inverse CTM will be ignored when transforming (dx,dy).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dx</td><td>X component of a distance vector (in/out parameter) </td></tr>
    <tr><td class="paramname">dy</td><td>Y component of a distance vector (in/out parameter) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0a484790884dd138108b07c0ebbbe21d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::fill </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). </p>
<p>After <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a>, the current path will be cleared from the cairo context.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#ad15693ae817e3229409d831c7dd96bed" title="Set the current fill rule within the cairo Context. ">set_fill_rule()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a0ef3f887f91527a485ce1300972ac8e3" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill_preserve()</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a16">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0ef3f887f91527a485ce1300972ac8e3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::fill_preserve </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). </p>
<p>Unlike <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a>, <a class="el" href="classCairo_1_1Context.html#a0ef3f887f91527a485ce1300972ac8e3" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill_preserve()</a> preserves the path within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#ad15693ae817e3229409d831c7dd96bed" title="Set the current fill rule within the cairo Context. ">set_fill_rule()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a3269ed87a45ce150d1b7bd00c1c18a80"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceCairo.html#a2cb381e7f63bef767a7d697fc5af13b4">Antialias</a> Cairo::Context::get_antialias </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current shape antialiasing mode, as set by <a class="el" href="classCairo_1_1Context.html#a79220a6785490688fdea41750d8933d6" title="Set the antialiasing mode of the rasterizer used for drawing shapes. ">set_antialias()</a> </p>

</div>
</div>
<a class="anchor" id="a7211a6110201b959ee46c47aa173b12a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_clip_extents </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes a bounding box in user coordinates covering the area inside the current clip. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x1</td><td>left of the resulting extents </td></tr>
    <tr><td class="paramname">y1</td><td>top of the resulting extents </td></tr>
    <tr><td class="paramname">x2</td><td>right of the resulting extents </td></tr>
    <tr><td class="paramname">y2</td><td>bottom of the resulting extents</td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a69b25af8a2bac826a330e1bfeb2f1a1f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_current_point </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current point of the current path, which is conceptually the final point reached by the path so far. </p>
<p>The current point is returned in the user-space coordinate system. If there is no defined current point then x and y will both be set to 0.0. It is possible to check this in advance with <a class="el" href="classCairo_1_1Context.html#a1db62850e9879589bacd463e54406b50" title="Checks if there is a current point defined. ">has_current_point()</a>.</p>
<p>Most path construction functions alter the current point. See the following for details on how they affect the current point: clear_path(), <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a>, <a class="el" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8" title="Adds a line to the path from the current point to position (x, y) in user-space coordinates. ">line_to()</a>, <a class="el" href="classCairo_1_1Context.html#a9bdb6a5e2ea0e4bc9441bdc5704805f7" title="Adds a cubic Bezier spline to the path from the current point to position (x3, y3) in user-space coor...">curve_to()</a>, <a class="el" href="classCairo_1_1Context.html#aaa96080beea581244f0a3838fb7c9ee6" title="Adds a circular arc of the given radius to the current path. ">arc()</a>, <a class="el" href="classCairo_1_1Context.html#a3c739ac7e8e43d395f24dff0a0a83c0d" title="If the current subpath is not empty, begin a new subpath. ">rel_move_to()</a>, <a class="el" href="classCairo_1_1Context.html#a35f2d0f7e9afcb59eef83af3d2831f2b" title="Relative-coordinate version of line_to(). ">rel_line_to()</a>, <a class="el" href="classCairo_1_1Context.html#ad7660dac997d5db2f7ce1539c20345e2" title="Relative-coordinate version of curve_to(). ">rel_curve_to()</a>, <a class="el" href="classCairo_1_1Context.html#aaa96080beea581244f0a3838fb7c9ee6" title="Adds a circular arc of the given radius to the current path. ">arc()</a>, and <a class="el" href="classCairo_1_1Context.html#a5613b4202f82f6a53f1aeac6c58e5521" title="Adds closed paths for text to the current path. ">text_path()</a></p>
<p>Some functions use and alter the current point but do not otherwise change current path: <a class="el" href="classCairo_1_1Context.html#a584596d6f12dbea30519b908cacce038" title="A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to ...">show_text()</a>.</p>
<p>Some functions unset the current path and as a result, current point: <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a>, <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>return value for X coordinate of the current point </td></tr>
    <tr><td class="paramname">y</td><td>return value for Y coordinate of the current point</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a1db62850e9879589bacd463e54406b50" title="Checks if there is a current point defined. ">has_current_point()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aaa43d0034e155d3c0244e0b4fdaf6af9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_dash </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>dashes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current dash array and offset. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dashes</td><td>return value for the dash array. </td></tr>
    <tr><td class="paramname">offset</td><td>return value for the current dash offset.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.4 </dd></dl>

</div>
</div>
<a class="anchor" id="a80bceb0e11be82c365b4606efe3a8d30"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_fill_extents </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes a bounding box in user coordinates covering the area that would be affected, (the "inked" area), by a <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> operation given the current path and fill parameters. </p>
<p>If the current path is empty, returns an empty rectangle ((0,0), (0,0)). <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> dimensions and clipping are not taken into account.</p>
<p>Contrast with path_extents(), which is similar, but returns non-zero extents for some paths with no inked area, (such as a simple line segment).</p>
<p>Note that fill_extents() must necessarily do more work to compute the precise inked areas in light of the fill rule, so path_extents() may be more desirable for sake of performance if the non-inked path extents are desired.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x1</td><td>left of the resulting extents </td></tr>
    <tr><td class="paramname">y1</td><td>top of the resulting extents </td></tr>
    <tr><td class="paramname">x2</td><td>right of the resulting extents </td></tr>
    <tr><td class="paramname">y2</td><td>bottom of the resulting extents</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#ad15693ae817e3229409d831c7dd96bed" title="Set the current fill rule within the cairo Context. ">set_fill_rule()</a> </dd>
<dd>
full_preserve() </dd></dl>

</div>
</div>
<a class="anchor" id="a21a26ea9c08bb3c9c4180635f58fa7f8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceCairo.html#a1ba15b0a2e22c87c14af044801006c85">FillRule</a> Cairo::Context::get_fill_rule </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current fill rule, as set by <a class="el" href="classCairo_1_1Context.html#ad15693ae817e3229409d831c7dd96bed" title="Set the current fill rule within the cairo Context. ">set_fill_rule()</a>. </p>

</div>
</div>
<a class="anchor" id="acbe72f83295624f8905a350c589e7209"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_font_extents </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#aa7da46c699a67bfbdd5400af7e6b7b39">FontExtents</a>&amp;&#160;</td>
          <td class="paramname"><em>extents</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the font extents for the currently selected font. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">extents</td><td>a <a class="el" href="namespaceCairo.html#aa7da46c699a67bfbdd5400af7e6b7b39" title="See the cairo_font_extents_t reference in the cairo manual for more information. ">Cairo::FontExtents</a> object </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa3606d313d54bc1b26938a8dfadc1e94"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1FontFace.html">FontFace</a>&gt; Cairo::Context::get_font_face </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current font face. </p>

</div>
</div>
<a class="anchor" id="a02c602da267ff6c0b29d638f4a59a158"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;const <a class="el" href="classCairo_1_1FontFace.html">FontFace</a>&gt; Cairo::Context::get_font_face </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aada6eda8880143f16721d6311206b25f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_font_matrix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current font matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">matrix</td><td>a <a class="el" href="classCairo_1_1Matrix.html" title="A Transformation matrix. ">Cairo::Matrix</a> to store the results into (in/out parameter) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a7981bd1109ec5538fb505b36ec377757" title="Sets the current font matrix to . ">set_font_matrix()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a34be6fb9a99354259d3944b1b31c634b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_font_matrix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab69217658ea7fa4e859aa305e3bc3ebc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_font_options </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp;&#160;</td>
          <td class="paramname"><em>options</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves font rendering options set via <a class="el" href="classCairo_1_1Context.html#a2d7f465d946804a8fe9877d7f7f4bbcb" title="Sets a set of custom font rendering options. ">set_font_options()</a>. </p>
<p>Note that the returned options do not include any options derived from the underlying surface; they are literally the options passed to <a class="el" href="classCairo_1_1Context.html#a2d7f465d946804a8fe9877d7f7f4bbcb" title="Sets a set of custom font rendering options. ">set_font_options()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">options</td><td>a <a class="el" href="classCairo_1_1FontOptions.html" title="The font options specify how fonts should be rendered. ">FontOptions</a> object into which to store the retrieved options. All existing values are overwritten </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.8 </dd></dl>

</div>
</div>
<a class="anchor" id="afa37e5c6559f2573cfc55bb6fa5f6ef6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_glyph_extents </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>glyphs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#af6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp;&#160;</td>
          <td class="paramname"><em>extents</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the extents for an array of glyphs. </p>
<p>The extents describe a user-space rectangle that encloses the "inked" portion of the glyphs, (as they would be drawn by <a class="el" href="classCairo_1_1Context.html#af51f2c2ff72e8af66abeea3d15d25553" title="A drawing operator that generates the shape from an array of glyphs, rendered according to the curren...">show_glyphs()</a>). Additionally, the x_advance and y_advance values indicate the amount by which the current point would be advanced by <a class="el" href="classCairo_1_1Context.html#af51f2c2ff72e8af66abeea3d15d25553" title="A drawing operator that generates the shape from an array of glyphs, rendered according to the curren...">show_glyphs()</a>.</p>
<p>Note that whitespace glyphs do not contribute to the size of the rectangle (extents.width and extents.height).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">glyphs</td><td>a vector of glyphs </td></tr>
    <tr><td class="paramname">extents</td><td>a TextExtents object </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad75b7d22f76958a6651e9f02172525f8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1Surface.html">Surface</a>&gt; Cairo::Context::get_group_target </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the target surface for the current group as started by the most recent call to <a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group()</a> or <a class="el" href="classCairo_1_1Context.html#ad08812ecb59891f92e79a3d4dbca2d97" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group_with_content()</a>. </p>
<p>This function will return NULL if called "outside" of any group rendering blocks, (that is, after the last balancing call to <a class="el" href="classCairo_1_1Context.html#aece6278f4d71ce652557c80788415711" title="Terminates the redirection begun by a call to push_group() or push_group_with_content() and returns a...">pop_group()</a> or <a class="el" href="classCairo_1_1Context.html#abd11fa1d3a582e0975ebb0155b9d4467" title="Terminates the redirection begun by a call to push_group() or push_group_with_content() and installs ...">pop_group_to_source()</a>).</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6908784c77134e45b09bd1ff4bcb34c9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;const <a class="el" href="classCairo_1_1Surface.html">Surface</a>&gt; Cairo::Context::get_group_target </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Same as the non-const version but returns a reference to a const <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>. </p>
<dl class="section since"><dt>Since</dt><dd>1.2 </dd></dl>

</div>
</div>
<a class="anchor" id="aaf84f561587f41a6cdaffe8024ebf96c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1e">LineCap</a> Cairo::Context::get_line_cap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current line cap style, as set by <a class="el" href="classCairo_1_1Context.html#a07fd8fc2c75558484e960c5ff63a61cc" title="Sets the current line cap style within the cairo Context. ">set_line_cap()</a> </p>

</div>
</div>
<a class="anchor" id="a543677421cced4e1eca10f70dd36220f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceCairo.html#adbc632404edaa736e01c12122239de73">LineJoin</a> Cairo::Context::get_line_join </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current line join style, as set by <a class="el" href="classCairo_1_1Context.html#a23b5ba9363f568cacc1abf5e79a0200d" title="Sets the current line join style within the cairo Context. ">set_line_join()</a> </p>

</div>
</div>
<a class="anchor" id="a2aacb5cd843266b708ae47bc9a4f7014"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Cairo::Context::get_line_width </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current line width, as set by <a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a>. </p>
<p>Note that the value is unchanged even if the CTM has changed between the calls to <a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a> and <a class="el" href="classCairo_1_1Context.html#a2aacb5cd843266b708ae47bc9a4f7014" title="Gets the current line width, as set by set_line_width(). ">get_line_width()</a>. </p>

</div>
</div>
<a class="anchor" id="a03b21f4a3a44e28086c3a25075fdcea1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_matrix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stores the current transformation matrix (CTM) into matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">matrix</td><td>return value for the matrix </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aea651404be2fa942033c636e2665cd7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_matrix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a99cadcdd63e366bc793306e8d3cfee37"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1Matrix.html">Matrix</a> Cairo::Context::get_matrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current transformation matrix (CTM) </p>
<dl class="section since"><dt>Since</dt><dd>1.8 </dd></dl>

</div>
</div>
<a class="anchor" id="a55c7e2c0533e35635c31c34ec498a4a2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Cairo::Context::get_miter_limit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current miter limit, as set by <a class="el" href="classCairo_1_1Context.html#a583445ca963769d3f31613bc55b1e8ad" title="Sets the current miter limit within the cairo context. ">set_miter_limit()</a> </p>

</div>
</div>
<a class="anchor" id="aa5683fc9da28916cb237b4868a9c5d97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceCairo.html#a2d612c31d146fc32d486f9614560c8d1">Operator</a> Cairo::Context::get_operator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current compositing operator for a cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>

</div>
</div>
<a class="anchor" id="a28d0fa55e1d478ec05975b3c9f545c53"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_path_extents </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes a bounding box in user-space coordinates covering the points on the current path. </p>
<p>If the current path is empty, returns an empty rectangle ((0,0), (0,0)). Stroke parameters, fill rule, surface dimensions and clipping are not taken into account.</p>
<p>Contrast with fill_extents() and stroke_extents() which return the extents of only the area that would be "inked" by the corresponding drawing operations.</p>
<p>The result of path_extents() is defined as equivalent to the limit of stroke_extents() with LINE_CAP_ROUND as the line width approaches 0.0, (but never reaching the empty-rectangle returned by stroke_extents() for a line width of 0.0).</p>
<p>Specifically, this means that zero-area sub-paths such as <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a>;<a class="el" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8" title="Adds a line to the path from the current point to position (x, y) in user-space coordinates. ">line_to()</a> segments, (even degenerate cases where the coordinates to both calls are identical), will be considered as contributing to the extents. However, a lone <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a> will not contribute to the results of path_extents().</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x1</td><td>left of the resulting extents </td></tr>
    <tr><td class="paramname">y1</td><td>top of the resulting extents </td></tr>
    <tr><td class="paramname">x2</td><td>right of the resulting extents </td></tr>
    <tr><td class="paramname">y2</td><td>bottom of the resulting extents</td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a511ca42d6c21a4cfc9ce4c4b1116ddad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1ScaledFont.html">ScaledFont</a>&gt; Cairo::Context::get_scaled_font </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current scaled font. </p>
<dl class="section since"><dt>Since</dt><dd>1.8 </dd></dl>

</div>
</div>
<a class="anchor" id="a0b6eeda4d80f3d591a770cbbbf8a0c87"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1Pattern.html">Pattern</a>&gt; Cairo::Context::get_source </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current source pattern for the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>

</div>
</div>
<a class="anchor" id="aa17cc0c92671d0d4c2d48bc3a79858d0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;const <a class="el" href="classCairo_1_1Pattern.html">Pattern</a>&gt; Cairo::Context::get_source </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="afbcad49bf4f75eca485fa4d728255ae0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_stroke_extents </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes a bounding box in user coordinates covering the area that would be affected, (the "inked" area), by a <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a> operation given the current path and stroke parameters. </p>
<p>If the current path is empty, returns an empty rectangle ((0,0), (0,0)). <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> dimensions and clipping are not taken into account.</p>
<p>Note that if the line width is set to exactly zero, then stroke_extents() will return an empty rectangle. Contrast with path_extents() which can be used to compute the non-empty bounds as the line width approaches zero.</p>
<p>Note that stroke_extents() must necessarily do more work to compute the precise inked areas in light of the stroke parameters, so path_extents() may be more desirable for sake of performance if non-inked path extents are desired.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x1</td><td>left of the resulting extents </td></tr>
    <tr><td class="paramname">y1</td><td>top of the resulting extents </td></tr>
    <tr><td class="paramname">x2</td><td>right of the resulting extents </td></tr>
    <tr><td class="paramname">y2</td><td>bottom of the resulting extents</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a23b5ba9363f568cacc1abf5e79a0200d" title="Sets the current line join style within the cairo Context. ">set_line_join()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a07fd8fc2c75558484e960c5ff63a61cc" title="Sets the current line cap style within the cairo Context. ">set_line_cap()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#ab10d89295e122b04ff1bbda425ae069c" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke_preserve()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aea76bccc09bdab482f96469a4e7f94f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1Surface.html">Surface</a>&gt; Cairo::Context::get_target </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the target surface associated with this <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a39f36fa1f1460ca8a7f0504f01cb4d90"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;const <a class="el" href="classCairo_1_1Surface.html">Surface</a>&gt; Cairo::Context::get_target </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a837ff58a69e3e74f6a6ef9da8454af2b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::get_text_extents </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"><em>utf8</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#af6d8a4744616383984c99f8f052c7a5d">TextExtents</a>&amp;&#160;</td>
          <td class="paramname"><em>extents</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the extents for a string of text. </p>
<p>The extents describe a user-space rectangle that encloses the "inked" portion of the text, (as it would be drawn by <a class="el" href="classCairo_1_1Context.html#a584596d6f12dbea30519b908cacce038" title="A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to ...">show_text()</a>). Additionally, the x_advance and y_advance values indicate the amount by which the current point would be advanced by <a class="el" href="classCairo_1_1Context.html#a584596d6f12dbea30519b908cacce038" title="A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to ...">show_text()</a>.</p>
<p>Note that whitespace characters do not directly contribute to the size of the rectangle (extents.width and extents.height). They do contribute indirectly by changing the position of non-whitespace characters. In particular, trailing whitespace characters are likely to not affect the size of the rectangle, though they will affect the x_advance and y_advance values.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">utf8</td><td>a string of text encoded in UTF-8 </td></tr>
    <tr><td class="paramname">extents</td><td>a TextExtents object </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a216632e43aa061890c0a637ea41f7960"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Cairo::Context::get_tolerance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the current tolerance value, as set by <a class="el" href="classCairo_1_1Context.html#a01481a915f4086051f1c200f0f7a33d1" title="Sets the tolerance used when converting paths into trapezoids. ">set_tolerance()</a> </p>

</div>
</div>
<a class="anchor" id="ad3372fc30d9a26c8d26c440a21464ce5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::glyph_path </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>glyphs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds closed paths for the glyphs to the current path. </p>
<p>The generated path if filled, achieves an effect similar to that of <a class="el" href="classCairo_1_1Context.html#af51f2c2ff72e8af66abeea3d15d25553" title="A drawing operator that generates the shape from an array of glyphs, rendered according to the curren...">show_glyphs()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">glyphs</td><td>a vector of glyphs </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1db62850e9879589bacd463e54406b50"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Cairo::Context::has_current_point </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if there is a current point defined. </p>
<p>See <a class="el" href="classCairo_1_1Context.html#a69b25af8a2bac826a330e1bfeb2f1a1f" title="Gets the current point of the current path, which is conceptually the final point reached by the path...">get_current_point()</a> for details on the current point.</p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if a current point is defined.</dd></dl>
<dl class="section since"><dt>Since</dt><dd>1.6 </dd></dl>

</div>
</div>
<a class="anchor" id="a99dafb17beaaf5e115a731f35a828684"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Cairo::Context::in_clip </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Tests whether the given point is inside the area that would be visible through the current clip, i.e. </p>
<p>the area that would be filled by a <a class="el" href="classCairo_1_1Context.html#ad919eae3bc3b9827a3c1ceff2d86833e" title="A drawing operator that paints the current source everywhere within the current clip region...">paint()</a> operation.</p>
<p>Return value: A non-zero value if the point is inside, or zero if outside.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>X coordinate of the point to test </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the point to test</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488" title="Establishes a new clip region by intersecting the current clip region with the current Path as it wou...">clip()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a2987c4ecac0438ee808c34d3c35c7f2e" title="Establishes a new clip region by intersecting the current clip region with the current path as it wou...">clip_preserve()</a></dd></dl>
<dl class="section since"><dt>Since</dt><dd>1.10 </dd></dl>

</div>
</div>
<a class="anchor" id="a3d50e91f8ed135cee8741fef805df070"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Cairo::Context::in_fill </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Tests whether the given point is inside the area that would be affected by a <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> operation given the current path and filling parameters. </p>
<p><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> dimensions and clipping are not taken into account.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>X coordinate of the point to test </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the point to test </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A non-zero value if the point is inside, or zero if outside.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#ad15693ae817e3229409d831c7dd96bed" title="Set the current fill rule within the cairo Context. ">set_fill_rule()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a0ef3f887f91527a485ce1300972ac8e3" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill_preserve()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a15e153f40f02aaccd0aed27f7720bf6a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Cairo::Context::in_stroke </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Tests whether the given point is inside the area that would be affected by a <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a> operation given the current path and stroking parameters. </p>
<p><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> dimensions and clipping are not taken into account.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>X coordinate of the point to test </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the point to test </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A non-zero value if the point is inside, or zero if outside.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a23b5ba9363f568cacc1abf5e79a0200d" title="Sets the current line join style within the cairo Context. ">set_line_join()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a07fd8fc2c75558484e960c5ff63a61cc" title="Sets the current line cap style within the cairo Context. ">set_line_cap()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#ab10d89295e122b04ff1bbda425ae069c" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke_preserve()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ae305a9f8a79cc0e0693393a940ee1de8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::line_to </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a line to the path from the current point to position (x, y) in user-space coordinates. </p>
<p>After this call the current point will be (x, y).</p>
<p>If there is no current point before the call to <a class="el" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8" title="Adds a line to the path from the current point to position (x, y) in user-space coordinates. ">line_to()</a> this function will behave as move_to(x, y).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>the X coordinate of the end of the new line </td></tr>
    <tr><td class="paramname">y</td><td>the Y coordinate of the end of the new line </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2ad3ea59afb6bb4fa04d000f5e9c3cf2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::mask </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1Pattern.html">Pattern</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>pattern</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that paints the current source using the alpha channel of pattern as a mask. </p>
<p>(Opaque areas of mask are painted with the source, transparent areas are not painted.)</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pattern</td><td>a <a class="el" href="classCairo_1_1Pattern.html" title="Cairo::Pattern is the paint with which cairo draws. ">Pattern</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2f76e3b13027efc4c8745de5e04e00ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::mask </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>surface</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>surface_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>surface_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that paints the current source using the alpha channel of surface as a mask. </p>
<p>(Opaque areas of surface are painted with the source, transparent areas are not painted.)</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">surface</td><td>a <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> </td></tr>
    <tr><td class="paramname">surface_x</td><td>X coordinate at which to place the origin of surface </td></tr>
    <tr><td class="paramname">surface_y</td><td>Y coordinate at which to place the origin of surface </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4086700b5f780fd3fb94bea941895022"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::move_to </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>If the current subpath is not empty, begin a new subpath. </p>
<p>After this call the current point will be (x, y).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>the X coordinate of the new position </td></tr>
    <tr><td class="paramname">y</td><td>the Y coordinate of the new position </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a17">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="aacccd66c3098f6191618939b86bf22f2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1Context.html">Context</a>&amp; Cairo::Context::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1Context.html">Context</a>&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad919eae3bc3b9827a3c1ceff2d86833e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::paint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that paints the current source everywhere within the current clip region. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a13">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a34208a6c6868cdcd65866cb8a2349525"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::paint_with_alpha </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that paints the current source everywhere within the current clip region using a mask of constant alpha value alpha. </p>
<p>The effect is similar to <a class="el" href="classCairo_1_1Context.html#ad919eae3bc3b9827a3c1ceff2d86833e" title="A drawing operator that paints the current source everywhere within the current clip region...">paint()</a>, but the drawing is faded out using the alpha value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">alpha</td><td>an alpha value, between 0 (transparent) and 1 (opaque) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aece6278f4d71ce652557c80788415711"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1Pattern.html">Pattern</a>&gt; Cairo::Context::pop_group </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Terminates the redirection begun by a call to <a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group()</a> or <a class="el" href="classCairo_1_1Context.html#ad08812ecb59891f92e79a3d4dbca2d97" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group_with_content()</a> and returns a new pattern containing the results of all drawing operations performed to the group. </p>
<p>The <a class="el" href="classCairo_1_1Context.html#aece6278f4d71ce652557c80788415711" title="Terminates the redirection begun by a call to push_group() or push_group_with_content() and returns a...">pop_group()</a> function calls <a class="el" href="classCairo_1_1Context.html#a45a80032b95d87eafe72dc2ab235f815" title="Restores cr to the state saved by a preceding call to save() and removes that state from the stack of...">restore()</a>, (balancing a call to <a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a> by the push_group function), so that any changes to the graphics state will not be visible outside the group.</p>
<dl class="section return"><dt>Returns</dt><dd>a (surface) pattern containing the results of all drawing operations performed to the group.</dd></dl>
<dl class="section since"><dt>Since</dt><dd>1.2 </dd></dl>

</div>
</div>
<a class="anchor" id="abd11fa1d3a582e0975ebb0155b9d4467"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::pop_group_to_source </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Terminates the redirection begun by a call to <a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group()</a> or <a class="el" href="classCairo_1_1Context.html#ad08812ecb59891f92e79a3d4dbca2d97" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group_with_content()</a> and installs the resulting pattern as the source pattern in the given cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>
<p>The behavior of this function is equivalent to the sequence of operations:</p>
<div class="fragment"><div class="line">RefPtr&lt;Pattern&gt; group = cr-&gt;<a class="code" href="classCairo_1_1Context.html#aece6278f4d71ce652557c80788415711">pop_group</a>();</div>
<div class="line">cr-&gt;<a class="code" href="classCairo_1_1Context.html#a534d571d5aa4b500782036202a3e2aea">set_source</a>(group);</div>
</div><!-- fragment --><p>but is more convenient as their is no need for a variable to store the short-lived pointer to the pattern.</p>
<p>The <a class="el" href="classCairo_1_1Context.html#aece6278f4d71ce652557c80788415711" title="Terminates the redirection begun by a call to push_group() or push_group_with_content() and returns a...">pop_group()</a> function calls <a class="el" href="classCairo_1_1Context.html#a45a80032b95d87eafe72dc2ab235f815" title="Restores cr to the state saved by a preceding call to save() and removes that state from the stack of...">restore()</a>, (balancing a call to <a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a> by the push_group function), so that any changes to the graphics state will not be visible outside the group.</p>
<dl class="section since"><dt>Since</dt><dd>1.2 </dd></dl>

</div>
</div>
<a class="anchor" id="aa0a5a1ee48ff742d87480a689dca51c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::push_group </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Temporarily redirects drawing to an intermediate surface known as a group. </p>
<p>The redirection lasts until the group is completed by a call to <a class="el" href="classCairo_1_1Context.html#aece6278f4d71ce652557c80788415711" title="Terminates the redirection begun by a call to push_group() or push_group_with_content() and returns a...">pop_group()</a> or <a class="el" href="classCairo_1_1Context.html#abd11fa1d3a582e0975ebb0155b9d4467" title="Terminates the redirection begun by a call to push_group() or push_group_with_content() and installs ...">pop_group_to_source()</a>. These calls provide the result of any drawing to the group as a pattern, (either as an explicit object, or set as the source pattern).</p>
<p>This group functionality can be convenient for performing intermediate compositing. One common use of a group is to render objects as opaque within the group, (so that they occlude each other), and then blend the result with translucence onto the destination.</p>
<p>Groups can be nested arbitrarily deep by making balanced calls to <a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group()</a>/pop_group(). Each call pushes/pops the new target group onto/from a stack.</p>
<p>The <a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group()</a> function calls <a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a> so that any changes to the graphics state will not be visible outside the group, (the pop_group functions call <a class="el" href="classCairo_1_1Context.html#a45a80032b95d87eafe72dc2ab235f815" title="Restores cr to the state saved by a preceding call to save() and removes that state from the stack of...">restore()</a>).</p>
<p>By default the intermediate group will have a content type of CONTENT_COLOR_ALPHA. Other content types can be chosen for the group by using <a class="el" href="classCairo_1_1Context.html#ad08812ecb59891f92e79a3d4dbca2d97" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group_with_content()</a> instead.</p>
<p>As an example, here is how one might fill and stroke a path with translucence, but without any portion of the fill being visible under the stroke:</p>
<div class="fragment"><div class="line">cr-&gt;<a class="code" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6">push_group</a>();</div>
<div class="line">cr-&gt;<a class="code" href="classCairo_1_1Context.html#a534d571d5aa4b500782036202a3e2aea">set_source</a>(fill_pattern);</div>
<div class="line">cr-&gt;<a class="code" href="classCairo_1_1Context.html#a0ef3f887f91527a485ce1300972ac8e3">fill_preserve</a>();</div>
<div class="line">cr-&gt;<a class="code" href="classCairo_1_1Context.html#a534d571d5aa4b500782036202a3e2aea">set_source</a>(stroke_pattern);</div>
<div class="line">cr-&gt;<a class="code" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17">stroke</a>();</div>
<div class="line">cr-&gt;<a class="code" href="classCairo_1_1Context.html#abd11fa1d3a582e0975ebb0155b9d4467">pop_group_to_source</a>();</div>
<div class="line">cr-&gt;<a class="code" href="classCairo_1_1Context.html#a34208a6c6868cdcd65866cb8a2349525">paint_with_alpha</a>(alpha);</div>
</div><!-- fragment --><dl class="section since"><dt>Since</dt><dd>1.2 </dd></dl>

</div>
</div>
<a class="anchor" id="ad08812ecb59891f92e79a3d4dbca2d97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::push_group_with_content </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#a1f0f5d82599dfeabbeb2396dbfd767d0">Content</a>&#160;</td>
          <td class="paramname"><em>content</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Temporarily redirects drawing to an intermediate surface known as a group. </p>
<p>The redirection lasts until the group is completed by a call to <a class="el" href="classCairo_1_1Context.html#aece6278f4d71ce652557c80788415711" title="Terminates the redirection begun by a call to push_group() or push_group_with_content() and returns a...">pop_group()</a> or <a class="el" href="classCairo_1_1Context.html#abd11fa1d3a582e0975ebb0155b9d4467" title="Terminates the redirection begun by a call to push_group() or push_group_with_content() and installs ...">pop_group_to_source()</a>. These calls provide the result of any drawing to the group as a pattern, (either as an explicit object, or set as the source pattern).</p>
<p>The group will have a content type of . The ability to control this content type is the only distinction between this function and <a class="el" href="classCairo_1_1Context.html#aa0a5a1ee48ff742d87480a689dca51c6" title="Temporarily redirects drawing to an intermediate surface known as a group. ">push_group()</a> which you should see for a more detailed description of group rendering.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">content</td><td>indicates the type of group that will be created</td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.2 </dd></dl>

</div>
</div>
<a class="anchor" id="a85ee124b89c43dc29ff0d964bd005c11"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::rectangle </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a closed-subpath rectangle of the given size to the current path at position (x, y) in user-space coordinates. </p>
<p>This function is logically equivalent to:</p>
<div class="fragment"><div class="line">context-&gt;move_to(x, y);</div>
<div class="line">context-&gt;rel_line_to(width, 0);</div>
<div class="line">context-&gt;rel_line_to(0, height);</div>
<div class="line">context-&gt;rel_line_to(-width, 0);</div>
<div class="line">context-&gt;close_path();</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>the X coordinate of the top left corner of the rectangle </td></tr>
    <tr><td class="paramname">y</td><td>the Y coordinate to the top left corner of the rectangle </td></tr>
    <tr><td class="paramname">width</td><td>the width of the rectangle </td></tr>
    <tr><td class="paramname">height</td><td>the height of the rectangle </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a7">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad7660dac997d5db2f7ce1539c20345e2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::rel_curve_to </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dx1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dy1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dx2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dy2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dx3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dy3</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Relative-coordinate version of <a class="el" href="classCairo_1_1Context.html#a9bdb6a5e2ea0e4bc9441bdc5704805f7" title="Adds a cubic Bezier spline to the path from the current point to position (x3, y3) in user-space coor...">curve_to()</a>. </p>
<p>All offsets are relative to the current point. Adds a cubic Bezier spline to the path from the current point to a point offset from the current point by (dx3, dy3), using points offset by (dx1, dy1) and (dx2, dy2) as the control points. After this call the current point will be offset by (dx3, dy3).</p>
<p>Given a current point of (x, y), </p><div class="fragment"><div class="line"><a class="code" href="classCairo_1_1Context.html#ad7660dac997d5db2f7ce1539c20345e2">rel_curve_to</a>(dx1, dy1, dx2, dy2, dx3, dy3)</div>
</div><!-- fragment --><p> is logically equivalent to </p><div class="fragment"><div class="line"><a class="code" href="classCairo_1_1Context.html#a9bdb6a5e2ea0e4bc9441bdc5704805f7">curve_to</a>(x + dx1, y + dy1, x + dx2, y + dy2, x + dx3, y + dy3).</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dx1</td><td>the X offset to the first control point </td></tr>
    <tr><td class="paramname">dy1</td><td>the Y offset to the first control point </td></tr>
    <tr><td class="paramname">dx2</td><td>the X offset to the second control point </td></tr>
    <tr><td class="paramname">dy2</td><td>the Y offset to the second control point </td></tr>
    <tr><td class="paramname">dx3</td><td>the X offset to the end of the curve </td></tr>
    <tr><td class="paramname">dy3</td><td>the Y offset to the end of the curve</td></tr>
  </table>
  </dd>
</dl>
<p>It is an error to call this function with no current point. Doing so will cause this to shutdown with a status of CAIRO_STATUS_NO_CURRENT_POINT. Cairomm will then throw an exception. </p>

</div>
</div>
<a class="anchor" id="a35f2d0f7e9afcb59eef83af3d2831f2b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::rel_line_to </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Relative-coordinate version of <a class="el" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8" title="Adds a line to the path from the current point to position (x, y) in user-space coordinates. ">line_to()</a>. </p>
<p>Adds a line to the path from the current point to a point that is offset from the current point by (dx, dy) in user space. After this call the current point will be offset by (dx, dy).</p>
<p>Given a current point of (x, y), </p><div class="fragment"><div class="line"><a class="code" href="classCairo_1_1Context.html#a35f2d0f7e9afcb59eef83af3d2831f2b">rel_line_to</a>(dx, dy)</div>
</div><!-- fragment --><p> is logically equivalent to </p><div class="fragment"><div class="line"><a class="code" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8">line_to</a>(x + dx, y + dy).</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dx</td><td>the X offset to the end of the new line </td></tr>
    <tr><td class="paramname">dy</td><td>the Y offset to the end of the new line</td></tr>
  </table>
  </dd>
</dl>
<p>It is an error to call this function with no current point. Doing so will cause this to shutdown with a status of CAIRO_STATUS_NO_CURRENT_POINT. Cairomm will then throw an exception. </p>

</div>
</div>
<a class="anchor" id="a3c739ac7e8e43d395f24dff0a0a83c0d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::rel_move_to </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>If the current subpath is not empty, begin a new subpath. </p>
<p>After this call the current point will offset by (x, y).</p>
<p>Given a current point of (x, y), </p><div class="fragment"><div class="line"><a class="code" href="classCairo_1_1Context.html#a3c739ac7e8e43d395f24dff0a0a83c0d">rel_move_to</a>(dx, dy)</div>
</div><!-- fragment --><p> is logically equivalent to </p><div class="fragment"><div class="line"><a class="code" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022">move_to</a>(x + dx, y + dy)</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dx</td><td>the X offset </td></tr>
    <tr><td class="paramname">dy</td><td>the Y offset</td></tr>
  </table>
  </dd>
</dl>
<p>It is an error to call this function with no current point. Doing so will cause this to shutdown with a status of CAIRO_STATUS_NO_CURRENT_POINT. Cairomm will then throw an exception. </p>

</div>
</div>
<a class="anchor" id="a82d001967dc8ba3e45f4d7a06c4b9ff2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::reset_clip </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reset the current clip region to its original, unrestricted state. </p>
<p>That is, set the clip region to an infinitely large shape containing the target surface. Equivalently, if infinity is too hard to grasp, one can imagine the clip region being reset to the exact bounds of the target surface.</p>
<p>Note that code meant to be reusable should not call <a class="el" href="classCairo_1_1Context.html#a82d001967dc8ba3e45f4d7a06c4b9ff2" title="Reset the current clip region to its original, unrestricted state. ">reset_clip()</a> as it will cause results unexpected by higher-level code which calls <a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488" title="Establishes a new clip region by intersecting the current clip region with the current Path as it wou...">clip()</a>. Consider using <a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a> and <a class="el" href="classCairo_1_1Context.html#a45a80032b95d87eafe72dc2ab235f815" title="Restores cr to the state saved by a preceding call to save() and removes that state from the stack of...">restore()</a> around <a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488" title="Establishes a new clip region by intersecting the current clip region with the current Path as it wou...">clip()</a> as a more robust means of temporarily restricting the clip region. </p>

</div>
</div>
<a class="anchor" id="a45a80032b95d87eafe72dc2ab235f815"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::restore </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Restores cr to the state saved by a preceding call to <a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a> and removes that state from the stack of saved states. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a332811cd74028c20b5832501ec46d67e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::rotate </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>angle_radians</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Modifies the current transformation matrix (CTM) by rotating the user-space axes by angle radians. </p>
<p>The rotation of the axes takes places after any existing transformation of user space. The rotation direction for positive angles is from the positive X axis toward the positive Y axis.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">angle</td><td>angle (in radians) by which the user-space axes will be rotated </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0ae251ef83d7c2985f4306abc905934d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::rotate_degrees </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>angle_degres</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A convenience wrapper around <a class="el" href="classCairo_1_1Context.html#a332811cd74028c20b5832501ec46d67e" title="Modifies the current transformation matrix (CTM) by rotating the user-space axes by angle radians...">rotate()</a> that accepts angles in degrees. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">angle_degrees</td><td>angle (in degrees) by which the user-space axes should be rotated </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5249fa850f6adc1cb743e60a65a1ddb6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::save </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Makes a copy of the current state of the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> and saves it on an internal stack of saved states. </p>
<p>When <a class="el" href="classCairo_1_1Context.html#a45a80032b95d87eafe72dc2ab235f815" title="Restores cr to the state saved by a preceding call to save() and removes that state from the stack of...">restore()</a> is called, it will be restored to the saved state. Multiple calls to <a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a> and <a class="el" href="classCairo_1_1Context.html#a45a80032b95d87eafe72dc2ab235f815" title="Restores cr to the state saved by a preceding call to save() and removes that state from the stack of...">restore()</a> can be nested; each call to <a class="el" href="classCairo_1_1Context.html#a45a80032b95d87eafe72dc2ab235f815" title="Restores cr to the state saved by a preceding call to save() and removes that state from the stack of...">restore()</a> restores the state from the matching paired <a class="el" href="classCairo_1_1Context.html#a5249fa850f6adc1cb743e60a65a1ddb6" title="Makes a copy of the current state of the Context and saves it on an internal stack of saved states...">save()</a>.</p>
<p>It isn't necessary to clear all saved states before a cairo_t is freed. Any saved states will be freed when the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> is destroyed.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a45a80032b95d87eafe72dc2ab235f815" title="Restores cr to the state saved by a preceding call to save() and removes that state from the stack of...">restore()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a45543fb03fb740fe4c013492f348e084"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::scale </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Modifies the current transformation matrix (CTM) by scaling the X and Y user-space axes by sx and sy respectively. </p>
<p>The scaling of the axes takes place after any existing transformation of user space.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sx</td><td>scale factor for the X dimension </td></tr>
    <tr><td class="paramname">sy</td><td>scale factor for the Y dimension </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acb1da5f3949195f76424e11be923fbfd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::select_font_face </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"><em>family</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#a0a2c19fefac301a702a6b7fdb368bf55">FontSlant</a>&#160;</td>
          <td class="paramname"><em>slant</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#ad8514818fb9292a5864b57f4b8a1e546">FontWeight</a>&#160;</td>
          <td class="paramname"><em>weight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Selects a family and style of font from a simplified description as a family name, slant and weight. </p>
<p><a class="el" href="namespaceCairo.html">Cairo</a> provides no operation to list available family names on the system (this is a "toy", remember), but the standard CSS2 generic family names, ("serif", "sans-serif", "cursive", "fantasy", "monospace"), are likely to work as expected.</p>
<p>Note: The <a class="el" href="classCairo_1_1Context.html#acb1da5f3949195f76424e11be923fbfd" title="Selects a family and style of font from a simplified description as a family name, slant and weight. ">select_font_face()</a> function call is part of what the cairo designers call the "toy" text API. It is convenient for short demos and simple programs, but it is not expected to be adequate for serious text-using applications.</p>
<p>If <em>family</em> starts with the string "@cairo:", or if no native font backends are compiled in, cairo will use an internal font family. The internal font family recognizes many modifiers in the  string, most notably, it recognizes the string "monospace". That is, the family name "@cairo:monospace" will use the monospace version of the internal font family.</p>
<p>For "real" font selection, see the font-backend-specific Cairo::FontFace::create functions for the font backend you are using. (For example, if you are using the freetype-based cairo-ft font backend, see <a class="el" href="classCairo_1_1FtFontFace.html#af0c442d25f8615efb7655a6ae9279d3e" title="Creates a new font face for the FreeType font backend from a pre-opened FreeType face. ">Cairo::FtFontFace::create()</a>.) The resulting font face could then be used with <a class="el" href="classCairo_1_1ScaledFont.html#adddf87ea689711ddbbee3028ed30e02b" title="Creates a ScaledFont object from a font face and matrices that describe the size of the font and the ...">Cairo::ScaledFont::create()</a> and <a class="el" href="classCairo_1_1Context.html#aaa8c0b24d9338d392c18435babeb4263" title="Replaces the current font face, font matrix, and font options in the context with those of the scaled...">set_scaled_font()</a>.</p>
<p>Similarly, when using the "real" font support, you can call directly into the underlying font system, (such as fontconfig or freetype), for operations such as listing available fonts, etc.</p>
<p>It is expected that most applications will need to use a more comprehensive font handling and text layout library, (for example, pango), in conjunction with cairo.</p>
<p>If text is drawn without a call to <a class="el" href="classCairo_1_1Context.html#acb1da5f3949195f76424e11be923fbfd" title="Selects a family and style of font from a simplified description as a family name, slant and weight. ">select_font_face()</a>, (nor <a class="el" href="classCairo_1_1Context.html#a9b344db51097aba30e36452e1364faef" title="Replaces the current font face in the context with font_face font_face. ">set_font_face()</a> nor <a class="el" href="classCairo_1_1Context.html#aaa8c0b24d9338d392c18435babeb4263" title="Replaces the current font face, font matrix, and font options in the context with those of the scaled...">set_scaled_font()</a>), the default family is platform-specific, but is essentially "sans-serif". Default slant is <a class="el" href="namespaceCairo.html#a0a2c19fefac301a702a6b7fdb368bf55a428cfea8fca5951033f3d433855cb97d" title="Upright font style. ">Cairo::FONT_SLANT_NORMAL</a>, and default weight is <a class="el" href="namespaceCairo.html#ad8514818fb9292a5864b57f4b8a1e546accd31c17af7e0acce29f5d9df1b74e70" title="Normal font weight. ">Cairo::FONT_WEIGHT_NORMAL</a>.</p>
<p>This function is equivalent to a call to <a class="el" href="classCairo_1_1ToyFontFace.html#a07c0ca7fd0dc54c31bfa1d8a813aff59" title="Creates a font face from a triplet of family, slant, and weight. ">Cairo::ToyFontFace::create()</a> followed by <a class="el" href="classCairo_1_1Context.html#a9b344db51097aba30e36452e1364faef" title="Replaces the current font face in the context with font_face font_face. ">set_font_face()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">family</td><td>a font family name, encoded in UTF-8 </td></tr>
    <tr><td class="paramname">slant</td><td>the slant for the font </td></tr>
    <tr><td class="paramname">weight</td><td>the weight for the font </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a79220a6785490688fdea41750d8933d6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_antialias </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#a2cb381e7f63bef767a7d697fc5af13b4">Antialias</a>&#160;</td>
          <td class="paramname"><em>antialias</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the antialiasing mode of the rasterizer used for drawing shapes. </p>
<p>This value is a hint, and a particular backend may or may not support a particular value. At the current time, no backend supports <a class="el" href="namespaceCairo.html#a2cb381e7f63bef767a7d697fc5af13b4a3ee3d2f0eea97db29139eac7950269aa" title="Perform antialiasing by taing advantage of the order of subpixel elements on devices such as LCD pane...">Cairo::ANTIALIAS_SUBPIXEL</a> when drawing shapes.</p>
<p>Note that this option does not affect text rendering, instead see <a class="el" href="classCairo_1_1FontOptions.html#ac4805f8378e318a2ad52803285b7e7de" title="Sets the antialiasing mode for the font options object. ">FontOptions::set_antialias()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">antialias</td><td>the new antialiasing mode </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aaa0b483d3f36facb1c9f2aa7f0a0ac13"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_dash </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00964.html">std::valarray</a>&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>dashes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Alternate version of <a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a>. </p>
<p>You'll probably want to use the one that takes a <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a> argument instead.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>Instead use the version that takes a const dashes parameter. </dd></dl>

</div>
</div>
<a class="anchor" id="ade74abb6db86a97ff3800e431e27ba45"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_dash </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>dashes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the dash pattern to be used by <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>. </p>
<p>A dash pattern is specified by dashes, an array of positive values. Each value provides the user-space length of altenate "on" and "off" portions of the stroke. The offset specifies an offset into the pattern at which the stroke begins.</p>
<p>If dashes is empty dashing is disabled. If the size of dashes is 1, a symmetric pattern is assumed with alternating on and off portions of the size specified by the single value in dashes.</p>
<p>It is invalid for any value in dashes to be negative, or for all values to be 0. If this is the case, an exception will be thrown</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dashes</td><td>an array specifying alternate lengths of on and off portions </td></tr>
    <tr><td class="paramname">offset</td><td>an offset into the dash pattern at which the stroke should start</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a73d1ece668f1534ed91ae97cbd6abffe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_dash </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00964.html">std::valarray</a>&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>dashes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Alternate version of <a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a>. </p>
<p>You'll probably want to use the one that takes a <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a> argument instead. </p>

</div>
</div>
<a class="anchor" id="ad5de6d8a98135971116c63c28fd736b7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_dash </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>dashes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the dash pattern to be used by <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>. </p>
<p>A dash pattern is specified by dashes, an array of positive values. Each value provides the user-space length of altenate "on" and "off" portions of the stroke. The offset specifies an offset into the pattern at which the stroke begins.</p>
<p>Each "on" segment will have caps applied as if the segment were a separate sub-path. In particular, it is valid to use an "on" length of 0.0 with <a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1ea05298af325e119d8cfbb6bf7f81f8255" title="Use a round ending, the center of teh circle is teh end point. ">Cairo::LINE_CAP_ROUND</a> or <a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1ea8462f35d238cdc413a90cf2ac37c35f8" title="Use squared ending, the center of teh square is the end point. ">Cairo::LINE_CAP_SQUARE</a> in order to distributed dots or squares along a path.</p>
<p>Note: The length values are in user-space units as evaluated at the time of stroking. This is not necessarily the same as the user space at the time of <a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a>.</p>
<p>If dashes is empty dashing is disabled. If the size of dashes is 1, a symmetric pattern is assumed with alternating on and off portions of the size specified by the single value in dashes.</p>
<p>It is invalid for any value in dashes to be negative, or for all values to be 0. If this is the case, an exception will be thrown</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dashes</td><td>an array specifying alternate lengths of on and off portions </td></tr>
    <tr><td class="paramname">offset</td><td>an offset into the dash pattern at which the stroke should start</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad15693ae817e3229409d831c7dd96bed"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_fill_rule </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#a1ba15b0a2e22c87c14af044801006c85">FillRule</a>&#160;</td>
          <td class="paramname"><em>fill_rule</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the current fill rule within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>
<p>The fill rule is used to determine which regions are inside or outside a complex (potentially self-intersecting) path. The current fill rule affects both <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">fill()</a> and <a class="el" href="classCairo_1_1Context.html#a423077b911738772807cc8bc24c25488" title="Establishes a new clip region by intersecting the current clip region with the current Path as it wou...">clip()</a>. See FillRule for details on the semantics of each available fill rule.</p>
<p>The default fill rule is <a class="el" href="namespaceCairo.html#a1ba15b0a2e22c87c14af044801006c85a64d7bbc3c2d92a1ce8b5e3ec7ea050f7" title="If the path crosses the ray from left-to-right, counts +1. ">Cairo::FILL_RULE_WINDING</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fill_rule</td><td>a fill rule, specified as a FillRule </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9b344db51097aba30e36452e1364faef"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_font_face </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1FontFace.html">FontFace</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>font_face</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Replaces the current font face in the context with <em>font_face</em> <em>font_face</em>. </p>
<p>The replaced font face in the context will be destroyed if there are no other references to it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">font_face</td><td>a font face </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a18">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a7981bd1109ec5538fb505b36ec377757"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_font_matrix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the current font matrix to . </p>
<p>The font matrix gives a transformation from the design space of the font (in this space, the em-square is 1 unit by 1 unit) to user space. Normally, a simple scale is used (see <a class="el" href="classCairo_1_1Context.html#ac8a04a09c2e871a470fd030edb45b024" title="Sets the current font matrix to a scale by a factor of size, replacing any font matrix previously set...">set_font_size()</a>), but a more complex font matrix can be used to shear the font or stretch it unequally along the two axes</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">matrix</td><td>a <a class="el" href="classCairo_1_1Matrix.html" title="A Transformation matrix. ">Cairo::Matrix</a> describing a transform to be applied to the current font. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8d44b4f4e45a4fb2a794f3486f895640"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_font_matrix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a2d7f465d946804a8fe9877d7f7f4bbcb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_font_options </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>&amp;&#160;</td>
          <td class="paramname"><em>options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a set of custom font rendering options. </p>
<p>Rendering options are derived by merging these options with the options derived from underlying surface; if the value in <em>options</em> has a default value (like <a class="el" href="namespaceCairo.html#a2cb381e7f63bef767a7d697fc5af13b4a3735c7a91b6357b95387b58665734ba3" title="Use the default antialiasing for the subsystem and target device. ">Cairo::ANTIALIAS_DEFAULT</a>), then the value from the surface is used.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">options</td><td>font options to use </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac8a04a09c2e871a470fd030edb45b024"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_font_size </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the current font matrix to a scale by a factor of <em>size</em>, replacing any font matrix previously set with <a class="el" href="classCairo_1_1Context.html#ac8a04a09c2e871a470fd030edb45b024" title="Sets the current font matrix to a scale by a factor of size, replacing any font matrix previously set...">set_font_size()</a> or <a class="el" href="classCairo_1_1Context.html#a7981bd1109ec5538fb505b36ec377757" title="Sets the current font matrix to . ">set_font_matrix()</a>. </p>
<p>This results in a font size of <em>size</em> user space units. (More precisely, this matrix will result in the font's em-square being a  by <em>size</em> square in user space.)</p>
<p>If text is drawn without a call to <a class="el" href="classCairo_1_1Context.html#ac8a04a09c2e871a470fd030edb45b024" title="Sets the current font matrix to a scale by a factor of size, replacing any font matrix previously set...">set_font_size()</a>, (nor <a class="el" href="classCairo_1_1Context.html#a7981bd1109ec5538fb505b36ec377757" title="Sets the current font matrix to . ">set_font_matrix()</a> nor <a class="el" href="classCairo_1_1Context.html#aaa8c0b24d9338d392c18435babeb4263" title="Replaces the current font face, font matrix, and font options in the context with those of the scaled...">set_scaled_font()</a>), the default font size is 10.0.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>the new font size, in user space units) </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a19">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="aa3e9b13312b6ef331830b5348093e19e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_identity_matrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the current transformation matrix (CTM) by setting it equal to the identity matrix. </p>
<p>That is, the user-space and device-space axes will be aligned and one user-space unit will transform to one device-space unit. </p>

</div>
</div>
<a class="anchor" id="a07fd8fc2c75558484e960c5ff63a61cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_line_cap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1e">LineCap</a>&#160;</td>
          <td class="paramname"><em>line_cap</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the current line cap style within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>
<p>See LineCap for details about how the available line cap styles are drawn.</p>
<p>As with the other stroke parameters, the current line cap style is examined by <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>, stroke_extents(), and stroke_to_path(), but does not have any effect during path construction.</p>
<p>The default line cap style is <a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1eaf3facd37abd0619faf1efe6c3b37ef72" title="Start(stop) the line exactly at the start(end) point. ">Cairo::LINE_CAP_BUTT</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">line_cap</td><td>a line cap style, as a LineCap </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a23b5ba9363f568cacc1abf5e79a0200d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_line_join </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#adbc632404edaa736e01c12122239de73">LineJoin</a>&#160;</td>
          <td class="paramname"><em>line_join</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the current line join style within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>
<p>See LineJoin for details about how the available line join styles are drawn.</p>
<p>As with the other stroke parameters, the current line join style is examined by <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>, stroke_extents(), and stroke_to_path(), but does not have any effect during path construction.</p>
<p>The default line join style is <a class="el" href="namespaceCairo.html#adbc632404edaa736e01c12122239de73aa63cde0bfd47a1d5a80f2db93b0de823" title="Use a sharp (angled) corner, see Context::set_miter_limit() ">Cairo::LINE_JOIN_MITER</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">line_join</td><td>a line joint style, as a LineJoin </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9ad2649d95e81a65aa0c581c4345375e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_line_width </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the current line width within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>. </p>
<p>The line width specifies the diameter of a pen that is circular in user-space, (though device-space pen may be an ellipse in general due to scaling/shear/rotation of the CTM).</p>
<p>Note: When the description above refers to user space and CTM it refers to the user space and CTM in effect at the time of the stroking operation, not the user space and CTM in effect at the time of the call to <a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a>. The simplest usage makes both of these spaces identical. That is, if there is no change to the CTM between a call to <a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a> and the stroking operation, then one can just pass user-space values to <a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a> and ignore this note.</p>
<p>As with the other stroke parameters, the current line cap style is examined by <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>, stroke_extents(), and stroke_to_path(), but does not have any effect during path construction.</p>
<p>The default line width value is 2.0.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>a line width, as a user-space value </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a6">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ac2eafbac5591e569d22495f7920d60d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_matrix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Modifies the current transformation matrix (CTM) by setting it equal to matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">matrix</td><td>a transformation matrix from user space to device space </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6d94c400c393d7e40bf2d2bbf4e6dcba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_matrix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a583445ca963769d3f31613bc55b1e8ad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_miter_limit </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>limit</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the current miter limit within the cairo context. </p>
<p>If the current line join style is set to <a class="el" href="namespaceCairo.html#adbc632404edaa736e01c12122239de73aa63cde0bfd47a1d5a80f2db93b0de823" title="Use a sharp (angled) corner, see Context::set_miter_limit() ">Cairo::LINE_JOIN_MITER</a> (see <a class="el" href="classCairo_1_1Context.html#a23b5ba9363f568cacc1abf5e79a0200d" title="Sets the current line join style within the cairo Context. ">set_line_join()</a>), the miter limit is used to determine whether the lines should be joined with a bevel instead of a miter. <a class="el" href="namespaceCairo.html">Cairo</a> divides the length of the miter by the line width. If the result is greater than the miter limit, the style is converted to a bevel.</p>
<p>As with the other stroke parameters, the current line miter limit is examined by <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>, stroke_extents(), and stroke_to_path(), but does not have any effect during path construction.</p>
<p>The default miter limit value is 10.0, which will convert joins with interior angles less than 11 degrees to bevels instead of miters. For reference, a miter limit of 2.0 makes the miter cutoff at 60 degrees, and a miter limit of 1.414 makes the cutoff at 90 degrees.</p>
<p>A miter limit for a desired angle can be computed as: miter_limit = 1/sin(angle/2)</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">limit</td><td>miter limit to set </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a61f276527b921cbd4fd81880ac372e2a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#a2d612c31d146fc32d486f9614560c8d1">Operator</a>&#160;</td>
          <td class="paramname"><em>op</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the compositing operator to be used for all drawing operations. </p>
<p>See Operator for details on the semantics of each available compositing operator.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">op</td><td>a compositing operator, specified as a Operator </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aaa8c0b24d9338d392c18435babeb4263"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_scaled_font </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1ScaledFont.html">ScaledFont</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>scaled_font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Replaces the current font face, font matrix, and font options in the context with those of the <em>scaled_font</em>. </p>
<p>Except for some translation, the current CTM of the context should be the same as that of the #cairo_scaled_font_t, which can be accessed using <a class="el" href="classCairo_1_1ScaledFont.html#a2ecb41822d51284c2f52a83b05cede8e" title="Gets the CTM with which the ScaledFont was created. ">Cairo::ScaledFont::get_ctm()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scaled_font</td><td>a scaled font </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.8 </dd></dl>

</div>
</div>
<a class="anchor" id="a534d571d5aa4b500782036202a3e2aea"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_source </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; const <a class="el" href="classCairo_1_1Pattern.html">Pattern</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the source pattern within the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> to source. </p>
<p>This <a class="el" href="classCairo_1_1Pattern.html" title="Cairo::Pattern is the paint with which cairo draws. ">Pattern</a> will then be used for any subsequent drawing operation until a new source pattern is set.</p>
<p>Note: The <a class="el" href="classCairo_1_1Pattern.html" title="Cairo::Pattern is the paint with which cairo draws. ">Pattern</a>'s transformation matrix will be locked to the user space in effect at the time of <a class="el" href="classCairo_1_1Context.html#a534d571d5aa4b500782036202a3e2aea" title="Sets the source pattern within the Context to source. ">set_source()</a>. This means that further modifications of the current transformation matrix will not affect the source pattern.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>a <a class="el" href="classCairo_1_1Pattern.html" title="Cairo::Pattern is the paint with which cairo draws. ">Pattern</a> to be used as the source for subsequent drawing operations.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Pattern.html#a09dbb1295ba0a4f8a92b571aa6e425af" title="Sets the pattern&#39;s transformation matrix to . ">Pattern::set_matrix()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#aff3f3fc62bdf862646bb8cc568c30b2a" title="Sets the source pattern within the Context to an opaque color. ">set_source_rgb()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#af9267aed8eb866701178dcada6c7e51a" title="Sets the source pattern within the Context to a translucent color. ">set_source_rgba()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#ad88c0ef8700410920b37833b8e6ed329" title="This is a convenience function for creating a pattern from a Surface and setting it as the source...">set_source(const RefPtr&lt;Surface&gt;&amp; surface, double x, double y)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad88c0ef8700410920b37833b8e6ed329"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_source </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1Surface.html">Surface</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>surface</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This is a convenience function for creating a pattern from a <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> and setting it as the source. </p>
<p>The x and y parameters give the user-space coordinate at which the <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> origin should appear. (The <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> origin is its upper-left corner before any transformation has been applied.) The x and y patterns are negated and then set as translation values in the pattern matrix.</p>
<p>Other than the initial translation pattern matrix, as described above, all other pattern attributes, (such as its extend mode), are set to the default values as in <a class="el" href="classCairo_1_1Context.html#a9a27f6ec57d788fd3ecbc310aeb24d99">Context::create(const RefPtr&lt;Surface&gt;&amp; target)</a>. The resulting pattern can be queried with <a class="el" href="classCairo_1_1Context.html#a0b6eeda4d80f3d591a770cbbbf8a0c87" title="Gets the current source pattern for the Context. ">get_source()</a> so that these attributes can be modified if desired, (eg. to create a repeating pattern with <a class="el" href="classCairo_1_1Pattern.html#aa115faded8acf11fa0460a9dae9efc81" title="Sets the mode to be used for drawing outside the area of a pattern. ">Pattern::set_extend()</a>).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">surface</td><td>a <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 used to set the source pattern </td></tr>
    <tr><td class="paramname">x</td><td>User-space X coordinate for surface origin </td></tr>
    <tr><td class="paramname">y</td><td>User-space Y coordinate for surface origin </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aff3f3fc62bdf862646bb8cc568c30b2a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_source_rgb </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>red</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>green</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>blue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the source pattern within the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> to an opaque color. </p>
<p>This opaque color will then be used for any subsequent drawing operation until a new source pattern is set.</p>
<p>The color components are floating point numbers in the range 0 to 1. If the values passed in are outside that range, they will be clamped.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">red</td><td>red component of color </td></tr>
    <tr><td class="paramname">green</td><td>green component of color </td></tr>
    <tr><td class="paramname">blue</td><td>blue component of color</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#af9267aed8eb866701178dcada6c7e51a" title="Sets the source pattern within the Context to a translucent color. ">set_source_rgba()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a534d571d5aa4b500782036202a3e2aea" title="Sets the source pattern within the Context to source. ">set_source()</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a12">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="af9267aed8eb866701178dcada6c7e51a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_source_rgba </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>red</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>green</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>blue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the source pattern within the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a> to a translucent color. </p>
<p>This color will then be used for any subsequent drawing operation until a new source pattern is set.</p>
<p>The color and alpha components are floating point numbers in the range 0 to 1. If the values passed in are outside that range, they will be clamped.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">red</td><td>red component of color </td></tr>
    <tr><td class="paramname">green</td><td>green component of color </td></tr>
    <tr><td class="paramname">blue</td><td>blue component of color </td></tr>
    <tr><td class="paramname">alpha</td><td>alpha component of color</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#aff3f3fc62bdf862646bb8cc568c30b2a" title="Sets the source pattern within the Context to an opaque color. ">set_source_rgb()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a534d571d5aa4b500782036202a3e2aea" title="Sets the source pattern within the Context to source. ">set_source()</a> </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a15">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a01481a915f4086051f1c200f0f7a33d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::set_tolerance </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>tolerance</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the tolerance used when converting paths into trapezoids. </p>
<p>Curved segments of the path will be subdivided until the maximum deviation between the original path and the polygonal approximation is less than tolerance. The default value is 0.1. A larger value will give better performance, a smaller value, better appearance. (Reducing the value from the default value of 0.1 is unlikely to improve appearance significantly.) The accuracy of paths within <a class="el" href="namespaceCairo.html">Cairo</a> is limited by the precision of its internal arithmetic, and the prescribed  is restricted to the smallest representable internal value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tolerance</td><td>the tolerance, in device units (typically pixels) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af51f2c2ff72e8af66abeea3d15d25553"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::show_glyphs </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>glyphs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that generates the shape from an array of glyphs, rendered according to the current font face, font size (font matrix), and font options. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">glyphs</td><td>vector of glyphs to show </td></tr>
    <tr><td class="paramname">num_glyphs</td><td>number of glyphs to show </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a525cac95b4d4c2abea12b82c433adba9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::show_page </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Emits and clears the current page for backends that support multiple pages. </p>
<p>Use <a class="el" href="classCairo_1_1Context.html#a7ccbeacb2a7f2d787b3daf31a69383fd" title="Emits the current page for backends that support multiple pages, but doesn&#39;t clear it...">copy_page()</a> if you don't want to clear the page.</p>
<p>This is a convenience function that simply calls <a class="el" href="classCairo_1_1Surface.html#ad318acd86c1875854ef4e1e2867052c3" title="Emits and clears the current page for backends that support multiple pages. ">Surface::show_page()</a> on <em>cr's</em> target. </p>

</div>
</div>
<a class="anchor" id="a584596d6f12dbea30519b908cacce038"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::show_text </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"><em>utf8</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to the current font_face, font_size (font_matrix), and font_options. </p>
<p>This function first computes a set of glyphs for the string of text. The first glyph is placed so that its origin is at the current point. The origin of each subsequent glyph is offset from that of the previous glyph by the advance values of the previous glyph.</p>
<p>After this call the current point is moved to the origin of where the next glyph would be placed in this same progression. That is, the current point will be at the origin of the final glyph offset by its advance values. This allows for easy display of a single logical string with multiple calls to <a class="el" href="classCairo_1_1Context.html#a584596d6f12dbea30519b908cacce038" title="A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to ...">show_text()</a>.</p>
<p>Note: The <a class="el" href="classCairo_1_1Context.html#a584596d6f12dbea30519b908cacce038" title="A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to ...">show_text()</a> function call is part of what the cairo designers call the "toy" text API. It is convenient for short demos and simple programs, but it is not expected to be adequate for serious text-using applications. See <a class="el" href="classCairo_1_1Context.html#af51f2c2ff72e8af66abeea3d15d25553" title="A drawing operator that generates the shape from an array of glyphs, rendered according to the curren...">show_glyphs()</a> for the "real" text display API in cairo.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">utf8</td><td>a string containing text encoded in UTF-8 </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a20">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a45723fd605cc2343ab46cf603d330002"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::show_text_glyphs </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"><em>utf8</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a2483f165322e844c095c7be95849fdc2">Glyph</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>glyphs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00965.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#a3c23510889078c8a75d66add004ab288">TextCluster</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>clusters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#a61b770cf36c555a4098b5428e030542a">TextClusterFlags</a>&#160;</td>
          <td class="paramname"><em>cluster_flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This operation has rendering effects similar to <a class="el" href="classCairo_1_1Context.html#af51f2c2ff72e8af66abeea3d15d25553" title="A drawing operator that generates the shape from an array of glyphs, rendered according to the curren...">show_glyphs()</a> but, if the target surface supports it, uses the provided text and cluster mapping to embed the text for the glyphs shown in the output. </p>
<p>If the target does not support the extended attributes, this function acts like the basic <a class="el" href="classCairo_1_1Context.html#af51f2c2ff72e8af66abeea3d15d25553" title="A drawing operator that generates the shape from an array of glyphs, rendered according to the curren...">show_glyphs()</a> as if it had been passed <em>glyphs</em> and <em>num_glyphs</em>.</p>
<p>The mapping between <em>utf8</em> and <em>glyphs</em> is provided by an array of &lt;firstterm&gt;clusters&lt;/firstterm&gt;. Each cluster covers a number of text bytes and glyphs, and neighboring clusters cover neighboring areas of <em>utf8</em> and <em>glyphs</em>. The clusters should collectively cover <em>utf8</em> and <em>glyphs</em> in entirety.</p>
<p>The first cluster always covers bytes from the beginning of <em>utf8</em>. If <em>cluster_flags</em> do not have the <a class="el" href="namespaceCairo.html#a61b770cf36c555a4098b5428e030542aad1fc31baabb2eaa7661a0b8a91ad3b03" title="The clusters in the cluster array map to glyphs in the glyph array from end to start. ">Cairo::TEXT_CLUSTER_FLAG_BACKWARD</a> set, the first cluster also covers the beginning of <em>glyphs</em>, otherwise it covers the end of the <em>glyphs</em> array and following clusters move backward.</p>
<p>See <a class="el" href="namespaceCairo.html#a3c23510889078c8a75d66add004ab288" title="See the cairo_text_cluster_t reference in the cairo manual for more information. ">Cairo::TextCluster</a> for constraints on valid clusters.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">utf8</td><td>a string of text encoded in UTF-8 </td></tr>
    <tr><td class="paramname">glyphs</td><td>vector of glyphs to show </td></tr>
    <tr><td class="paramname">clusters</td><td>vector of cluster mapping information </td></tr>
    <tr><td class="paramname">cluster_flags</td><td>cluster mapping flags</td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.8 </dd></dl>

</div>
</div>
<a class="anchor" id="a8e4acbb44f4b3fac00ee93f6251d6d17"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::stroke </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that strokes the current <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> according to the current line width, line join, line cap, and dash settings. </p>
<p>After <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>, the current <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> will be cleared from the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a23b5ba9363f568cacc1abf5e79a0200d" title="Sets the current line join style within the cairo Context. ">set_line_join()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a07fd8fc2c75558484e960c5ff63a61cc" title="Sets the current line cap style within the cairo Context. ">set_line_cap()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#ab10d89295e122b04ff1bbda425ae069c" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke_preserve()</a>.</dd></dl>
<p>Note: Degenerate segments and sub-paths are treated specially and provide a useful result. These can result in two different situations:</p>
<ol type="1">
<li>Zero-length "on" segments set in <a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a>. If the cap style is <a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1ea05298af325e119d8cfbb6bf7f81f8255" title="Use a round ending, the center of teh circle is teh end point. ">Cairo::LINE_CAP_ROUND</a> or <a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1ea8462f35d238cdc413a90cf2ac37c35f8" title="Use squared ending, the center of teh square is the end point. ">Cairo::LINE_CAP_SQUARE</a> then these segments will be drawn as circular dots or squares respectively. In the case of <a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1ea8462f35d238cdc413a90cf2ac37c35f8" title="Use squared ending, the center of teh square is the end point. ">Cairo::LINE_CAP_SQUARE</a>, the orientation of the squares is determined by the direction of the underlying path.</li>
<li>A sub-path created by <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a> followed by either a <a class="el" href="classCairo_1_1Context.html#a32211b0684b1d264c17402b5289fcba0" title="Adds a line segment to the path from the current point to the beginning of the current subpath...">close_path()</a> or one or more calls to <a class="el" href="classCairo_1_1Context.html#ae305a9f8a79cc0e0693393a940ee1de8" title="Adds a line to the path from the current point to position (x, y) in user-space coordinates. ">line_to()</a> to the same coordinate as the <a class="el" href="classCairo_1_1Context.html#a4086700b5f780fd3fb94bea941895022" title="If the current subpath is not empty, begin a new subpath. ">move_to()</a>. If the cap style is <a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1ea05298af325e119d8cfbb6bf7f81f8255" title="Use a round ending, the center of teh circle is teh end point. ">Cairo::LINE_CAP_ROUND</a> then these sub-paths will be drawn as circular dots. Note that in the case of <a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1ea8462f35d238cdc413a90cf2ac37c35f8" title="Use squared ending, the center of teh square is the end point. ">Cairo::LINE_CAP_SQUARE</a> a degenerate sub-path will not be drawn at all, (since the correct orientation is indeterminate).</li>
</ol>
<p>In no case will a cap style of <a class="el" href="namespaceCairo.html#abbb9aae64ef26733965e6d500ae76f1eaf3facd37abd0619faf1efe6c3b37ef72" title="Start(stop) the line exactly at the start(end) point. ">Cairo::LINE_CAP_BUTT</a> cause anything to be drawn in the case of either degenerate segments or sub-paths. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="user-font_8cc-example.html#a8">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ab10d89295e122b04ff1bbda425ae069c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::stroke_preserve </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A drawing operator that strokes the current <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> according to the current line width, line join, line cap, and dash settings. </p>
<p>Unlike <a class="el" href="classCairo_1_1Context.html#a8e4acbb44f4b3fac00ee93f6251d6d17" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke()</a>, <a class="el" href="classCairo_1_1Context.html#ab10d89295e122b04ff1bbda425ae069c" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke_preserve()</a> preserves the <a class="el" href="classCairo_1_1Path.html" title="A data structure for holding a path. ">Path</a> within the cairo <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm. ">Context</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classCairo_1_1Context.html#a9ad2649d95e81a65aa0c581c4345375e" title="Sets the current line width within the cairo Context. ">set_line_width()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a23b5ba9363f568cacc1abf5e79a0200d" title="Sets the current line join style within the cairo Context. ">set_line_join()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#a07fd8fc2c75558484e960c5ff63a61cc" title="Sets the current line cap style within the cairo Context. ">set_line_cap()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a> </dd>
<dd>
<a class="el" href="classCairo_1_1Context.html#ab10d89295e122b04ff1bbda425ae069c" title="A drawing operator that strokes the current Path according to the current line width, line join, line cap, and dash settings. ">stroke_preserve()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a5613b4202f82f6a53f1aeac6c58e5521"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::text_path </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> &amp;&#160;</td>
          <td class="paramname"><em>utf8</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds closed paths for text to the current path. </p>
<p>The generated path if filled, achieves an effect similar to that of <a class="el" href="classCairo_1_1Context.html#a584596d6f12dbea30519b908cacce038" title="A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to ...">show_text()</a>.</p>
<p>Text conversion and positioning is done similar to <a class="el" href="classCairo_1_1Context.html#a584596d6f12dbea30519b908cacce038" title="A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to ...">show_text()</a>.</p>
<p>Like <a class="el" href="classCairo_1_1Context.html#a584596d6f12dbea30519b908cacce038" title="A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to ...">show_text()</a>, After this call the current point is moved to the origin of where the next glyph would be placed in this same progression. That is, the current point will be at the origin of the final glyph offset by its advance values. This allows for chaining multiple calls to to <a class="el" href="classCairo_1_1Context.html#a5613b4202f82f6a53f1aeac6c58e5521" title="Adds closed paths for text to the current path. ">text_path()</a> without having to set current point in between.</p>
<p>Note: The <a class="el" href="classCairo_1_1Context.html#a5613b4202f82f6a53f1aeac6c58e5521" title="Adds closed paths for text to the current path. ">text_path()</a> function call is part of what the cairo designers call the "toy" text API. It is convenient for short demos and simple programs, but it is not expected to be adequate for serious text-using applications. See <a class="el" href="classCairo_1_1Context.html#ad3372fc30d9a26c8d26c440a21464ce5" title="Adds closed paths for the glyphs to the current path. ">glyph_path()</a> for the "real" text path API in cairo.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">utf8</td><td>a string of text encoded in UTF-8 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac520512061fa271fff3b1f922f94c9cb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::transform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1Matrix.html">Matrix</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Modifies the current transformation matrix (CTM) by applying matrix as an additional transformation. </p>
<p>The new transformation of user space takes place after any existing transformation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">matrix</td><td>a transformation to be applied to the user-space axes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1bb46fed0df67873bef36e8d7c515c5a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::transform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcairo__matrix__t.html">cairo_matrix_t</a>&amp;&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a3058f50f915d9c43d165dfcd1a940cdc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::translate </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>tx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>ty</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Modifies the current transformation matrix (CTM) by translating the user-space origin by (tx, ty). </p>
<p>This offset is interpreted as a user-space coordinate according to the CTM in place before the new call to translate. In other words, the translation of the user-space origin takes place after any existing transformation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tx</td><td>amount to translate in the X direction </td></tr>
    <tr><td class="paramname">ty</td><td>amount to translate in the Y direction </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab20ad42403add42a9388b281074b77d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::unset_dash </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function disables a dash pattern that was set with <a class="el" href="classCairo_1_1Context.html#aaa0b483d3f36facb1c9f2aa7f0a0ac13" title="Alternate version of set_dash(). ">set_dash()</a> </p>

</div>
</div>
<a class="anchor" id="aa9cc3eeb14b515b184be6a401c0993a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::user_to_device </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transform a coordinate from user space to device space by multiplying the given point by the current transformation matrix (CTM). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>X value of coordinate (in/out parameter) </td></tr>
    <tr><td class="paramname">y</td><td>Y value of coordinate (in/out parameter)</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>Use the const version. </dd></dl>

</div>
</div>
<a class="anchor" id="a30ee2fbeca1cb347548d5b9d186e38ea"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::user_to_device </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transform a coordinate from user space to device space by multiplying the given point by the current transformation matrix (CTM). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>X value of coordinate (in/out parameter) </td></tr>
    <tr><td class="paramname">y</td><td>Y value of coordinate (in/out parameter) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab0daccfeaa8b173b26473e79271f7e88"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::user_to_device_distance </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transform a distance vector from user space to device space. </p>
<p>This function is similar to <a class="el" href="classCairo_1_1Context.html#aa9cc3eeb14b515b184be6a401c0993a4" title="Transform a coordinate from user space to device space by multiplying the given point by the current ...">user_to_device()</a> except that the translation components of the CTM will be ignored when transforming (dx,dy).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dx</td><td>X component of a distance vector (in/out parameter) </td></tr>
    <tr><td class="paramname">dy</td><td>Y component of a distance vector (in/out parameter)</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000004">Deprecated:</a></b></dt><dd>Use the const version. </dd></dl>

</div>
</div>
<a class="anchor" id="a14e24c58fc7f39af6a127ac5b684a9cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::Context::user_to_device_distance </td>
          <td>(</td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transform a distance vector from user space to device space. </p>
<p>This function is similar to <a class="el" href="classCairo_1_1Context.html#aa9cc3eeb14b515b184be6a401c0993a4" title="Transform a coordinate from user space to device space by multiplying the given point by the current ...">user_to_device()</a> except that the translation components of the CTM will be ignored when transforming (dx,dy).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dx</td><td>X component of a distance vector (in/out parameter) </td></tr>
    <tr><td class="paramname">dy</td><td>Y component of a distance vector (in/out parameter) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a620db06ff96d42e8e1db12ada0435fcc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCairo_1_1Context.html#a14e54b45199452f9916ebcafcd4a629e">cobject</a>* Cairo::Context::m_cobject</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cairomm/context.h</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Sep 21 2015 21:56:36 for cairomm by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>