Table of Contents

Class StateTransitionResult

Namespace
FlowGraph.Avalonia.Input
Assembly
FlowGraph.Avalonia.dll

Represents the result of a state transition.

public record StateTransitionResult : IEquatable<StateTransitionResult>
Inheritance
StateTransitionResult
Implements
Inherited Members

Constructors

StateTransitionResult(IInputState?, bool)

Represents the result of a state transition.

public StateTransitionResult(IInputState? NewState, bool Handled)

Parameters

NewState IInputState
Handled bool

Properties

Handled

public bool Handled { get; init; }

Property Value

bool

NewState

public IInputState? NewState { get; init; }

Property Value

IInputState

Methods

Stay(bool)

public static StateTransitionResult Stay(bool handled = true)

Parameters

handled bool

Returns

StateTransitionResult

TransitionTo(IInputState)

public static StateTransitionResult TransitionTo(IInputState newState)

Parameters

newState IInputState

Returns

StateTransitionResult

Unhandled()

public static StateTransitionResult Unhandled()

Returns

StateTransitionResult