SyllableLayout

data class SyllableLayout(val syllable: ERROR CLASS: Symbol not found for KaraokeSyllable, val layoutResult: NativeLayoutResult, val wordId: Int, val useAwesomeAnimation: Boolean, val width: Float = layoutResult.total_width, val position: ERROR CLASS: Symbol not found for Offset = Offset.Zero, val wordPivot: ERROR CLASS: Symbol not found for Offset = Offset.Zero, val wordAnimInfo: WordAnimationInfo? = null, val charOffsetInWord: Int = 0, val charLayouts: List<NativeLayoutResult>? = null, val charOriginalBounds: List<ERROR CLASS: Symbol not found for Rect>? = null, val firstBaseline: Float = layoutResult.firstBaseline, val floatEndingTime: Long = 0)

Represents the layout information for a single karaoke syllable. This includes the text layout from the native engine, as well as animation metadata.

Parameters

syllable

The original karaoke syllable data.

layoutResult

The native text layout result for this syllable.

wordId

ID grouping syllables into words (for word-level wrapping).

useAwesomeAnimation

Whether this syllable uses complex per-character animations (bounce, swell).

width

Total width of the syllable.

position

Layout position relative to the line/row.

wordPivot

Pivot point for word-level transformations.

wordAnimInfo

Metadata for word-level animations.

charOffsetInWord

Constant offset of this syllable's characters within the word.

charLayouts

Individual character layouts (for complex animations).

charOriginalBounds

Bounds of individual characters relative to the syllable.

firstBaseline

Baseline offset from the top.

floatEndingTime

Calculated time when the "float" animation should settle.

Constructors

Link copied to clipboard
constructor(syllable: ERROR CLASS: Symbol not found for KaraokeSyllable, layoutResult: NativeLayoutResult, wordId: Int, useAwesomeAnimation: Boolean, width: Float = layoutResult.total_width, position: ERROR CLASS: Symbol not found for Offset = Offset.Zero, wordPivot: ERROR CLASS: Symbol not found for Offset = Offset.Zero, wordAnimInfo: WordAnimationInfo? = null, charOffsetInWord: Int = 0, charLayouts: List<NativeLayoutResult>? = null, charOriginalBounds: List<ERROR CLASS: Symbol not found for Rect>? = null, firstBaseline: Float = layoutResult.firstBaseline, floatEndingTime: Long = 0)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val charOriginalBounds: List<ERROR CLASS: Symbol not found for Rect>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val position: ERROR CLASS: Symbol not found for Offset
Link copied to clipboard
val syllable: ERROR CLASS: Symbol not found for KaraokeSyllable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val wordId: Int
Link copied to clipboard
val wordPivot: ERROR CLASS: Symbol not found for Offset