Console upgrades, PossibleCommands VM
This commit is contained in:
18
src/Library/TerminalUI/Models/RenderContext.cs
Normal file
18
src/Library/TerminalUI/Models/RenderContext.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using TerminalUI.ConsoleDrivers;
|
||||
|
||||
namespace TerminalUI.Models;
|
||||
|
||||
public readonly ref struct RenderContext
|
||||
{
|
||||
private static int _renderId = 0;
|
||||
public readonly int RenderId;
|
||||
public readonly IConsoleDriver ConsoleDriver;
|
||||
|
||||
public RenderContext(IConsoleDriver consoleDriver)
|
||||
{
|
||||
ConsoleDriver = consoleDriver;
|
||||
RenderId = _renderId++;
|
||||
}
|
||||
|
||||
public static RenderContext Empty => new(null!);
|
||||
}
|
||||
Reference in New Issue
Block a user