Sophie

Sophie

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

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: gcp::View Class Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><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="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacegcp.html">gcp</a>::<a class="el" href="classgcp_1_1View.html">View</a>
  </div>
</div>
<div class="contents">
<h1>gcp::View Class Reference</h1><!-- doxytag: class="gcp::View" -->
<p><code>#include &lt;<a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>&gt;</code></p>

<p><a href="classgcp_1_1View-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#aaae23ce01e8f8439634263c65b7eac76">View</a> (<a class="el" href="classgcp_1_1Document.html">Document</a> *pDoc, bool Embedded)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#afe0b092caa73069bd99a3a37f5b2496c">~View</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkWidget *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a703d205b2d4305aa725d6450dce9579c">GetWidget</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcp_1_1Document.html">Document</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a637eda33cfc3af52f101631741f79288">GetDoc</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a50f5712323b8baae09441e8b43483d4f">OnEvent</a> (GnomeCanvasItem *item, GdkEvent *event, GtkWidget *widget)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a61cd10139f200a736593f086c4c10e06">AddObject</a> (<a class="el" href="classgcu_1_1Object.html">gcu::Object</a> const *pObject)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a3e79a612db2ced2d5c432f43064c6cbd">Update</a> (<a class="el" href="classgcu_1_1Object.html">gcu::Object</a> const *pObject)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkWidget *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a2deb8aa87d6f729779d039e30f0758f5">CreateNewWidget</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a51f10d985729b3852371c123482ad512">OnDestroy</a> (GtkWidget *widget)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GnomeCanvasItem *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a03a920824b0d26af5522c15e12c1a926">GetCanvasItem</a> (GtkWidget *widget, <a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *object)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GnomeCanvasItem *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a91c2d9abc36f5f9da47fdc15140e756b">GetBackground</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a411739b183ccb77274c53390e5d68065">GetZoomFactor</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a63cb9463817e1910876f58c89054bb25">UpdateFont</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a909365307b2e7d0e20fb426425d4d955">Remove</a> (<a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *pObject)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">PangoContext *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#abfc530124436eeeb05689ab9b0f02ee2">GetPangoContext</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a40431bf8887775d53a025267c0b557de">GetFontHeight</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">gchar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a0be9a4a197580fd79ed33149dbcd7661">GetFontName</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">gchar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a886f738e38cd869fed968ded7f2ec490">GetSmallFontName</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">PangoFontDescription *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a472c02862144098350433be70472b83d">GetPangoFontDesc</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">PangoFontDescription *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#abce9cce2d8d83d987f75a8ddb9b189d6">GetPangoSmallFontDesc</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#ae2d10751e8b37401479e83d1e81b4e57">OnDeleteSelection</a> (GtkWidget *w)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#ac0509dc4ae1544189c141d5ef8e6dce5">OnCopySelection</a> (GtkWidget *w, GtkClipboard *clipboard)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a7fb34c2757328bf8990838af763ac149">OnPasteSelection</a> (GtkWidget *w, GtkClipboard *clipboard)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#ab39a4a2c87fd213705a029c369483dc1">OnCutSelection</a> (GtkWidget *w, GtkClipboard *clipboard)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a4a4fe09c47bf82b3360a8a53bc0b2ea3">OnKeyPress</a> (GtkWidget *w, GdkEventKey *event)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#ad54ddc03450f4cdcbcdf39077bfe05ac">OnKeyRelease</a> (GtkWidget *w, GdkEventKey *event)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a23162d4278f78326305c5fa3c1347b7a">OnSize</a> (GtkWidget *w, int width, int height)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a5cabf586f3f5896ec713bb62b623949b">UpdateSize</a> (double x1, double y1, double x2, double y2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#aff0379375a6a49858280df176452086a">SetGnomeCanvasPangoActive</a> (GnomeCanvasPango *item)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a3548f8db81394b51356689b4174c86ab">PrepareUnselect</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#ab0d8061373a42dc04a5a9a3519a3e440">OnReceive</a> (GtkClipboard *clipboard, GtkSelectionData *selection_data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a42fc5069073b4848310cfabb29567da0">OnSelectAll</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a50e5b0ab04bf7da88acd1322e3ae625c">IsEmbedded</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#ac089cd74c130af023dbdad7598807ae1">GetNbWidgets</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#ac4f2f471f4ccd2dda42e0c111f9fb47d">ExportImage</a> (std::string const &amp;filename, const char *type, int resolution=-1)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">xmlDocPtr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a604c4781bfaddd0a30fa4be417b8c9d0">BuildSVG</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdkPixbuf *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#ae37d1fd9f61a4084d8cc66d5d54530e1">BuildPixbuf</a> (int resolution)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#ad8ce75938717d14a11b2980467eb6c9f">EnsureSize</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a6c81bfc9fd868deff6bae8afcedfb01d">Zoom</a> (double zoom)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a6ee6887a03f452d2e088f309bb6ed211">ShowCursor</a> (bool show)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a304a00d9f2155863242940bfc47e7d17">UpdateTheme</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#af14bc2c9ee42f3771b0d403e09d46d39">Render</a> (cairo_t *cr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#a51aee8a575df8511ab1b1c41ba99ce5e">GetBaseLineOffset</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GnomeCanvasPango *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1View.html#abbc3aef8e3c2331d5bd855f30a8522a2">GetActiveRichText</a> (void)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The GChempaint document view. </p>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00047">47</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aaae23ce01e8f8439634263c65b7eac76"></a><!-- doxytag: member="gcp::View::View" ref="aaae23ce01e8f8439634263c65b7eac76" args="(Document *pDoc, bool Embedded)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcp::View::View </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1Document.html">Document</a> *&nbsp;</td>
          <td class="paramname"> <em>pDoc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>Embedded</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pDoc</em>&nbsp;</td><td>the GchemPaint document for the new view. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Embedded</em>&nbsp;</td><td>whether the document is embedded in another application or is standalone.</td></tr>
  </table>
  </dd>
</dl>
<p>Constructs the document view. </p>

</div>
</div>
<a class="anchor" id="afe0b092caa73069bd99a3a37f5b2496c"></a><!-- doxytag: member="gcp::View::~View" ref="afe0b092caa73069bd99a3a37f5b2496c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual gcp::View::~View </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a61cd10139f200a736593f086c4c10e06"></a><!-- doxytag: member="gcp::View::AddObject" ref="a61cd10139f200a736593f086c4c10e06" args="(gcu::Object const *pObject)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::AddObject </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a> const *&nbsp;</td>
          <td class="paramname"> <em>pObject</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pObject</em>&nbsp;</td><td>the object to add.</td></tr>
  </table>
  </dd>
</dl>
<p>Adds the object to the canvas. </p>

</div>
</div>
<a class="anchor" id="ae37d1fd9f61a4084d8cc66d5d54530e1"></a><!-- doxytag: member="gcp::View::BuildPixbuf" ref="ae37d1fd9f61a4084d8cc66d5d54530e1" args="(int resolution)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkPixbuf* gcp::View::BuildPixbuf </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>resolution</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>resolution</em>&nbsp;</td><td>the resolution for the new image.</td></tr>
  </table>
  </dd>
</dl>
<p>Builds a new image with the given resolution in ppi. The size is evaluated using the guessed screen resolution. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the new pixbuf. </dd></dl>

</div>
</div>
<a class="anchor" id="a604c4781bfaddd0a30fa4be417b8c9d0"></a><!-- doxytag: member="gcp::View::BuildSVG" ref="a604c4781bfaddd0a30fa4be417b8c9d0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">xmlDocPtr gcp::View::BuildSVG </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the xml document containig the svg output. </dd></dl>

</div>
</div>
<a class="anchor" id="a2deb8aa87d6f729779d039e30f0758f5"></a><!-- doxytag: member="gcp::View::CreateNewWidget" ref="a2deb8aa87d6f729779d039e30f0758f5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkWidget* gcp::View::CreateNewWidget </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates a new canvas widget for the view.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the new widget. </dd></dl>

</div>
</div>
<a class="anchor" id="ad8ce75938717d14a11b2980467eb6c9f"></a><!-- doxytag: member="gcp::View::EnsureSize" ref="ad8ce75938717d14a11b2980467eb6c9f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::EnsureSize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called by the framework to ensure that the view size is enough large to contain all objects. </p>

</div>
</div>
<a class="anchor" id="ac4f2f471f4ccd2dda42e0c111f9fb47d"></a><!-- doxytag: member="gcp::View::ExportImage" ref="ac4f2f471f4ccd2dda42e0c111f9fb47d" args="(std::string const &amp;filename, const char *type, int resolution=&#45;1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::ExportImage </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&nbsp;</td>
          <td class="paramname"> <em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>resolution</em> = <code>-1</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td>the file name to use for the export. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>a string representing the image type as used by the GdkPixbuf library. Other types supported are "svg", "ps", "pdf", and "eps". </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>resolution</em>&nbsp;</td><td>the image resolution to use for bitmaps.</td></tr>
  </table>
  </dd>
</dl>
<p>Exports the current document to an image. The <em>resolution</em> parameter is significative only for bitmap images; if it is not given, of if negative, 1 will be used which will result as a one to one pixel export. </p>

</div>
</div>
<a class="anchor" id="abbc3aef8e3c2331d5bd855f30a8522a2"></a><!-- doxytag: member="gcp::View::GetActiveRichText" ref="abbc3aef8e3c2331d5bd855f30a8522a2" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcp::View::GetActiveRichText </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the currently edited text item if any, or NULL. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00327">327</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="a91c2d9abc36f5f9da47fdc15140e756b"></a><!-- doxytag: member="gcp::View::GetBackground" ref="a91c2d9abc36f5f9da47fdc15140e756b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GnomeCanvasItem* gcp::View::GetBackground </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the canvas background. </dd></dl>

</div>
</div>
<a class="anchor" id="a51aee8a575df8511ab1b1c41ba99ce5e"></a><!-- doxytag: member="gcp::View::GetBaseLineOffset" ref="a51aee8a575df8511ab1b1c41ba99ce5e" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcp::View::GetBaseLineOffset </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the vertical offset for algnment of an atomic symbol. This value is half the height of the "C" character. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00323">323</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="a03a920824b0d26af5522c15e12c1a926"></a><!-- doxytag: member="gcp::View::GetCanvasItem" ref="a03a920824b0d26af5522c15e12c1a926" args="(GtkWidget *widget, gcu::Object *object)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GnomeCanvasItem* gcp::View::GetCanvasItem </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *&nbsp;</td>
          <td class="paramname"> <em>object</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>widget</em>&nbsp;</td><td>the canvas in which an item is searched. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>object</em>&nbsp;</td><td>the object represented by the item.</td></tr>
  </table>
  </dd>
</dl>
<p>Searches the item representing <em>object</em> in the canvas widget. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the found item if any, or NULL. </dd></dl>

</div>
</div>
<a class="anchor" id="a637eda33cfc3af52f101631741f79288"></a><!-- doxytag: member="gcp::View::GetDoc" ref="a637eda33cfc3af52f101631741f79288" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcp_1_1Document.html">Document</a>* gcp::View::GetDoc </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the document associated with the view. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00073">73</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="a40431bf8887775d53a025267c0b557de"></a><!-- doxytag: member="gcp::View::GetFontHeight" ref="a40431bf8887775d53a025267c0b557de" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double gcp::View::GetFontHeight </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the height of the font used to display atomic symbols. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00140">140</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0be9a4a197580fd79ed33149dbcd7661"></a><!-- doxytag: member="gcp::View::GetFontName" ref="a0be9a4a197580fd79ed33149dbcd7661" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar* gcp::View::GetFontName </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the name of the font used to display atomic symbols. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00144">144</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac089cd74c130af023dbdad7598807ae1"></a><!-- doxytag: member="gcp::View::GetNbWidgets" ref="ac089cd74c130af023dbdad7598807ae1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gcp::View::GetNbWidgets </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of existing canvases for this view. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00251">251</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="abfc530124436eeeb05689ab9b0f02ee2"></a><!-- doxytag: member="gcp::View::GetPangoContext" ref="abfc530124436eeeb05689ab9b0f02ee2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PangoContext* gcp::View::GetPangoContext </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the pango context associated to the view. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00136">136</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="a472c02862144098350433be70472b83d"></a><!-- doxytag: member="gcp::View::GetPangoFontDesc" ref="a472c02862144098350433be70472b83d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PangoFontDescription* gcp::View::GetPangoFontDesc </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the description of the font used to display atomic symbols. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00152">152</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="abce9cce2d8d83d987f75a8ddb9b189d6"></a><!-- doxytag: member="gcp::View::GetPangoSmallFontDesc" ref="abce9cce2d8d83d987f75a8ddb9b189d6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PangoFontDescription* gcp::View::GetPangoSmallFontDesc </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the description of the font used to display stoichiometry indices and charges. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00156">156</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="a886f738e38cd869fed968ded7f2ec490"></a><!-- doxytag: member="gcp::View::GetSmallFontName" ref="a886f738e38cd869fed968ded7f2ec490" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gchar* gcp::View::GetSmallFontName </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the name of the font used to display stoichiometry indices and charges. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00148">148</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="a703d205b2d4305aa725d6450dce9579c"></a><!-- doxytag: member="gcp::View::GetWidget" ref="a703d205b2d4305aa725d6450dce9579c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkWidget* gcp::View::GetWidget </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the canvas widget used for the view. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00069">69</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="a411739b183ccb77274c53390e5d68065"></a><!-- doxytag: member="gcp::View::GetZoomFactor" ref="a411739b183ccb77274c53390e5d68065" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double gcp::View::GetZoomFactor </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the current zoom factor. </dd></dl>

</div>
</div>
<a class="anchor" id="a50e5b0ab04bf7da88acd1322e3ae625c"></a><!-- doxytag: member="gcp::View::IsEmbedded" ref="a50e5b0ab04bf7da88acd1322e3ae625c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::View::IsEmbedded </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the view is embedded in another document view. </dd></dl>

<p>Definition at line <a class="el" href="gcp_2view_8h_source.html#l00247">247</a> of file <a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac0509dc4ae1544189c141d5ef8e6dce5"></a><!-- doxytag: member="gcp::View::OnCopySelection" ref="ac0509dc4ae1544189c141d5ef8e6dce5" args="(GtkWidget *w, GtkClipboard *clipboard)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::OnCopySelection </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkClipboard *&nbsp;</td>
          <td class="paramname"> <em>clipboard</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the active document widget. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>clipboard</em>&nbsp;</td><td>a GtkClipboard.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework to copy the selection. </p>

</div>
</div>
<a class="anchor" id="ab39a4a2c87fd213705a029c369483dc1"></a><!-- doxytag: member="gcp::View::OnCutSelection" ref="ab39a4a2c87fd213705a029c369483dc1" args="(GtkWidget *w, GtkClipboard *clipboard)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::OnCutSelection </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkClipboard *&nbsp;</td>
          <td class="paramname"> <em>clipboard</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the active document widget. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>clipboard</em>&nbsp;</td><td>a GtkClipboard.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework to copy and delete the selection. </p>

</div>
</div>
<a class="anchor" id="ae2d10751e8b37401479e83d1e81b4e57"></a><!-- doxytag: member="gcp::View::OnDeleteSelection" ref="ae2d10751e8b37401479e83d1e81b4e57" args="(GtkWidget *w)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::OnDeleteSelection </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the active document widget.</td></tr>
  </table>
  </dd>
</dl>
<p>Removes all objects in the widget. </p>

</div>
</div>
<a class="anchor" id="a51f10d985729b3852371c123482ad512"></a><!-- doxytag: member="gcp::View::OnDestroy" ref="a51f10d985729b3852371c123482ad512" args="(GtkWidget *widget)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::OnDestroy </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>widget</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>widget</em>&nbsp;</td><td>the destroyed widget.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework when a widget is destroyed. </p>

</div>
</div>
<a class="anchor" id="a50f5712323b8baae09441e8b43483d4f"></a><!-- doxytag: member="gcp::View::OnEvent" ref="a50f5712323b8baae09441e8b43483d4f" args="(GnomeCanvasItem *item, GdkEvent *event, GtkWidget *widget)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::View::OnEvent </td>
          <td>(</td>
          <td class="paramtype">GnomeCanvasItem *&nbsp;</td>
          <td class="paramname"> <em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkEvent *&nbsp;</td>
          <td class="paramname"> <em>event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>widget</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>item</em>&nbsp;</td><td>the canvas item at the positionof the event. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>event</em>&nbsp;</td><td>the GdkEvent. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>widget</em>&nbsp;</td><td>the canvas widget.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework when an event occured in the canvas. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>false if the event should be processed further, true otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a4a4fe09c47bf82b3360a8a53bc0b2ea3"></a><!-- doxytag: member="gcp::View::OnKeyPress" ref="a4a4fe09c47bf82b3360a8a53bc0b2ea3" args="(GtkWidget *w, GdkEventKey *event)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::View::OnKeyPress </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkEventKey *&nbsp;</td>
          <td class="paramname"> <em>event</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the widget which received the event. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>event</em>&nbsp;</td><td>the current event.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework when a key has been pressed on the keyboard. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the key was significant, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="ad54ddc03450f4cdcbcdf39077bfe05ac"></a><!-- doxytag: member="gcp::View::OnKeyRelease" ref="ad54ddc03450f4cdcbcdf39077bfe05ac" args="(GtkWidget *w, GdkEventKey *event)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::View::OnKeyRelease </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GdkEventKey *&nbsp;</td>
          <td class="paramname"> <em>event</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the widget which received the event. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>event</em>&nbsp;</td><td>the current event.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework when a key has been released on the keyboard. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the key was significant, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a7fb34c2757328bf8990838af763ac149"></a><!-- doxytag: member="gcp::View::OnPasteSelection" ref="a7fb34c2757328bf8990838af763ac149" args="(GtkWidget *w, GtkClipboard *clipboard)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::OnPasteSelection </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkClipboard *&nbsp;</td>
          <td class="paramname"> <em>clipboard</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the active document widget. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>clipboard</em>&nbsp;</td><td>a GtkClipboard.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework to paste clipboard contents. </p>

</div>
</div>
<a class="anchor" id="ab0d8061373a42dc04a5a9a3519a3e440"></a><!-- doxytag: member="gcp::View::OnReceive" ref="ab0d8061373a42dc04a5a9a3519a3e440" args="(GtkClipboard *clipboard, GtkSelectionData *selection_data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::OnReceive </td>
          <td>(</td>
          <td class="paramtype">GtkClipboard *&nbsp;</td>
          <td class="paramname"> <em>clipboard</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GtkSelectionData *&nbsp;</td>
          <td class="paramname"> <em>selection_data</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>clipboard</em>&nbsp;</td><td>the clipboard used. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>selection_data</em>&nbsp;</td><td>the data to paste.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework to effectively paste data in the document. </p>

</div>
</div>
<a class="anchor" id="a42fc5069073b4848310cfabb29567da0"></a><!-- doxytag: member="gcp::View::OnSelectAll" ref="a42fc5069073b4848310cfabb29567da0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::OnSelectAll </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called by the framework to select everything in the document. </p>

</div>
</div>
<a class="anchor" id="a23162d4278f78326305c5fa3c1347b7a"></a><!-- doxytag: member="gcp::View::OnSize" ref="a23162d4278f78326305c5fa3c1347b7a" args="(GtkWidget *w, int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::View::OnSize </td>
          <td>(</td>
          <td class="paramtype">GtkWidget *&nbsp;</td>
          <td class="paramname"> <em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>height</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>the widget which received the event. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>the ne widget width. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>the new widget height.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework when the widget size changed. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true (always). </dd></dl>

</div>
</div>
<a class="anchor" id="a3548f8db81394b51356689b4174c86ab"></a><!-- doxytag: member="gcp::View::PrepareUnselect" ref="a3548f8db81394b51356689b4174c86ab" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcp::View::PrepareUnselect </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called by the framework when the active window changes to stop current edition and inhibit timer events.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the change is possible, false to abort it. </dd></dl>

</div>
</div>
<a class="anchor" id="a909365307b2e7d0e20fb426425d4d955"></a><!-- doxytag: member="gcp::View::Remove" ref="a909365307b2e7d0e20fb426425d4d955" args="(gcu::Object *pObject)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::Remove </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a> *&nbsp;</td>
          <td class="paramname"> <em>pObject</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pObject</em>&nbsp;</td><td>the object to remove.</td></tr>
  </table>
  </dd>
</dl>
<p>Removes the object from the view and destroys the items representing it. </p>

</div>
</div>
<a class="anchor" id="af14bc2c9ee42f3771b0d403e09d46d39"></a><!-- doxytag: member="gcp::View::Render" ref="af14bc2c9ee42f3771b0d403e09d46d39" args="(cairo_t *cr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::Render </td>
          <td>(</td>
          <td class="paramtype">cairo_t *&nbsp;</td>
          <td class="paramname"> <em>cr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cr</em>&nbsp;</td><td>the cairo_t to which render.</td></tr>
  </table>
  </dd>
</dl>
<p>Renders the document using cairo. </p>

</div>
</div>
<a class="anchor" id="aff0379375a6a49858280df176452086a"></a><!-- doxytag: member="gcp::View::SetGnomeCanvasPangoActive" ref="aff0379375a6a49858280df176452086a" args="(GnomeCanvasPango *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::SetGnomeCanvasPangoActive </td>
          <td>(</td>
          <td class="paramtype">GnomeCanvasPango *&nbsp;</td>
          <td class="paramname"> <em>item</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>item</em>&nbsp;</td><td>a text item or NULL.</td></tr>
  </table>
  </dd>
</dl>
<p>Sets the currently edited text item. <em>item</em> should be NULL to tell the view that no text edition is currently taking place. </p>

</div>
</div>
<a class="anchor" id="a6ee6887a03f452d2e088f309bb6ed211"></a><!-- doxytag: member="gcp::View::ShowCursor" ref="a6ee6887a03f452d2e088f309bb6ed211" args="(bool show)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::ShowCursor </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>show</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>show</em>&nbsp;</td><td>whether to show the cursor or not.</td></tr>
  </table>
  </dd>
</dl>
<p>Shows or hides the cursor in the currently edited text item if any. </p>

</div>
</div>
<a class="anchor" id="a3e79a612db2ced2d5c432f43064c6cbd"></a><!-- doxytag: member="gcp::View::Update" ref="a3e79a612db2ced2d5c432f43064c6cbd" args="(gcu::Object const *pObject)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::Update </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcu_1_1Object.html">gcu::Object</a> const *&nbsp;</td>
          <td class="paramname"> <em>pObject</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pObject</em>&nbsp;</td><td>the object to update.</td></tr>
  </table>
  </dd>
</dl>
<p>Updates the object in the canvas. </p>

</div>
</div>
<a class="anchor" id="a63cb9463817e1910876f58c89054bb25"></a><!-- doxytag: member="gcp::View::UpdateFont" ref="a63cb9463817e1910876f58c89054bb25" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::UpdateFont </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates fonts descriptions after a theme change. </p>

</div>
</div>
<a class="anchor" id="a5cabf586f3f5896ec713bb62b623949b"></a><!-- doxytag: member="gcp::View::UpdateSize" ref="a5cabf586f3f5896ec713bb62b623949b" args="(double x1, double y1, double x2, double y2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::UpdateSize </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x1</em>&nbsp;</td><td>the left coordinate of the bounding rectangle of the used canvas area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y1</em>&nbsp;</td><td>the top coordinate of the bounding rectangle of the used canvas area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>x2</em>&nbsp;</td><td>the right coordinate of the bounding rectangle of the used canvas area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y2</em>&nbsp;</td><td>the bottom coordinate of the bounding rectangle of the used canvas area.</td></tr>
  </table>
  </dd>
</dl>
<p>Ensures the canvas is large enough to display everything and, if x1 or y1 is negative moves all the items so that they are visible. </p>

</div>
</div>
<a class="anchor" id="a304a00d9f2155863242940bfc47e7d17"></a><!-- doxytag: member="gcp::View::UpdateTheme" ref="a304a00d9f2155863242940bfc47e7d17" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::UpdateTheme </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called by the framework to update the default font size after a theme change. </p>

</div>
</div>
<a class="anchor" id="a6c81bfc9fd868deff6bae8afcedfb01d"></a><!-- doxytag: member="gcp::View::Zoom" ref="a6c81bfc9fd868deff6bae8afcedfb01d" args="(double zoom)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::View::Zoom </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoom</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>zoom</em>&nbsp;</td><td>the new zoom level.</td></tr>
  </table>
  </dd>
</dl>
<p>Sets the zoom level. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="gcp_2view_8h_source.html">gcp/view.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:54 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>