mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
21 lines
739 B
C#
21 lines
739 B
C#
namespace Terminal.Gui;
|
|
|
|
/// <summary><see cref="EventArgs"/> for timeout events (e.g. <see cref="MainLoop.TimeoutAdded"/>)</summary>
|
|
internal class TimeoutEventArgs : EventArgs
|
|
{
|
|
/// <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)
|
|
{
|
|
Timeout = timeout;
|
|
Ticks = ticks;
|
|
}
|
|
|
|
/// <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>Gets the timeout callback handler</summary>
|
|
public Timeout Timeout { get; }
|
|
}
|