mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 09:47:58 +01:00
31 lines
803 B
C#
31 lines
803 B
C#
using System;
|
|
using Terminal.Gui;
|
|
using static Terminal.Gui.MainLoop;
|
|
|
|
/// <summary>
|
|
/// <see cref="EventArgs"/> for timeout events (e.g. <see cref="MainLoop.TimeoutAdded"/>)
|
|
/// </summary>
|
|
public class TimeoutEventArgs : EventArgs {
|
|
/// <summary>
|
|
/// Gets the timeout callback handler
|
|
/// </summary>
|
|
public Timeout Timeout { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the <see cref="DateTime.Ticks"/> in UTC time when the
|
|
/// <see cref="Timeout"/> will next execute after.
|
|
/// </summary>
|
|
public long Ticks { get; }
|
|
|
|
|
|
/// <summary>
|
|
/// Creates a new instance of the <see cref="TimeoutEventArgs"/> class.
|
|
/// </summary>
|
|
/// <param name="timeout"></param>
|
|
/// <param name="ticks"></param>
|
|
public TimeoutEventArgs (Timeout timeout, long ticks)
|
|
{
|
|
this.Timeout = timeout;
|
|
this.Ticks = ticks;
|
|
}
|
|
} |