Table of Contents

Class SmoothAcceleratingTimeout

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Timeout which accelerates slowly at first then fast up to a maximum speed. Use AdvanceStage() to increment the stage of the timer (e.g. in your timer callback code).

public class SmoothAcceleratingTimeout : Timeout
Inheritance
SmoothAcceleratingTimeout
Inherited Members

Constructors

SmoothAcceleratingTimeout(TimeSpan, TimeSpan, double, Func<bool>)

Creates a new instance of the smooth acceleration timeout.

Properties

Span

Gets or sets the time interval to wait before invoking the Callback.

Methods

AdvanceStage()

Advances the timer stage, this should be called from your timer callback or whenever you want to advance the speed.

Reset()

Resets the timer to original speed.