Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 1801

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_28fb57ed95c79fe5ed14c4f71fb4c2a2.html">qt</a>
  </div>
</div>
<div class="contents">
<h1>QtFont.h</h1><a href="QtFont_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00015"></a>00015 <span class="preprocessor">#ifndef _QtFont_H_</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define _QtFont_H_</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;qfont.h&gt;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="FontBase_8h.html" title="FontBase class interface.">graphics/FontBase.h</a>&quot;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="keyword">namespace </span>hippodraw {
<a name="l00023"></a>00023 
<a name="l00028"></a><a class="code" href="classhippodraw_1_1QtFont.html">00028</a> <span class="keyword">class </span><a class="code" href="classhippodraw_1_1QtFont.html" title="An implementation of FontBase that uses a Qt QFont as implementation.">QtFont</a> : <span class="keyword">public</span> <a class="code" href="classhippodraw_1_1FontBase.html" title="A abstract base class for font handling.">FontBase</a>
<a name="l00029"></a>00029 {
<a name="l00030"></a>00030 <span class="keyword">private</span>:
<a name="l00031"></a>00031 
<a name="l00033"></a><a class="code" href="classhippodraw_1_1QtFont.html#a472ac38d15f106ce6405a67f671010e1">00033</a>   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qfont.html">QFont</a> <a class="code" href="classhippodraw_1_1QtFont.html#a472ac38d15f106ce6405a67f671010e1" title="The font object.">m_font</a>;
<a name="l00034"></a>00034 
<a name="l00036"></a><a class="code" href="classhippodraw_1_1QtFont.html#ae933a67759e0155785b892c61e477225">00036</a>   <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFont.html#ae933a67759e0155785b892c61e477225" title="Keeps a track if the font is set of not.">m_flag</a>;
<a name="l00037"></a>00037   
<a name="l00038"></a>00038 <span class="keyword">public</span>:
<a name="l00039"></a>00039 
<a name="l00041"></a>00041   <a class="code" href="classhippodraw_1_1QtFont.html#ad0abcc5136f16400072683dc047a9150" title="The default constructor.">QtFont</a>();
<a name="l00042"></a>00042   
<a name="l00044"></a>00044   <a class="code" href="classhippodraw_1_1QtFont.html#ad0abcc5136f16400072683dc047a9150" title="The default constructor.">QtFont</a>( <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1QtFont.html#a162f632a69e47449f8140decf25e0b3c" title="Get the family associated with the font.">family</a>, <span class="keywordtype">int</span> pointsize = 12,
<a name="l00045"></a>00045           <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1QtFont.html#ac672b74ca7b356d39061a9d6aee829c2" title="Get the weight of the font.">weight</a> = <a class="code" href="namespacehippodraw_1_1FontWeight.html#a103012df4b715f58a539b009a0b8b340a5ecbcf0afce98b042f35ec71ba03fa4b">QFont::Normal</a>, <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFont.html#a735758f6493fb1f49b86baade70c4199" title="Returns true if the font is italic, othwise returns false.">italic</a> = <span class="keyword">false</span> );
<a name="l00046"></a>00046 
<a name="l00047"></a>00047   
<a name="l00049"></a>00049   <a class="code" href="classhippodraw_1_1QtFont.html#ad0abcc5136f16400072683dc047a9150" title="The default constructor.">QtFont</a>( <span class="keyword">const</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qfont.html">QFont</a>&amp; qfont );
<a name="l00050"></a>00050 
<a name="l00052"></a>00052   <span class="keyword">virtual</span> <a class="code" href="classhippodraw_1_1QtFont.html#a4ba3945d4a6a17284676237aaff4e300" title="The destructor.">~QtFont</a>();
<a name="l00053"></a>00053 
<a name="l00055"></a>00055   <span class="keyword">virtual</span> std::string <a class="code" href="classhippodraw_1_1QtFont.html#a162f632a69e47449f8140decf25e0b3c" title="Get the family associated with the font.">family</a>() <span class="keyword">const</span>;
<a name="l00056"></a>00056   
<a name="l00058"></a>00058   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFont.html#adfa56660d1ad1f5227a1194555b1138f" title="Set the family associated with the font.">setFamily</a>( <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1QtFont.html#a162f632a69e47449f8140decf25e0b3c" title="Get the family associated with the font.">family</a> );
<a name="l00059"></a>00059   
<a name="l00061"></a>00061   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1QtFont.html#a28bbdbe11c3cf99cec37f82c84f263c5" title="Get the pointsize of the font.">pointSize</a> () <span class="keyword">const</span>;
<a name="l00062"></a>00062   
<a name="l00064"></a>00064   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFont.html#ad848861198d96955606613a0e40d7012" title="Set the pointsize of the font.">setPointSize</a>( <span class="keywordtype">int</span> pointsize );
<a name="l00065"></a>00065   
<a name="l00067"></a>00067   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1QtFont.html#ac672b74ca7b356d39061a9d6aee829c2" title="Get the weight of the font.">weight</a> () <span class="keyword">const</span>;
<a name="l00068"></a>00068   
<a name="l00070"></a>00070   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFont.html#ae779d79a15e90e4efaf210d85af00338" title="Set the weight of the font.">setWeight</a>( <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1QtFont.html#ac672b74ca7b356d39061a9d6aee829c2" title="Get the weight of the font.">weight</a> );
<a name="l00071"></a>00071   
<a name="l00072"></a>00072   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFont.html#a735758f6493fb1f49b86baade70c4199" title="Returns true if the font is italic, othwise returns false.">italic</a> () <span class="keyword">const</span>;
<a name="l00073"></a>00073   
<a name="l00075"></a>00075   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFont.html#a57515c00ef396420b0ecc983d369589d" title="Set the font to be italic.">setItalic</a>( <span class="keywordtype">bool</span> enable );
<a name="l00076"></a>00076 
<a name="l00078"></a>00078   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qfont.html">QFont</a> &amp; <a class="code" href="classhippodraw_1_1QtFont.html#ada43f770e1483b9b255b2151d39d386c" title="Get the font object held in here.">font</a>() <span class="keyword">const</span>;
<a name="l00079"></a>00079 
<a name="l00083"></a>00083   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFont.html#a85038ba27e2f34c257e1ea46883c39cf" title="Sets the font object of this class to be Null.">unsetFont</a>();
<a name="l00084"></a>00084 
<a name="l00086"></a>00086   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFont.html#a462f5f47c33ec565d12f24611472fc28" title="Set the font object of this class to be the one described by qfont.">setFont</a>( <span class="keyword">const</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qfont.html">QFont</a> &amp; qfont );
<a name="l00087"></a>00087 
<a name="l00089"></a>00089   <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFont.html#a4bac3b509e3ec5554eeadfbeae74092b" title="Is the font set ?">isSet</a>();
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 };
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 } <span class="comment">// namespace hippodraw</span>
<a name="l00094"></a>00094 
<a name="l00095"></a>00095 <span class="preprocessor">#endif //_QtFont_H_</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span>
<a name="l00097"></a>00097 
<a name="l00098"></a>00098  
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>