Show / Hide Table of Contents

Class Fade

Fades out one IScreenSurface while fading in another.

Inheritance
object
UpdateComponent
InstructionBase
Fade
Implements
IComponent
Inherited Members
InstructionBase.Reset()
InstructionBase.Repeat()
InstructionBase.OnFinished(IScreenObject)
InstructionBase.OnRepeating()
InstructionBase.OnStarted()
InstructionBase.RemoveOnFinished
InstructionBase.IsFinished
InstructionBase.RepeatCount
InstructionBase.Started
InstructionBase.Finished
InstructionBase.Repeating
UpdateComponent.OnAdded(IScreenObject)
UpdateComponent.OnRemoved(IScreenObject)
UpdateComponent.SortOrder
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Transitions
Assembly: SadConsole.Extended.dll
Syntax
public class Fade : InstructionBase, IComponent

Constructors

Fade(IScreenSurface, IScreenSurface, TimeSpan, EasingBase?)

Declaration
public Fade(IScreenSurface from, IScreenSurface to, TimeSpan duration, EasingBase? easingFunction = null)
Parameters
Type Name Description
IScreenSurface from
IScreenSurface to
TimeSpan duration
EasingBase easingFunction

Properties

DeparentFromObject

When true, removes the "From" object from the parent when the transition finishes. Supersedes HideFromObject.

Declaration
public bool DeparentFromObject { get; set; }
Property Value
Type Description
bool

HideFromObject

When true, sets IsVisible to false on the "From" object when the transition finishes.

Declaration
public bool HideFromObject { get; set; }
Property Value
Type Description
bool

RepositionToObject

When true, sets the position of the "To" object to match the "From" object when the transition finishes.

Declaration
public bool RepositionToObject { get; set; }
Property Value
Type Description
bool

Methods

Update(IScreenObject, TimeSpan)

Processes the fade between two objects.

Declaration
public override void Update(IScreenObject componentHost, TimeSpan delta)
Parameters
Type Name Description
IScreenObject componentHost

The host running the component.

TimeSpan delta

The time difference for the frame.

Overrides
InstructionBase.Update(IScreenObject, TimeSpan)

Implements

IComponent

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX