Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 22e237efd6851989a23adf3360bb53d0 > files > 1053

gtkmm2.4-doc-2.20.3-1mdv2010.1.x86_64.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>gtkmm: gtkmm Reference Manual</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 class="current"><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="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>gtkmm Reference Manual</h1><h3>2.20.3 </h3><h2><a class="anchor" id="description">
description</a></h2>
<p>gtkmm is the official C++ interface for the popular GUI library GTK+. Highlights include typesafe callbacks, and a comprehensive set of widgets that are easily extensible via inheritance.</p>
<p>For instance, see <a class="el" href="group__Widgets.html">Widgets</a>, <a class="el" href="group__Dialogs.html">Dialogs</a>, <a class="el" href="group__TreeView.html">TreeView</a> and <a class="el" href="group__TextView.html">TextView</a>.</p>
<p>See also the <a href="http://library.gnome.org/devel/gtkmm-tutorial/stable/">Programming with gtkmm</a> book.</p>
<h2><a class="anchor" id="features">
features</a></h2>
<ul>
<li>GTK+’s mature, capable set of widgets Widgets. See <a href="http://www.gtk.org/">the GTK+ website</a> for more information.</li>
<li>Use inheritance to derive custom widgets.</li>
<li>Type-safe signal handlers (slots), in standard C++, using <a href="http://libsigc.sourceforge.net/">libsigc++</a>.</li>
<li>Polymorphism.</li>
<li>Use of the Standard C++ Library, including strings, containers and iterators.</li>
<li>Full internationalisation with UTF8.</li>
<li>Complete C++ memory management.<ul>
<li>Member instances or dynamic new and delete.</li>
<li>Optional automatic deletion of child widgets.</li>
<li>No manual reference-counting.</li>
</ul>
</li>
<li>Full use of C++ namespaces.</li>
<li>No macros.</li>
</ul>
<h2><a class="anchor" id="basics">
basics</a></h2>
<p>Include the gtkmm header: </p>
<div class="fragment"><pre class="fragment"><span class="preprocessor"> #include &lt;gtkmm.h&gt;</span>
</pre></div><p> (You may include individual headers, such as <code>gtkmm/button.h</code> instead.)</p>
<p>If your source file is <code>program.cc</code>, you can compile it with: </p>
<div class="fragment"><pre class="fragment"> g++ program.cc -o program `pkg-config --cflags --libs gtkmm-2.4`
</pre></div><p>Alternatively, if using autoconf, use the following in <code>configure.ac:</code> </p>
<div class="fragment"><pre class="fragment"> PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4])
</pre></div><p> Then use the generated <code>GTKMM_CFLAGS</code> and <code>GTKMM_LIBS</code> variables in the project <code>Makefile.am</code> files. For example: </p>
<div class="fragment"><pre class="fragment"> program_CPPFLAGS = $(GTKMM_CFLAGS)
 program_LDADD = $(GTKMM_LIBS)
</pre></div> </div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:35 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>