parent
e2b1f2b6b1
commit
67e0177c0b
1 changed files with 9 additions and 6 deletions
|
@ -12,9 +12,11 @@
|
||||||
It's in a way very similar to a System.Windows.Forms.Timer class.
|
It's in a way very similar to a System.Windows.Forms.Timer class.
|
||||||
You can use timeouts to invoke routines at specified intervals of time.
|
You can use timeouts to invoke routines at specified intervals of time.
|
||||||
The diferance between GLib.Timeout and System.Windows.Forms.Timer is that Timeouts are always invoked on the thread that owns the Gtk mainloop
|
The diferance between GLib.Timeout and System.Windows.Forms.Timer is that Timeouts are always invoked on the thread that owns the Gtk mainloop
|
||||||
|
</summary>
|
||||||
|
<remarks>
|
||||||
<example><code lang="C#">
|
<para>Use the <see cref="M:GLib.Timeout.Add" /> method to install timeout handlers into the mainloop.</para>
|
||||||
|
<example>
|
||||||
|
<code lang="C#">
|
||||||
void StartClock ()
|
void StartClock ()
|
||||||
{
|
{
|
||||||
GLib.Timeout.Add(1000, new GLib.TimeoutHandler(update_status));
|
GLib.Timeout.Add(1000, new GLib.TimeoutHandler(update_status));
|
||||||
|
@ -28,8 +30,9 @@ The diferance between GLib.Timeout and System.Windows.Forms.Timer is that Timeou
|
||||||
//terminate the timeout.
|
//terminate the timeout.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
</code></example></summary>
|
</code>
|
||||||
<remarks>Use the <see cref="M:GLib.Timeout.Add" /> method to install timeout handlers into the mainloop.</remarks>
|
</example>
|
||||||
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
<Base>
|
<Base>
|
||||||
<BaseTypeName>System.Object</BaseTypeName>
|
<BaseTypeName>System.Object</BaseTypeName>
|
||||||
|
@ -62,4 +65,4 @@ Invocation of the delegate may be delayed by other event processing, so this mec
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
</Members>
|
</Members>
|
||||||
</Type>
|
</Type>
|
Loading…
Add table
Reference in a new issue