Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f37f2c0b149d5391818dc5157943cda0 > files > 533

gnome-chemistry-utils-devel-0.10.8-3mdv2010.0.i586.rpm

<!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"/>
<title>The Gnome Chemistry Utils: text.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</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_3f1a4fbcec42af7c381c8030b930461d.html">libs</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_1f5da3c0cda3468e6af2b669a803fceb.html">gcp</a>
  </div>
</div>
<div class="contents">
<h1>text.h</h1><a href="text_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- C++ -*-</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">/* </span>
<a name="l00004"></a>00004 <span class="comment"> * GChemPaint library</span>
<a name="l00005"></a>00005 <span class="comment"> * text.h </span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2002-2008 Jean Bréfort &lt;jean.brefort@normalesup.org&gt;</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * This program is free software; you can redistribute it and/or </span>
<a name="l00010"></a>00010 <span class="comment"> * modify it under the terms of the GNU General Public License as </span>
<a name="l00011"></a>00011 <span class="comment"> * published by the Free Software Foundation; either version 2 of the</span>
<a name="l00012"></a>00012 <span class="comment"> * License, or (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00015"></a>00015 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00017"></a>00017 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00020"></a>00020 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301</span>
<a name="l00022"></a>00022 <span class="comment"> * USA</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef GCHEMPAINT_TEXT_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define GCHEMPAINT_TEXT_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="macros_8h.html">gcu/macros.h</a>&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="object_8h.html">gcu/object.h</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;libxml/tree.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;gtk/gtk.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;<a class="code" href="text-object_8h.html">text-object.h</a>&quot;</span>
<a name="l00033"></a>00033 
<a name="l00035"></a>00035 <span class="keyword">namespace </span>gcp {
<a name="l00036"></a>00036 
<a name="l00041"></a><a class="code" href="classgcp_1_1Text.html">00041</a> <span class="keyword">class </span><a class="code" href="classgcp_1_1Text.html">Text</a>: <span class="keyword">public</span> <a class="code" href="classgcp_1_1TextObject.html">TextObject</a>
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00047"></a>00047         <a class="code" href="classgcp_1_1Text.html#a3fa438ddcdf4b8caca44e3d4b53b9457">Text</a> ();
<a name="l00054"></a>00054         <a class="code" href="classgcp_1_1Text.html#a3fa438ddcdf4b8caca44e3d4b53b9457">Text</a> (<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
<a name="l00058"></a>00058         <span class="keyword">virtual</span> <a class="code" href="classgcp_1_1Text.html#a40cb650473ea3c9d9d9576aa750e6795">~Text</a> ();
<a name="l00059"></a>00059 
<a name="l00066"></a>00066         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Text.html#a9d5db9ab1a4bd4667873d02031da9466">GetCoords</a> (<span class="keywordtype">double</span> *x, <span class="keywordtype">double</span> *y);
<a name="l00073"></a>00073         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Text.html#a6013f485ccf3ba770fbd50f978387689">SetCoords</a> (<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
<a name="l00078"></a>00078         xmlNodePtr <a class="code" href="classgcp_1_1Text.html#a7ce14e0f0ea6ccaeac985c87e54625f5">Save</a> (xmlDocPtr xml) <span class="keyword">const</span>;
<a name="l00086"></a>00086         xmlNodePtr <a class="code" href="classgcp_1_1Text.html#a3c41765e8c723ef37196e2e3fde46768">SaveSelection</a> (xmlDocPtr xml) <span class="keyword">const</span>;
<a name="l00092"></a>00092         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Text.html#a78edca888b30e0044878b8fe3916cea4">Load</a> (xmlNodePtr node);
<a name="l00099"></a>00099         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Text.html#a139d7535955ec3b8d89aee9ec2234ad9">LoadSelection</a> (xmlNodePtr node, <span class="keywordtype">unsigned</span> pos);
<a name="l00110"></a>00110         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Text.html#ae7b1f761d4509260a0d7f4d6d9da220e">LoadNode</a> (xmlNodePtr node, <span class="keywordtype">unsigned</span> &amp;pos, <span class="keywordtype">int</span> level = 0, <span class="keywordtype">int</span> cur_size = 0);
<a name="l00116"></a>00116         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Text.html#a3bfe9c901a6b19872acce7f73f4c28b7">Add</a> (GtkWidget* w) <span class="keyword">const</span>;
<a name="l00122"></a>00122         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Text.html#abe2736cface1fd00fee418af9711bf90">Update</a> (GtkWidget* w) <span class="keyword">const</span>;
<a name="l00131"></a>00131         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Text.html#a5bdeb24fe0d9ae6ea8ee8c7d57a0f738">SetSelected</a> (GtkWidget* w, <span class="keywordtype">int</span> state);
<a name="l00137"></a>00137         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Text.html#a9d76d34b028f08a3a042f43aaa4eb18e">OnChanged</a> (<span class="keywordtype">bool</span> save);
<a name="l00147"></a>00147         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Text.html#a581a5d0cb39f2a26b35608d019e83cb3">Transform2D</a> (<a class="code" href="classgcu_1_1Matrix2D.html">gcu::Matrix2D</a>&amp; m, <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
<a name="l00155"></a>00155         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Text.html#a6ab465f012e76a652da6c8865250e56e">OnEvent</a> (GdkEvent *event);
<a name="l00162"></a><a class="code" href="classgcp_1_1Text.html#a527d507a42e6f147246c7732151a7524">00162</a>         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Text.html#a527d507a42e6f147246c7732151a7524">GetSize</a> (<span class="keywordtype">double</span>&amp; x, <span class="keywordtype">double</span>&amp; y) {x = <a class="code" href="classgcp_1_1TextObject.html#a4e47f03c009852f60a1c4e1a51264b7e">m_length</a>; y = <a class="code" href="classgcp_1_1TextObject.html#a61f6050eb628502108f9f2c733b634f9">m_height</a>;}
<a name="l00168"></a>00168         <span class="keywordtype">double</span> <a class="code" href="classgcp_1_1Text.html#ab92903025c76d26f569c7aac04857555">GetYAlign</a> ();
<a name="l00175"></a><a class="code" href="classgcp_1_1Text.html#acd7498ef6df29c3a737090c86ff79d03">00175</a>         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Text.html#acd7498ef6df29c3a737090c86ff79d03">SetText</a> (<span class="keywordtype">char</span> <span class="keyword">const</span> *text) {<a class="code" href="classgcp_1_1TextObject.html#ad745bccd690bfbe755c731f93637f0dc">m_buf</a> = text;}
<a name="l00185"></a>00185         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Text.html#a86b0e65e6760ed69f720f827ef2bfd38">SetProperty</a> (<span class="keywordtype">unsigned</span> property, <span class="keywordtype">char</span> <span class="keyword">const</span> *value);
<a name="l00186"></a>00186 
<a name="l00198"></a><a class="code" href="classgcp_1_1Text.html#a37c27b5dbe8c1a7adfe02e085714b426">00198</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (PangoAlignment, Align)
<a name="l00210"></a><a class="code" href="classgcp_1_1Text.html#ae9f8d257c54976a2220457845e7d3504">00210</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (<span class="keywordtype">bool</span>, Justified)
<a name="l00224"></a><a class="code" href="classgcp_1_1Text.html#a69ad8036d56a4efafca47e6df1171cc3">00224</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (GtkAnchorType, Anchor)
<a name="l00225"></a>00225 };
<a name="l00226"></a>00226 
<a name="l00227"></a>00227 }       <span class="comment">//      namespace gcp</span>
<a name="l00228"></a>00228 
<a name="l00229"></a>00229 <span class="preprocessor">#endif  //GCHEMPAINT_TEXT_H</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:53 2009 for The Gnome Chemistry Utils by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>