C# Class osu.Game.Rulesets.Karaoke.Edit.Lyrics.CaretPosition.Algorithms.TypingCaretPositionAlgorithm

Inheritance: CaretPositionAlgorithm
Mostra file Open project: karaoke-dev/karaoke

Public Methods

Method Description
MoveDown ( currentPosition ) : TextCaretPosition
MoveLeft ( currentPosition ) : TextCaretPosition
MoveRight ( currentPosition ) : TextCaretPosition
MoveToFirst ( ) : TextCaretPosition
MoveToLast ( ) : TextCaretPosition
MoveToTarget ( Lyric lyric ) : TextCaretPosition
MoveUp ( currentPosition ) : TextCaretPosition
PositionMovable ( position ) : bool
TypingCaretPositionAlgorithm ( Array lyrics ) : System

Protected Methods

Method Description
GetMaxIndex ( string text ) : int
GetMinIndex ( string text ) : int

Private Methods

Method Description
indexInTextRange ( int index, Lyric lyric ) : bool
lyricMovable ( Lyric lyric ) : bool

Method Details

GetMaxIndex() protected method

protected GetMaxIndex ( string text ) : int
text string
return int

GetMinIndex() protected method

protected GetMinIndex ( string text ) : int
text string
return int

MoveDown() public method

public MoveDown ( currentPosition ) : TextCaretPosition
return TextCaretPosition

MoveLeft() public method

public MoveLeft ( currentPosition ) : TextCaretPosition
return TextCaretPosition

MoveRight() public method

public MoveRight ( currentPosition ) : TextCaretPosition
return TextCaretPosition

MoveToFirst() public method

public MoveToFirst ( ) : TextCaretPosition
return TextCaretPosition

MoveToLast() public method

public MoveToLast ( ) : TextCaretPosition
return TextCaretPosition

MoveToTarget() public method

public MoveToTarget ( Lyric lyric ) : TextCaretPosition
lyric Lyric
return TextCaretPosition

MoveUp() public method

public MoveUp ( currentPosition ) : TextCaretPosition
return TextCaretPosition

PositionMovable() public method

public PositionMovable ( position ) : bool
return bool

TypingCaretPositionAlgorithm() public method

public TypingCaretPositionAlgorithm ( Array lyrics ) : System
lyrics Array
return System