Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > e0521f28751d07a87e3a3d6c7d15a1ac > files > 821

libgtkmm2.0_1-devel-2.2.1-2mdk.ppc.rpm

<!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>Glib::SignalTimeout class Reference</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> &nbsp;
  <a href="group__Widgets.html">Widgets</a> &nbsp;
  <a class="qindex" href="namespaces.html"> Namespaces</a> &nbsp;
  <a href="../../tutorial/html/index.html"> Book</a> &nbsp;
</center>
<hr width="100%"/>

<!-- Generated by Doxygen 1.3-rc1 -->
<h1>Glib::SignalTimeout Class Reference<br>
<small>
[<a class="el" href="group__MainLoop.html">The Main Event Loop</a>]</small>
</h1><a href="classGlib_1_1SignalTimeout-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>SigC::Connection&nbsp;</td><td valign=bottom><a class="el" href="classGlib_1_1SignalTimeout.html#a0">connect</a> (const SigC::Slot0&lt;bool&gt;&amp; slot, unsigned int interval, int priority=PRIORITY_DEFAULT)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Connects a timeout handler.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a0" doxytag="Glib::SignalTimeout::connect"></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"> SigC::Connection Glib::SignalTimeout::connect </td>
          <td class="md" valign="top">(</td>
          <td class="md" nowrap valign="top">const SigC::Slot0&lt;bool&gt;&amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>slot</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>interval</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>priority</em> = PRIORITY_DEFAULT</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Connects a timeout handler.
<p>
<div class="fragment"><pre>
 <a class="code" href="group__MainLoop.html#a7">Glib::signal_timeout</a>().connect(SigC::slot(&amp;timeout_handler), 1000);
 
</pre></div>is equivalent to: <div class="fragment"><pre>
 <span class="keyword">const</span> <a class="code" href="classGlib_1_1RefPtr.html">Glib::RefPtr&lt;Glib::TimeoutSource&gt;</a> timeout_source = <a class="code" href="classGlib_1_1Source.html#d0">Glib::TimeoutSource::create</a>(1000);
 timeout_source-&gt;connect(SigC::slot(&amp;timeout_handler));
 timeout_source-&gt;attach(<a class="code" href="classGlib_1_1MainContext.html#d1">Glib::MainContext::get_default</a>());
 
</pre></div><dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>slot</em>&nbsp;</td><td>A slot to call when <em>interval</em> elapsed. </td></tr>
    <tr><td valign=top><em>interval</em>&nbsp;</td><td>The timeout in milliseconds. </td></tr>
    <tr><td valign=top><em>priority</em>&nbsp;</td><td>The priority of the new event source. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A connection handle, which can be used to disconnect the handler. </dd></dl>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="glib_2glibmm_2main_8h.html">glib/glibmm/main.h</a></ul>
<hr><address><small>
Generated for gtkmm by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.3-rc1 &copy;&nbsp;1997-2001</small></address>
</body>
</html>