mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* updatd ConsoleDriverFacade.CreateClipboard to honor FakeDriver.FakeBehaviors.UseFakeClipboard * Code cleanup of fake driver v2
21 lines
546 B
C#
21 lines
546 B
C#
#nullable enable
|
|
using System.Drawing;
|
|
|
|
namespace Terminal.Gui.Drivers;
|
|
|
|
#pragma warning disable CS1591
|
|
public class FakeSizeMonitor : IWindowSizeMonitor
|
|
{
|
|
/// <inheritdoc/>
|
|
public event EventHandler<SizeChangedEventArgs>? SizeChanging;
|
|
|
|
/// <inheritdoc/>
|
|
public bool Poll () { return false; }
|
|
|
|
/// <summary>
|
|
/// Raises the <see cref="SizeChanging"/> event.
|
|
/// </summary>
|
|
/// <param name="newSize"></param>
|
|
public void RaiseSizeChanging (Size newSize) { SizeChanging?.Invoke (this, new (newSize)); }
|
|
}
|