<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>The Main Event Loop</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- Generated by Doxygen 1.3-rc1 --> <h1>The Main Event Loop</h1>Manages all available sources of events. <a href="#_details">More...</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Compounds</h2></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1IdleSource.html">IdleSource</a></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1IOSource.html">IOSource</a></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1MainContext.html">MainContext</a></td></tr> <tr><td> </td><td><font size=-1><em>Main context.</em> <a href="classGlib_1_1MainContext.html#_details">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1MainLoop.html">MainLoop</a></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1PollFD.html">PollFD</a></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1SignalIdle.html">SignalIdle</a></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1SignalIO.html">SignalIO</a></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1SignalTimeout.html">SignalTimeout</a></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1Source.html">Source</a></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGlib_1_1TimeoutSource.html">TimeoutSource</a></td></tr> <tr><td colspan=2><br><h2>Enumerations</h2></td></tr> <tr><td nowrap align=right valign=top>enum </td><td valign=bottom>{ <br> <a class="el" href="group__MainLoop.html#a10a24">PRIORITY_HIGH</a> = -100, <br> <a class="el" href="group__MainLoop.html#a10a25">PRIORITY_DEFAULT</a> = 0, <br> <a class="el" href="group__MainLoop.html#a10a26">PRIORITY_HIGH_IDLE</a> = 100, <br> <a class="el" href="group__MainLoop.html#a10a27">PRIORITY_DEFAULT_IDLE</a> = 200, <br> <a class="el" href="group__MainLoop.html#a10a28">PRIORITY_LOW</a> = 300 <br> }</td></tr> <tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="group__MainLoop.html#a11">IOCondition</a> { <br> <a class="el" href="group__MainLoop.html#a11a29">IO_IN</a>, <br> <a class="el" href="group__MainLoop.html#a11a30">IO_OUT</a>, <br> <a class="el" href="group__MainLoop.html#a11a31">IO_PRI</a>, <br> <a class="el" href="group__MainLoop.html#a11a32">IO_ERR</a>, <br> <a class="el" href="group__MainLoop.html#a11a33">IO_HUP</a>, <br> <a class="el" href="group__MainLoop.html#a11a34">IO_NVAL</a> <br> }</td></tr> <tr><td> </td><td><font size=-1><em>A bitwise combination representing an I/O condition to watch for on an event source.</em> <a href="#a11">More...</a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Functions</h2></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td><td valign=bottom><a class="el" href="group__MainLoop.html#a0">operator|</a> (<a class="el" href="group__MainLoop.html#a11">IOCondition</a> lhs, <a class="el" href="group__MainLoop.html#a11">IOCondition</a> rhs)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td><td valign=bottom><a class="el" href="group__MainLoop.html#a1">operator&</a> (<a class="el" href="group__MainLoop.html#a11">IOCondition</a> lhs, <a class="el" href="group__MainLoop.html#a11">IOCondition</a> rhs)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td><td valign=bottom><a class="el" href="group__MainLoop.html#a2">operator^</a> (<a class="el" href="group__MainLoop.html#a11">IOCondition</a> lhs, <a class="el" href="group__MainLoop.html#a11">IOCondition</a> rhs)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td><td valign=bottom><a class="el" href="group__MainLoop.html#a3">operator~</a> (<a class="el" href="group__MainLoop.html#a11">IOCondition</a> flags)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__MainLoop.html#a11">IOCondition</a>& </td><td valign=bottom><a class="el" href="group__MainLoop.html#a4">operator|=</a> (<a class="el" href="group__MainLoop.html#a11">IOCondition</a>& lhs, <a class="el" href="group__MainLoop.html#a11">IOCondition</a> rhs)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__MainLoop.html#a11">IOCondition</a>& </td><td valign=bottom><a class="el" href="group__MainLoop.html#a5">operator&=</a> (<a class="el" href="group__MainLoop.html#a11">IOCondition</a>& lhs, <a class="el" href="group__MainLoop.html#a11">IOCondition</a> rhs)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__MainLoop.html#a11">IOCondition</a>& </td><td valign=bottom><a class="el" href="group__MainLoop.html#a6">operator^=</a> (<a class="el" href="group__MainLoop.html#a11">IOCondition</a>& lhs, <a class="el" href="group__MainLoop.html#a11">IOCondition</a> rhs)</td></tr> <tr><td nowrap align=right valign=top>SignalTimeout </td><td valign=bottom><a class="el" href="group__MainLoop.html#a7">signal_timeout</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Convenience timeout signal.</em> <a href="#a7"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>SignalIdle </td><td valign=bottom><a class="el" href="group__MainLoop.html#a8">signal_idle</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Convenience idle signal.</em> <a href="#a8"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>SignalIO </td><td valign=bottom><a class="el" href="group__MainLoop.html#a9">signal_io</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Convenience I/O signal.</em> <a href="#a9"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><MainContext> </td><td valign=bottom><a class="el" href="group__MainLoop.html#a12">wrap</a> (GMainContext* gobject, bool take_copy=false)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><MainLoop> </td><td valign=bottom><a class="el" href="group__MainLoop.html#a13">wrap</a> (GMainLoop* gobject, bool take_copy=false)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Manages all available sources of events. <p> <hr><h2>Enumeration Type Documentation</h2> <a name="a10" doxytag="Glib::@0"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> anonymous enum </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <dl compact><dt><b>Enumeration values: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em><a name="a10a24" doxytag="PRIORITY_HIGH"></a><em>PRIORITY_HIGH</em></em> </td><td> Use this for high priority event sources. It is not used within GLib or GTK+.<br> <br> </td></tr> <tr><td valign=top><em><a name="a10a25" doxytag="PRIORITY_DEFAULT"></a><em>PRIORITY_DEFAULT</em></em> </td><td> Use this for default priority event sources. In glibmm this priority is used by default when installing timeout handlers with <a class="el" href="classGlib_1_1SignalTimeout.html#a0">SignalTimeout::connect()</a>. In GDK this priority is used for events from the X server.<br> <br> </td></tr> <tr><td valign=top><em><a name="a10a26" doxytag="PRIORITY_HIGH_IDLE"></a><em>PRIORITY_HIGH_IDLE</em></em> </td><td> Use this for high priority idle functions. GTK+ uses <code>PRIORITY_HIGH_IDLE + 10</code> for resizing operations, and <code>PRIORITY_HIGH_IDLE + 20</code> for redrawing operations. (This is done to ensure that any pending resizes are processed before any pending redraws, so that widgets are not redrawn twice unnecessarily.) <br> <br> </td></tr> <tr><td valign=top><em><a name="a10a27" doxytag="PRIORITY_DEFAULT_IDLE"></a><em>PRIORITY_DEFAULT_IDLE</em></em> </td><td> Use this for default priority idle functions. In glibmm this priority is used by default when installing idle handlers with <a class="el" href="classGlib_1_1SignalIdle.html#a0">SignalIdle::connect()</a>. <br> <br> </td></tr> <tr><td valign=top><em><a name="a10a28" doxytag="PRIORITY_LOW"></a><em>PRIORITY_LOW</em></em> </td><td> Use this for very low priority background tasks. It is not used within GLib or GTK+. </td></tr> </table> </dl> </td> </tr> </table> <a name="a11" doxytag="Glib::IOCondition"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> enum Glib::IOCondition </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> A bitwise combination representing an I/O condition to watch for on an event source. <p> The flags correspond to those used by the <code>poll()</code> system call on UNIX (see <code>man 2 poll</code>). To test for individual flags, do something like this: <div class="fragment"><pre> <span class="keywordflow">if</span>((condition & Glib::IO_OUT) != 0) do_some_output(); </pre></div><dl compact><dt><b>Bitwise operators:</b></dt><dd><code>IOCondition <a class="el" href="group__MainLoop.html#a0">operator|(IOCondition, IOCondition)</a></code><br> <code>IOCondition <a class="el" href="group__MainLoop.html#a1">operator&(IOCondition, IOCondition)</a></code><br> <code>IOCondition <a class="el" href="group__MainLoop.html#a2">operator^(IOCondition, IOCondition)</a></code><br> <code>IOCondition <a class="el" href="group__MainLoop.html#a3">operator~(IOCondition)</a></code><br> <code>IOCondition& <a class="el" href="group__MainLoop.html#a4">operator|=(IOCondition&, IOCondition)</a></code><br> <code>IOCondition& <a class="el" href="group__MainLoop.html#a5">operator&=(IOCondition&, IOCondition)</a></code><br> <code>IOCondition& <a class="el" href="group__MainLoop.html#a6">operator^=(IOCondition&, IOCondition)</a></code><br> </dd></dl> <dl compact><dt><b>Enumeration values: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em><a name="a11a29" doxytag="IO_IN"></a><em>IO_IN</em></em> </td><td> There is data to read. </td></tr> <tr><td valign=top><em><a name="a11a30" doxytag="IO_OUT"></a><em>IO_OUT</em></em> </td><td> Data can be written (without blocking). </td></tr> <tr><td valign=top><em><a name="a11a31" doxytag="IO_PRI"></a><em>IO_PRI</em></em> </td><td> There is urgent data to read. </td></tr> <tr><td valign=top><em><a name="a11a32" doxytag="IO_ERR"></a><em>IO_ERR</em></em> </td><td> Error condition. </td></tr> <tr><td valign=top><em><a name="a11a33" doxytag="IO_HUP"></a><em>IO_HUP</em></em> </td><td> Hung up (the connection has been broken, usually for pipes and sockets). </td></tr> <tr><td valign=top><em><a name="a11a34" doxytag="IO_NVAL"></a><em>IO_NVAL</em></em> </td><td> Invalid request. The file descriptor is not open. </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Function Documentation</h2> <a name="a1" doxytag="Glib::operator &"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__MainLoop.html#a11">IOCondition</a> operator& </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname" nowrap> <em>lhs</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname" nowrap> <em>rhs</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a5" doxytag="Glib::operator &="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__MainLoop.html#a11">IOCondition</a>& operator&= </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__MainLoop.html#a11">IOCondition</a>& </td> <td class="mdname" nowrap> <em>lhs</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname" nowrap> <em>rhs</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a2" doxytag="Glib::operator^"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__MainLoop.html#a11">IOCondition</a> operator^ </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname" nowrap> <em>lhs</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname" nowrap> <em>rhs</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a6" doxytag="Glib::operator^="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__MainLoop.html#a11">IOCondition</a>& operator^= </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__MainLoop.html#a11">IOCondition</a>& </td> <td class="mdname" nowrap> <em>lhs</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname" nowrap> <em>rhs</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a0" doxytag="Glib::operator|"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__MainLoop.html#a11">IOCondition</a> operator| </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname" nowrap> <em>lhs</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname" nowrap> <em>rhs</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a4" doxytag="Glib::operator|="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__MainLoop.html#a11">IOCondition</a>& operator|= </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__MainLoop.html#a11">IOCondition</a>& </td> <td class="mdname" nowrap> <em>lhs</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname" nowrap> <em>rhs</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a3" doxytag="Glib::operator~"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__MainLoop.html#a11">IOCondition</a> operator~ </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__MainLoop.html#a11">IOCondition</a> </td> <td class="mdname1" valign="top" nowrap> <em>flags</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a8" doxytag="Glib::signal_idle"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1SignalIdle.html">SignalIdle</a> signal_idle </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Convenience idle signal. <p> <dl compact><dt><b>Returns:</b></dt><dd>A signal proxy; you want to use <a class="el" href="classGlib_1_1SignalIdle.html#a0">SignalIdle::connect()</a>. </dd></dl> <dl compact><dt><b>Examples: </b></dt><dd> <a class="el" href="thread_2dispatcher_8cc-example.html#a15">thread/dispatcher.cc</a>.</dl> </td> </tr> </table> <a name="a9" doxytag="Glib::signal_io"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1SignalIO.html">SignalIO</a> signal_io </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Convenience I/O signal. <p> <dl compact><dt><b>Returns:</b></dt><dd>A signal proxy; you want to use <a class="el" href="classGlib_1_1SignalIO.html#a0">SignalIO::connect()</a>. </dd></dl> </td> </tr> </table> <a name="a7" doxytag="Glib::signal_timeout"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1SignalTimeout.html">SignalTimeout</a> signal_timeout </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Convenience timeout signal. <p> <dl compact><dt><b>Returns:</b></dt><dd>A signal proxy; you want to use <a class="el" href="classGlib_1_1SignalTimeout.html#a0">SignalTimeout::connect()</a>. </dd></dl> </td> </tr> </table> <a name="a13" doxytag="Glib::MainLoop::wrap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><MainLoop> wrap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GMainLoop* </td> <td class="mdname" nowrap> <em>gobject</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>take_copy</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a12" doxytag="Glib::MainContext::wrap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><MainContext> wrap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GMainContext* </td> <td class="mdname" nowrap> <em>gobject</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>take_copy</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><address><small> Generated for gtkmm by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.3-rc1 © 1997-2001</small></address> </body> </html>