2003-02-12 01:58:24 +00:00
<Type Name= "Timeout" FullName= "GLib.Timeout" >
2003-02-15 03:08:25 +00:00
<TypeSignature Language= "C#" Value= "public class Timeout" Maintainer= "auto" />
2003-02-12 01:58:24 +00:00
<AssemblyInfo >
<AssemblyName > glib-sharp</AssemblyName>
2003-12-04 21:09:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 01:58:24 +00:00
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2009-01-06 16:29:49 +00:00
<Base >
<BaseTypeName > System.Object</BaseTypeName>
</Base>
<Interfaces />
2003-02-12 01:58:24 +00:00
<Docs >
2006-03-12 00:17:25 +00:00
<summary > Allows the installation of Timeout Handlers on the GLib main loop.
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.
The diferance between GLib.Timeout and System.Windows.Forms.Timer is that Timeouts are always invoked on the thread that owns the Gtk mainloop
2007-03-15 15:27:03 +00:00
</summary>
<remarks >
<para > Use the <see cref= "M:GLib.Timeout.Add" /> method to install timeout handlers into the mainloop.</para>
<example >
<code lang= "C#" >
2006-03-12 00:17:25 +00:00
void StartClock ()
{
GLib.Timeout.Add(1000, new GLib.TimeoutHandler(update_status));
}
bool update_status ()
{
time_label.Text=DateTime.Now.ToString ();
//returning true means that the timeout routine should be invoked
//again after the timeout period expires. Returning false would
//terminate the timeout.
return true;
}
2007-03-15 15:27:03 +00:00
</code>
</example>
</remarks>
2003-02-12 01:58:24 +00:00
</Docs>
<Members >
<Member MemberName= "Add" >
<MemberSignature Language= "C#" Value= "public static uint Add (uint interval, GLib.TimeoutHandler hndlr);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Parameters >
2003-08-30 02:35:39 +00:00
<Parameter Name= "interval" Type= "System.UInt32" />
<Parameter Name= "hndlr" Type= "GLib.TimeoutHandler" />
</Parameters>
2003-02-12 01:58:24 +00:00
<Docs >
2004-06-24 19:35:28 +00:00
<param name= "interval" > the interval in milliseconds between invocations of <paramref name= "hndlr" /> .</param>
<param name= "hndlr" > a delegate of type <see cref= "T:GLib.TimeoutHandler" /> to invoke every <paramref name= "interval" /> .</param>
2009-01-06 16:29:49 +00:00
<summary > Adds a <see cref= "T:GLib.TimeoutHandler" /> delegate to the mainloop. </summary>
2004-06-24 19:35:28 +00:00
<returns > an id representing the event source of the installed timeout handler.</returns>
<remarks >
<para >
The delegate is invoked after the time period specified by <paramref name= "interval" /> . The delegate is invoked repeatedly until it returns <see langword= "false" /> .
</para>
<para >
Invocation of the delegate may be delayed by other event processing, so this mechanism cannot be depended on for accurate timing. The interval to the next timeout is calculated at completion of the preceding timeout. There is no attempt made to "catch up" if an invocation is delayed.
</para>
</remarks>
2003-02-12 01:58:24 +00:00
</Docs>
</Member>
2009-05-14 18:32:22 +00:00
<Member MemberName= "Add" >
<MemberSignature Language= "C#" Value= "public static uint Add (uint interval, GLib.TimeoutHandler hndlr, GLib.Priority priority);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "interval" Type= "System.UInt32" />
<Parameter Name= "hndlr" Type= "GLib.TimeoutHandler" />
<Parameter Name= "priority" Type= "GLib.Priority" />
</Parameters>
<Docs >
<param name= "interval" > To be added.</param>
<param name= "hndlr" > To be added.</param>
<param name= "priority" > To be added.</param>
<summary > To be added.</summary>
<returns > To be added.</returns>
<remarks > To be added.</remarks>
<since version= "Gtk# 2.14" />
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "AddSeconds" >
<MemberSignature Language= "C#" Value= "public static uint AddSeconds (uint interval, GLib.TimeoutHandler hndlr);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "interval" Type= "System.UInt32" />
<Parameter Name= "hndlr" Type= "GLib.TimeoutHandler" />
</Parameters>
<Docs >
<param name= "interval" > interval in seconds.</param>
<param name= "hndlr" > callback.</param>
<summary > Installs a timeout handler for an interval given in seconds.</summary>
<returns > the source id.</returns>
<remarks />
<since version= "Gtk# 2.14" />
</Docs>
</Member>
2009-05-14 18:32:22 +00:00
<Member MemberName= "Remove" >
<MemberSignature Language= "C#" Value= "public static bool Remove (GLib.TimeoutHandler hndlr);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "hndlr" Type= "GLib.TimeoutHandler" />
</Parameters>
<Docs >
<param name= "hndlr" > To be added.</param>
<summary > To be added.</summary>
<returns > To be added.</returns>
<remarks > To be added.</remarks>
<since version= "Gtk# 2.14" />
</Docs>
</Member>
<Member MemberName= "Remove" >
<MemberSignature Language= "C#" Value= "public static void Remove (uint id);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "id" Type= "System.UInt32" />
</Parameters>
<Docs >
<param name= "id" > To be added.</param>
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 2.14" />
</Docs>
</Member>
2003-02-12 01:58:24 +00:00
</Members>
2007-04-17 18:26:16 +00:00
</Type>