Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 36a4a1ce4320fd74059ccc32828cc5d4 > files > 454

gtkmm3.0-doc-3.14.0-2.mga5.noarch.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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>gtkmm: Gtk::Main Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">gtkmm
   &#160;<span id="projectnumber">3.14.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a></li><li class="navelem"><a class="el" href="classGtk_1_1Main.html">Main</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-static-attribs">Static Protected Attributes</a> &#124;
<a href="classGtk_1_1Main-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Gtk::Main Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classGtk_1_1Main.html" title="Main application class. ">Main</a> application class.  
 <a href="classGtk_1_1Main.html#details">More...</a></p>

<p><code>#include &lt;gtkmm/main.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Gtk::Main:</div>
<div class="dyncontent">
<div class="center"><img src="classGtk_1_1Main__inherit__graph.png" border="0" usemap="#Gtk_1_1Main_inherit__map" alt="Inheritance graph"/></div>
<map name="Gtk_1_1Main_inherit__map" id="Gtk_1_1Main_inherit__map">
<area shape="rect" id="node2" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="5,5,120,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afbc89daf89de698660ce02426967e135"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#afbc89daf89de698660ce02426967e135">Main</a> (int&amp; argc, char**&amp; argv, <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a>&amp; option_context)</td></tr>
<tr class="memdesc:afbc89daf89de698660ce02426967e135"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scans the argument vector, and strips off all parameters parsed by GTK+ or your <em>option_context</em>.  <a href="#afbc89daf89de698660ce02426967e135">More...</a><br /></td></tr>
<tr class="separator:afbc89daf89de698660ce02426967e135"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae02744d26abd4abfe106ed31f05ad2dc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#ae02744d26abd4abfe106ed31f05ad2dc">Main</a> (int* argc, char*** argv, bool set_locale=true)</td></tr>
<tr class="memdesc:ae02744d26abd4abfe106ed31f05ad2dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scans the argument vector, and strips off all parameters known to GTK+.  <a href="#ae02744d26abd4abfe106ed31f05ad2dc">More...</a><br /></td></tr>
<tr class="separator:ae02744d26abd4abfe106ed31f05ad2dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b7340ad84fe8d66bb7489c635e8fd5e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a2b7340ad84fe8d66bb7489c635e8fd5e">Main</a> (int&amp; argc, char**&amp; argv, bool set_locale=true)</td></tr>
<tr class="memdesc:a2b7340ad84fe8d66bb7489c635e8fd5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scans the argument vector, and strips off all parameters known to GTK+.  <a href="#a2b7340ad84fe8d66bb7489c635e8fd5e">More...</a><br /></td></tr>
<tr class="separator:a2b7340ad84fe8d66bb7489c635e8fd5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b1d4e4b1c450faa3a15ef397dec4175"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a2b1d4e4b1c450faa3a15ef397dec4175">Main</a> (bool set_locale=true)</td></tr>
<tr class="memdesc:a2b1d4e4b1c450faa3a15ef397dec4175"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization without command-line arguments.  <a href="#a2b1d4e4b1c450faa3a15ef397dec4175">More...</a><br /></td></tr>
<tr class="separator:a2b1d4e4b1c450faa3a15ef397dec4175"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a485eeb37361615a021ca21fb2a6f257c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a485eeb37361615a021ca21fb2a6f257c">~Main</a> ()</td></tr>
<tr class="separator:a485eeb37361615a021ca21fb2a6f257c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a94b74eb618f4b0d213c79c2ada927446"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGtk_1_1Main.html">Gtk::Main</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a94b74eb618f4b0d213c79c2ada927446">instance</a> ()</td></tr>
<tr class="memdesc:a94b74eb618f4b0d213c79c2ada927446"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the one global instance of <a class="el" href="classGtk_1_1Main.html" title="Main application class. ">Gtk::Main</a>.  <a href="#a94b74eb618f4b0d213c79c2ada927446">More...</a><br /></td></tr>
<tr class="separator:a94b74eb618f4b0d213c79c2ada927446"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a8904c35952006d13cb07c1d0c16c10"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a6a8904c35952006d13cb07c1d0c16c10">run</a> ()</td></tr>
<tr class="memdesc:a6a8904c35952006d13cb07c1d0c16c10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the event loop.  <a href="#a6a8904c35952006d13cb07c1d0c16c10">More...</a><br /></td></tr>
<tr class="separator:a6a8904c35952006d13cb07c1d0c16c10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa2e4e282834cbe2d789fe34c447a0dd"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#aaa2e4e282834cbe2d789fe34c447a0dd">run</a> (<a class="el" href="classGtk_1_1Window.html">Window</a>&amp; window)</td></tr>
<tr class="memdesc:aaa2e4e282834cbe2d789fe34c447a0dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns from the main loop when the window is closed.  <a href="#aaa2e4e282834cbe2d789fe34c447a0dd">More...</a><br /></td></tr>
<tr class="separator:aaa2e4e282834cbe2d789fe34c447a0dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8719a8ac37ff6bb66048ca8967dbd782"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a8719a8ac37ff6bb66048ca8967dbd782">quit</a> ()</td></tr>
<tr class="memdesc:a8719a8ac37ff6bb66048ca8967dbd782"><td class="mdescLeft">&#160;</td><td class="mdescRight">Makes the innermost invocation of the main loop return when it regains control.  <a href="#a8719a8ac37ff6bb66048ca8967dbd782">More...</a><br /></td></tr>
<tr class="separator:a8719a8ac37ff6bb66048ca8967dbd782"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78f66b89dbe811cdce075a8b00c8987a"><td class="memItemLeft" align="right" valign="top">static guint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a78f66b89dbe811cdce075a8b00c8987a">level</a> ()</td></tr>
<tr class="separator:a78f66b89dbe811cdce075a8b00c8987a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16e384f8b3a02af8d3e86f59053b218e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a16e384f8b3a02af8d3e86f59053b218e">add_gtk_option_group</a> (<a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a>&amp; option_context, bool open_default_display=true)</td></tr>
<tr class="memdesc:a16e384f8b3a02af8d3e86f59053b218e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionGroup.html">Glib::OptionGroup</a>, for the commandline arguments recognized by GTK+ and GDK, to a <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a>, so that these commandline arguments will be processed in addition to the existing commandline arguments specified by the <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a>.  <a href="#a16e384f8b3a02af8d3e86f59053b218e">More...</a><br /></td></tr>
<tr class="separator:a16e384f8b3a02af8d3e86f59053b218e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9ba7993ef8a22b6bf8796a2e4862e68"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#ab9ba7993ef8a22b6bf8796a2e4862e68">iteration</a> (bool blocking=true)</td></tr>
<tr class="memdesc:ab9ba7993ef8a22b6bf8796a2e4862e68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Runs a single iteration of the main loop.  <a href="#ab9ba7993ef8a22b6bf8796a2e4862e68">More...</a><br /></td></tr>
<tr class="separator:ab9ba7993ef8a22b6bf8796a2e4862e68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a2a6cddef82f8c52026790f3f7887e0"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a2a2a6cddef82f8c52026790f3f7887e0">events_pending</a> ()</td></tr>
<tr class="memdesc:a2a2a6cddef82f8c52026790f3f7887e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if any events are pending.  <a href="#a2a2a6cddef82f8c52026790f3f7887e0">More...</a><br /></td></tr>
<tr class="separator:a2a2a6cddef82f8c52026790f3f7887e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4c316c0789dfb4ab7926e062196c4e5"><td class="memItemLeft" align="right" valign="top">static KeySnooperSig&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#ab4c316c0789dfb4ab7926e062196c4e5">signal_key_snooper</a> ()</td></tr>
<tr class="memdesc:ab4c316c0789dfb4ab7926e062196c4e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">KeySnooper signal Allows you to channel keypresses to a signal handler without registering with the widget.  <a href="#ab4c316c0789dfb4ab7926e062196c4e5">More...</a><br /></td></tr>
<tr class="separator:ab4c316c0789dfb4ab7926e062196c4e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab3b3f72ad21e91e4c644ee5131d4058"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#aab3b3f72ad21e91e4c644ee5131d4058">init_gtkmm_internals</a> ()</td></tr>
<tr class="memdesc:aab3b3f72ad21e91e4c644ee5131d4058"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the table of wrap_new functions.  <a href="#aab3b3f72ad21e91e4c644ee5131d4058">More...</a><br /></td></tr>
<tr class="separator:aab3b3f72ad21e91e4c644ee5131d4058"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a6f855eae235b700e2242fb68252dcea5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a6f855eae235b700e2242fb68252dcea5">init</a> (int* argc, char*** argv, bool set_locale)</td></tr>
<tr class="separator:a6f855eae235b700e2242fb68252dcea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2642c570bde971015f97b97cce743f80"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a2642c570bde971015f97b97cce743f80">run_impl</a> ()</td></tr>
<tr class="separator:a2642c570bde971015f97b97cce743f80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a785e09dce370a1c5260885ced9efb4a6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a785e09dce370a1c5260885ced9efb4a6">quit_impl</a> ()</td></tr>
<tr class="separator:a785e09dce370a1c5260885ced9efb4a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad90e366d331016ce5ff68023f214d8b"><td class="memItemLeft" align="right" valign="top">virtual guint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#aad90e366d331016ce5ff68023f214d8b">level_impl</a> ()</td></tr>
<tr class="separator:aad90e366d331016ce5ff68023f214d8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a681a82f7118d71188e64ba9379bb33e7"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a681a82f7118d71188e64ba9379bb33e7">iteration_impl</a> (bool blocking)</td></tr>
<tr class="separator:a681a82f7118d71188e64ba9379bb33e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a8ca03d685b708e9dc38e3ddaa0875a"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a4a8ca03d685b708e9dc38e3ddaa0875a">events_pending_impl</a> ()</td></tr>
<tr class="separator:a4a8ca03d685b708e9dc38e3ddaa0875a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c3bb918c54342b71e9e56d999b4dd4e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a7c3bb918c54342b71e9e56d999b4dd4e">on_window_hide</a> ()</td></tr>
<tr class="separator:a7c3bb918c54342b71e9e56d999b4dd4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-attribs"></a>
Static Protected Attributes</h2></td></tr>
<tr class="memitem:a97582880bbb0ac12e957861a7ed165a3"><td class="memItemLeft" align="right" valign="top">static KeySnooperSig&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Main.html#a97582880bbb0ac12e957861a7ed165a3">signal_key_snooper_</a></td></tr>
<tr class="separator:a97582880bbb0ac12e957861a7ed165a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classGtk_1_1Main.html" title="Main application class. ">Main</a> application class. </p>
<p>Every application must have one of these objects. It may not be global and must be the first gtkmm object created. It is a singleton so declaring more than one will simply access the first created.</p>
<p>You would normally use this class in your main() function to initialize gtkmm and optionally to give argc and argv to the GTK+ initialization. After calling <a class="el" href="classGtk_1_1Main.html#a6a8904c35952006d13cb07c1d0c16c10" title="Start the event loop. ">Gtk::Main::run()</a>, you may use <a class="el" href="classGtk_1_1Main.html#a8719a8ac37ff6bb66048ca8967dbd782" title="Makes the innermost invocation of the main loop return when it regains control. ">Gtk::Main::quit()</a> to exit from the application, or just pass your main window to <a class="el" href="classGtk_1_1Main.html#a6a8904c35952006d13cb07c1d0c16c10" title="Start the event loop. ">run()</a>, to make <a class="el" href="classGtk_1_1Main.html#a6a8904c35952006d13cb07c1d0c16c10" title="Start the event loop. ">run()</a> return when that window closes.</p>
<p>A minimal gtkmm application would be something like this: </p><div class="fragment"><div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line">  <a class="code" href="classGtk_1_1Main.html">Gtk::Main</a> kit(argc, argv);</div>
<div class="line">  ... create some widgets and windows...</div>
<div class="line">  kit.run(window);</div>
<div class="line">}</div>
</div><!-- fragment --><dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000120">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afbc89daf89de698660ce02426967e135"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::Main::Main </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&amp;&#160;</td>
          <td class="paramname"><em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a> &amp;&#160;</td>
          <td class="paramname"><em>option_context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Scans the argument vector, and strips off all parameters parsed by GTK+ or your <em>option_context</em>. </p>
<p>Add a <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionGroup.html">Glib::OptionGroup</a> to the <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a> to parse your own command-line arguments.</p>
<p>Note: The argument strings themself won't be modified, although the pointers to them might change. This makes it possible to create your own argv of string literals, which have the type 'const char[]' in standard C++. (You might need to use const_cast&lt;&gt;, though.)</p>
<p>This function automatically generates nicely formatted <code>&#8211;help</code> output. Note that your program will be terminated after writing out the help output.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">argc</td><td>a reference to the number of command line arguments. </td></tr>
    <tr><td class="paramname">argv</td><td>a reference to the array of command line arguments. </td></tr>
    <tr><td class="paramname">option_context</td><td>A <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a> containing Glib::OptionGroups which described the command-line arguments taken by your program.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionError.html">Glib::OptionError</a></td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000121">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="ae02744d26abd4abfe106ed31f05ad2dc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::Main::Main </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char ***&#160;</td>
          <td class="paramname"><em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>set_locale</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Scans the argument vector, and strips off all parameters known to GTK+. </p>
<p>Your application may then handle the remaining arguments.</p>
<p>Note: The argument strings themself won't be modified, although the pointers to them might change. This makes it possible to create your own argv of string literals, which have the type 'const char[]' in standard C++. (You might need to use const_cast&lt;&gt;, though.)</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">argc</td><td>a pointer to the number of command line arguments. </td></tr>
    <tr><td class="paramname">argv</td><td>a pointer to the array of command line arguments. </td></tr>
    <tr><td class="paramname">set_locale</td><td>Passing false prevents GTK+ from automatically calling setlocale(LC_ALL, ""). You would want to pass false if you wanted to set the locale for your program to something other than the user's locale, or if you wanted to set different values for different locale categories.</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000122">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a2b7340ad84fe8d66bb7489c635e8fd5e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::Main::Main </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&amp;&#160;</td>
          <td class="paramname"><em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>set_locale</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Scans the argument vector, and strips off all parameters known to GTK+. </p>
<p>Your application may then handle the remaining arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">argc</td><td>a reference to the number of command line arguments. </td></tr>
    <tr><td class="paramname">argv</td><td>a reference to the array of command line arguments. </td></tr>
    <tr><td class="paramname">set_locale</td><td>Passing false prevents GTK+ from automatically calling setlocale(LC_ALL, ""). You would want to pass false if you wanted to set the locale for your program to something other than the user's locale, or if you wanted to set different values for different locale categories.</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000123">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a2b1d4e4b1c450faa3a15ef397dec4175"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::Main::Main </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>set_locale</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initialization without command-line arguments. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">set_locale</td><td>Passing false prevents GTK+ from automatically calling setlocale(LC_ALL, ""). You would want to pass false if you wanted to set the locale for your program to something other than the user's locale, or if you wanted to set different values for different locale categories.</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000124">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a485eeb37361615a021ca21fb2a6f257c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gtk::Main::~Main </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000125">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a16e384f8b3a02af8d3e86f59053b218e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Gtk::Main::add_gtk_option_group </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a> &amp;&#160;</td>
          <td class="paramname"><em>option_context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>open_default_display</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add a <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionGroup.html">Glib::OptionGroup</a>, for the commandline arguments recognized by GTK+ and GDK, to a <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a>, so that these commandline arguments will be processed in addition to the existing commandline arguments specified by the <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a>. </p>
<p>You do not need to use this method if you pass your <a class="elRef" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1OptionContext.html">Glib::OptionContext</a> to the <a class="el" href="classGtk_1_1Main.html" title="Main application class. ">Main</a> constructor, because it adds the gtk option group automatically.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">option_context</td><td>Option Context to which the group will be added. </td></tr>
    <tr><td class="paramname">open_default_display</td><td>Whether to open the default display when parsing the commandline arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000131">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a2a2a6cddef82f8c52026790f3f7887e0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Gtk::Main::events_pending </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Checks if any events are pending. </p>
<p>This can be used to update the GUI and invoke timeouts etc. while doing some time intensive computation.</p>
<p>Example: Updating the GUI during a long computation. </p><div class="fragment"><div class="line"><span class="comment">// computation going on</span></div>
<div class="line"><span class="keywordflow">while</span>( <a class="code" href="classGtk_1_1Main.html#a2a2a6cddef82f8c52026790f3f7887e0">Gtk::Main::events_pending</a>() )</div>
<div class="line">  <a class="code" href="classGtk_1_1Main.html#ab9ba7993ef8a22b6bf8796a2e4862e68">Gtk::Main::iteration</a>();</div>
<div class="line"></div>
<div class="line"><span class="comment">// computation continued</span></div>
</div><!-- fragment --><dl class="section return"><dt>Returns</dt><dd>true if any events are pending, false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a4a8ca03d685b708e9dc38e3ddaa0875a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool Gtk::Main::events_pending_impl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a6f855eae235b700e2242fb68252dcea5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::Main::init </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char ***&#160;</td>
          <td class="paramname"><em>argv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>set_locale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aab3b3f72ad21e91e4c644ee5131d4058"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Gtk::Main::init_gtkmm_internals </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initialize the table of wrap_new functions. </p>
<p>This doesn't need an instance of <a class="el" href="classGtk_1_1Main.html" title="Main application class. ">Gtk::Main</a>. This would usually only be used by the <a class="el" href="classGtk_1_1Main.html#a6f855eae235b700e2242fb68252dcea5">init()</a> methods of libraries that depend on gtkmm. </p>

</div>
</div>
<a class="anchor" id="a94b74eb618f4b0d213c79c2ada927446"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGtk_1_1Main.html">Gtk::Main</a>* Gtk::Main::instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to the one global instance of <a class="el" href="classGtk_1_1Main.html" title="Main application class. ">Gtk::Main</a>. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000126">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="ab9ba7993ef8a22b6bf8796a2e4862e68"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Gtk::Main::iteration </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>blocking</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Runs a single iteration of the main loop. </p>
<p>If no events are waiting to be processed GTK+ will block until the next event is noticed. If you don't want to block then pass false for <em>blocking</em> or check if any events are pending with pending() first.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">blocking</td><td>Whether the caller must wait until the next event is noticed, or return immediately if there are no events. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if <a class="el" href="classGtk_1_1Main.html#a8719a8ac37ff6bb66048ca8967dbd782" title="Makes the innermost invocation of the main loop return when it regains control. ">quit()</a> has been called for the innermost main loop. </dd></dl>

</div>
</div>
<a class="anchor" id="a681a82f7118d71188e64ba9379bb33e7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool Gtk::Main::iteration_impl </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>blocking</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a78f66b89dbe811cdce075a8b00c8987a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static guint Gtk::Main::level </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000130">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="aad90e366d331016ce5ff68023f214d8b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual guint Gtk::Main::level_impl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7c3bb918c54342b71e9e56d999b4dd4e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gtk::Main::on_window_hide </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a8719a8ac37ff6bb66048ca8967dbd782"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Gtk::Main::quit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Makes the innermost invocation of the main loop return when it regains control. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000129">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a785e09dce370a1c5260885ced9efb4a6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gtk::Main::quit_impl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a6a8904c35952006d13cb07c1d0c16c10"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Gtk::Main::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Start the event loop. </p>
<p>This begins the event loop which handles events. No events propagate until this has been called. It may be called recursively to popup dialogs</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000127">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="aaa2e4e282834cbe2d789fe34c447a0dd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Gtk::Main::run </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1Window.html">Window</a>&amp;&#160;</td>
          <td class="paramname"><em>window</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns from the main loop when the window is closed. </p>
<p>When using this override, you should not use <a class="el" href="classGtk_1_1Main.html#a8719a8ac37ff6bb66048ca8967dbd782" title="Makes the innermost invocation of the main loop return when it regains control. ">Gtk::Main::quit()</a> to close the application, but just call <a class="elRef" href="http://library.gnome.org/devel/libsigc++/unstable/group__hide.html#gaf2cefea3a99acd44f68121424103172d">hide()</a> on your <a class="el" href="classGtk_1_1Window.html" title="Toplevel Window This represents all widgets which are physical windows controlled by the window manag...">Window</a> class.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">window</td><td>The window to show. This method will return when the window is hidden.</td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000128">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1Application.html" title="The Gtk::Application class handles many important aspects of a GTK+ application in a convenient fashi...">Gtk::Application</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a2642c570bde971015f97b97cce743f80"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gtk::Main::run_impl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab4c316c0789dfb4ab7926e062196c4e5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static KeySnooperSig&amp; Gtk::Main::signal_key_snooper </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>KeySnooper signal Allows you to channel keypresses to a signal handler without registering with the widget. </p>
<dl class="section return"><dt>Returns</dt><dd>KeySnooperSig A Signal to which you can connect a sigc::slot&lt; int, Widget *, GdkEventKey * &gt;</dd></dl>
<p>It is the responsibility of the snooper to pass the keypress to the widget, however, care must be taken that the keypress is not passed twice.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000132">Deprecated:</a></b></dt><dd>Key snooping should not be done. Events should be handled by widgets. </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a97582880bbb0ac12e957861a7ed165a3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">KeySnooperSig Gtk::Main::signal_key_snooper_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Sep 23 2014 12:59:23 for gtkmm by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>