MIDITimeTableRowRepresentable
public protocol MIDITimeTableRowRepresentable
Optional protocol for app-owned row models that group time table cells.
This is only a convenience contract. MIDITimeTableViewDataSource still asks for row/cell
counts and geometry explicitly so apps remain free to use any backing model shape.
-
Undocumented
Declaration
Swift
associatedtype Cell : MIDITimeTableCellRepresentable -
Cells displayed in this row.
Declaration
Swift
var cells: [Cell] { get set } -
cellCountExtension methodNumber of cells in the row.
Declaration
Swift
var cellCount: Int { get } -
cell(at:Extension method) Cell at the row-local array index.
Declaration
Swift
func cell(at index: Int) -> Cell -
cellID(at:Extension method) Stable id for the cell at the row-local array index.
Declaration
Swift
func cellID(at index: Int) -> MIDITimeTableCellID -
cellPosition(at:Extension method) Position, in beats, for the cell at the row-local array index.
Declaration
Swift
func cellPosition(at index: Int) -> Double -
cellDuration(at:Extension method) Duration, in beats, for the cell at the row-local array index.
Declaration
Swift
func cellDuration(at index: Int) -> Double