Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > bf5ad49bf8714f68fa4d0bb1597cb497 > files > 63

cairomm-doc-1.9.8-2.fc15.2.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
        <title>cairomm: Cairo::ToyFontFace Class Reference</title>
        <link href="cairomm.css" rel="stylesheet" type="text/css">
    </head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div 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 class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespaceCairo.html">Cairo</a>      </li>
      <li><a class="el" href="classCairo_1_1ToyFontFace.html">Cairo::ToyFontFace</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<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>  </div>
  <div class="headertitle">
<h1>Cairo::ToyFontFace Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Cairo::ToyFontFace" --><!-- doxytag: inherits="Cairo::FontFace" -->
<p>A simple font face used for the cairo 'toy' font API.  
<a href="#_details">More...</a></p>

<p>Inherits <a class="el" href="classCairo_1_1FontFace.html">Cairo::FontFace</a>.</p>

<p><a href="classCairo_1_1ToyFontFace-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00237.html">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ToyFontFace.html#a9574c9445d16c98bd23c9a1d9360c75e">get_family</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the familly name of a toy font.  <a href="#a9574c9445d16c98bd23c9a1d9360c75e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#a0a2c19fefac301a702a6b7fdb368bf55">FontSlant</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ToyFontFace.html#a377f091bdfa7695f97e0e7b0ca044854">get_slant</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the slant a toy font.  <a href="#a377f091bdfa7695f97e0e7b0ca044854"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#ad8514818fb9292a5864b57f4b8a1e546">FontWeight</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ToyFontFace.html#abb186cefab7692e5e2d9f9029797ff87">get_weight</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the weight a toy font.  <a href="#abb186cefab7692e5e2d9f9029797ff87"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1ToyFontFace.html">ToyFontFace</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ToyFontFace.html#a07c0ca7fd0dc54c31bfa1d8a813aff59">create</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00237.html">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><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a font face from a triplet of family, slant, and weight.  <a href="#a07c0ca7fd0dc54c31bfa1d8a813aff59"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ToyFontFace.html#a78612cc2a17fda1953c54ef15bc84dcf">ToyFontFace</a> (const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00237.html">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>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A simple font face used for the cairo 'toy' font API. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>1.8 </dd></dl>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a78612cc2a17fda1953c54ef15bc84dcf"></a><!-- doxytag: member="Cairo::ToyFontFace::ToyFontFace" ref="a78612cc2a17fda1953c54ef15bc84dcf" args="(const std::string &amp;family, FontSlant slant, FontWeight weight)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::ToyFontFace::ToyFontFace </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00237.html">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></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a07c0ca7fd0dc54c31bfa1d8a813aff59"></a><!-- doxytag: member="Cairo::ToyFontFace::create" ref="a07c0ca7fd0dc54c31bfa1d8a813aff59" args="(const std::string &amp;family, FontSlant slant, FontWeight weight)" -->
<div class="memitem">
<div class="memproto">
      <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_1ToyFontFace.html">ToyFontFace</a>&gt; Cairo::ToyFontFace::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00237.html">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></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a font face from a triplet of family, slant, and weight. </p>
<p>These font faces are used in implementation of the the <a class="el" href="classCairo_1_1Context.html" title="Context is the main class used to draw in cairomm.">Context</a> "toy" font API.</p>
<p>If family is the zero-length string "", the platform-specific default family is assumed. The default family then can be queried using <a class="el" href="classCairo_1_1ToyFontFace.html#a9574c9445d16c98bd23c9a1d9360c75e" title="Gets the familly name of a toy font.">get_family()</a>.</p>
<p>The <a class="el" href="classCairo_1_1Context.html#acb1da5f3949195f76424e11be923fbfd">Context::select_font_face()</a> function uses this to create font faces. See that function for limitations of toy font faces.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>family</em>&#160;</td><td>a font family name, encoded in UTF-8. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>slant</em>&#160;</td><td>the slant for the font. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>weight</em>&#160;</td><td>the weight for the font. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="toy-text_8cc-example.html#a4">toy-text.cc</a>, and <a class="el" href="user-font_8cc-example.html#a5">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9574c9445d16c98bd23c9a1d9360c75e"></a><!-- doxytag: member="Cairo::ToyFontFace::get_family" ref="a9574c9445d16c98bd23c9a1d9360c75e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00237.html">std::string</a> Cairo::ToyFontFace::get_family </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the familly name of a toy font. </p>

</div>
</div>
<a class="anchor" id="a377f091bdfa7695f97e0e7b0ca044854"></a><!-- doxytag: member="Cairo::ToyFontFace::get_slant" ref="a377f091bdfa7695f97e0e7b0ca044854" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceCairo.html#a0a2c19fefac301a702a6b7fdb368bf55">FontSlant</a> Cairo::ToyFontFace::get_slant </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the slant a toy font. </p>

</div>
</div>
<a class="anchor" id="abb186cefab7692e5e2d9f9029797ff87"></a><!-- doxytag: member="Cairo::ToyFontFace::get_weight" ref="abb186cefab7692e5e2d9f9029797ff87" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceCairo.html#ad8514818fb9292a5864b57f4b8a1e546">FontWeight</a> Cairo::ToyFontFace::get_weight </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the weight a toy font. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cairomm/fontface.h</li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Dec 30 2010 22:31:50 for cairomm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>