mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 21:38:16 +08:00
21 lines
498 B
C#
21 lines
498 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Spectre.Console.Rendering;
|
|
|
|
namespace Spectre.Console;
|
|
|
|
internal abstract class ProgressRenderer : IRenderHook
|
|
{
|
|
public abstract TimeSpan RefreshRate { get; }
|
|
|
|
public virtual void Started()
|
|
{
|
|
}
|
|
|
|
public virtual void Completed(bool clear)
|
|
{
|
|
}
|
|
|
|
public abstract void Update(ProgressContext context);
|
|
public abstract IEnumerable<IRenderable> Process(RenderContext context, IEnumerable<IRenderable> renderables);
|
|
} |