mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 01:07:58 +01:00
* Adds basic MainLoop unit tests
* Remove WinChange action from Curses
* Remove WinChange action from Curses
* Remove ProcessInput action from Windows MainLoop
* Simplified MainLoop/ConsoleDriver by making MainLoop internal and moving impt fns to Application
* Modernized Terminal resize events
* Modernized Terminal resize events
* Removed un used property
* for _isWindowsTerminal devenv->wininit; not sure what changed
* Modernized mouse/keyboard events (Action->EventHandler)
* Updated OnMouseEvent API docs
* Using WT_SESSION to detect WT
* removes hacky GetParentProcess
* Updates to fix #2634 (clear last line)
* removes hacky GetParentProcess2
* Addressed mac resize issue
* Addressed mac resize issue
* Removes ConsoleDriver.PrepareToRun, has Init return MainLoop
* Removes unneeded Attribute methods
* Removed GetProcesssName
* Removed GetProcesssName
* Refactored KeyEvent and KeyEventEventArgs into a single class
* Revert "Refactored KeyEvent and KeyEventEventArgs into a single class"
This reverts commit 88a00658db.
* Fixed key repeat issue; reverted stupidity on 1049/1047 confusion
* Updated CSI API Docs
* merge
32 lines
826 B
C#
32 lines
826 B
C#
using System;
|
|
using static Terminal.Gui.MainLoop;
|
|
|
|
namespace Terminal.Gui {
|
|
/// <summary>
|
|
/// <see cref="EventArgs"/> for timeout events (e.g. <see cref="MainLoop.TimeoutAdded"/>)
|
|
/// </summary>
|
|
internal 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)
|
|
{
|
|
Timeout = timeout;
|
|
Ticks = ticks;
|
|
}
|
|
}
|
|
}
|