<!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: fontface.h Source File</title> <link href="cairomm.css" rel="stylesheet" type="text/css"> </head> <body> <!-- Generated by Doxygen 1.5.5 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_ece2dda898a4846236927a5f7f40c301.html">cairomm</a> </div> </div> </div> <h1>fontface.h</h1><a href="fontface_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (C) 2005 The cairomm Development Team</span> <a name="l00002"></a>00002 <span class="comment"> *</span> <a name="l00003"></a>00003 <span class="comment"> * This library is free software; you can redistribute it and/or</span> <a name="l00004"></a>00004 <span class="comment"> * modify it under the terms of the GNU Library General Public</span> <a name="l00005"></a>00005 <span class="comment"> * License as published by the Free Software Foundation; either</span> <a name="l00006"></a>00006 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span> <a name="l00007"></a>00007 <span class="comment"> *</span> <a name="l00008"></a>00008 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> <a name="l00009"></a>00009 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00010"></a>00010 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00011"></a>00011 <span class="comment"> * Library General Public License for more details.</span> <a name="l00012"></a>00012 <span class="comment"> *</span> <a name="l00013"></a>00013 <span class="comment"> * You should have received a copy of the GNU Library General Public</span> <a name="l00014"></a>00014 <span class="comment"> * License along with this library; if not, write to the Free Software</span> <a name="l00015"></a>00015 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA</span> <a name="l00016"></a>00016 <span class="comment"> * 02110-1301, USA.</span> <a name="l00017"></a>00017 <span class="comment"> */</span> <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="preprocessor">#ifndef __CAIROMM_FONTFACE_H</span> <a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define __CAIROMM_FONTFACE_H</span> <a name="l00021"></a>00021 <span class="preprocessor"></span> <a name="l00022"></a>00022 <span class="preprocessor">#include <<a class="code" href="enums_8h.html">cairomm/enums.h</a>></span> <a name="l00023"></a>00023 <span class="preprocessor">#include <cairo.h></span> <a name="l00024"></a>00024 <a name="l00025"></a>00025 <a name="l00026"></a>00026 <span class="keyword">namespace </span>Cairo <a name="l00027"></a>00027 { <a name="l00028"></a>00028 <a name="l00032"></a><a class="code" href="classCairo_1_1FontFace.html">00032</a> <span class="keyword">class </span><a class="code" href="classCairo_1_1FontFace.html" title="This is a reference-counted object that should be used via Cairo::RefPtr.">FontFace</a> <a name="l00033"></a>00033 { <a name="l00034"></a>00034 <span class="keyword">protected</span>: <a name="l00035"></a>00035 <a name="l00036"></a>00036 <span class="comment">//TODO?: FontFace(cairo_font_face_t *target);</span> <a name="l00037"></a>00037 <a name="l00038"></a>00038 <span class="keyword">public</span>: <a name="l00039"></a>00039 <a name="l00044"></a>00044 <span class="keyword">explicit</span> <a class="code" href="classCairo_1_1FontFace.html#f464d8f051930da555fcbf632add755d" title="Create a C++ wrapper for the C instance.">FontFace</a>(cairo_font_face_t* <a class="code" href="classCairo_1_1FontFace.html#b1631f7eb6458a98be291880a1dde3d7">cobject</a>, <span class="keywordtype">bool</span> has_reference = <span class="keyword">false</span>); <a name="l00045"></a>00045 <a name="l00046"></a>00046 <a name="l00047"></a>00047 <span class="keyword">virtual</span> <a class="code" href="classCairo_1_1FontFace.html#a5d84dba43cd09c1710b458132a9ab8d">~FontFace</a>(); <a name="l00048"></a>00048 <a name="l00049"></a>00049 <span class="comment">/* Don't wrap these until we know what they are good for.</span> <a name="l00050"></a>00050 <span class="comment"> void* get_user_data(const cairo_user_data_key_t *key);</span> <a name="l00051"></a>00051 <span class="comment"></span> <a name="l00052"></a>00052 <span class="comment"> void set_user_data(const cairo_user_data_key_t *key, void *user_data, cairo_destroy_func_t destroy);</span> <a name="l00053"></a>00053 <span class="comment"> */</span> <a name="l00054"></a>00054 <a name="l00055"></a>00055 <a class="code" href="namespaceCairo.html#23e1a9a5be49d16cf3871e841e8ab522">FontType</a> <a class="code" href="classCairo_1_1FontFace.html#201bec9a38120a2f77b56c2e61c0a481">get_type</a>() <span class="keyword">const</span>; <a name="l00056"></a>00056 <a name="l00057"></a><a class="code" href="classCairo_1_1FontFace.html#b1631f7eb6458a98be291880a1dde3d7">00057</a> <span class="keyword">typedef</span> cairo_font_face_t cobject; <a name="l00058"></a><a class="code" href="classCairo_1_1FontFace.html#c8b43511916adc955411051e3a29b53a">00058</a> <span class="keyword">inline</span> cobject* <a class="code" href="classCairo_1_1FontFace.html#c8b43511916adc955411051e3a29b53a">cobj</a>() { <span class="keywordflow">return</span> <a class="code" href="classCairo_1_1FontFace.html#e2d03f09adca1b8f9008680f0e831b0c">m_cobject</a>; } <a name="l00059"></a><a class="code" href="classCairo_1_1FontFace.html#af59eb8a1bd2a51e4d9c850279ae6bd6">00059</a> <span class="keyword">inline</span> <span class="keyword">const</span> cobject* <a class="code" href="classCairo_1_1FontFace.html#c8b43511916adc955411051e3a29b53a">cobj</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCairo_1_1FontFace.html#e2d03f09adca1b8f9008680f0e831b0c">m_cobject</a>; } <a name="l00060"></a>00060 <a name="l00061"></a>00061 <span class="preprocessor"> #ifndef DOXYGEN_IGNORE_THIS</span> <a name="l00063"></a>00063 <span class="preprocessor"> inline ErrorStatus get_status() const</span> <a name="l00064"></a>00064 <span class="preprocessor"></span> { <span class="keywordflow">return</span> cairo_font_face_status(const_cast<cairo_font_face_t*>(<a class="code" href="classCairo_1_1FontFace.html#c8b43511916adc955411051e3a29b53a">cobj</a>())); } <a name="l00065"></a>00065 <span class="preprocessor"> #endif //DOXYGEN_IGNORE_THIS</span> <a name="l00066"></a>00066 <span class="preprocessor"></span> <a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="classCairo_1_1FontFace.html#33876cc188930bf2ecbcd43c8604267b">reference</a>() <span class="keyword">const</span>; <a name="l00068"></a>00068 <span class="keywordtype">void</span> <a class="code" href="classCairo_1_1FontFace.html#603f1045e7fed08f9e3001be69c2bb56">unreference</a>() <span class="keyword">const</span>; <a name="l00069"></a>00069 <a name="l00070"></a>00070 <span class="keyword">protected</span>: <a name="l00071"></a>00071 <a name="l00072"></a><a class="code" href="classCairo_1_1FontFace.html#e2d03f09adca1b8f9008680f0e831b0c">00072</a> cobject* <a class="code" href="classCairo_1_1FontFace.html#e2d03f09adca1b8f9008680f0e831b0c">m_cobject</a>; <a name="l00073"></a>00073 }; <a name="l00074"></a>00074 <a name="l00075"></a>00075 } <span class="comment">// namespace Cairo</span> <a name="l00076"></a>00076 <a name="l00077"></a>00077 <span class="preprocessor">#endif //__CAIROMM_FONTFACE_H</span> <a name="l00078"></a>00078 <span class="preprocessor"></span> <a name="l00079"></a>00079 <span class="comment">// vim: ts=2 sw=2 et</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 26 07:43:32 2008 for cairomm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> </body> </html>