mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
21 lines
620 B
C#
21 lines
620 B
C#
#nullable enable
|
|
|
|
namespace Terminal.Gui.Drivers;
|
|
|
|
/// <summary>
|
|
/// Interface for classes responsible for reporting the current
|
|
/// size of the terminal window.
|
|
/// </summary>
|
|
public interface ISizeMonitor
|
|
{
|
|
/// <summary>Invoked when the terminal's size changed. The new size of the terminal is provided.</summary>
|
|
event EventHandler<SizeChangedEventArgs>? SizeChanged;
|
|
|
|
/// <summary>
|
|
/// Examines the current size of the terminal and raises <see cref="SizeChanged"/> if it is different
|
|
/// from last inspection.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
bool Poll ();
|
|
}
|