MIDITimeTableViewDataSource
public protocol MIDITimeTableViewDataSource : AnyObject
Populates the MIDITimeTableView with row/cell data and rendered views.
-
Number of rows in the time table.
Declaration
Swift
func numberOfRows(in midiTimeTableView: MIDITimeTableView) -> IntParameters
midiTimeTableViewTime table to populate rows.
Return Value
Number of rows populate.
-
Time signature of the time table.
Declaration
Swift
func timeSignature(of midiTimeTableView: MIDITimeTableView) -> MIDITimeTableTimeSignatureParameters
midiTimeTableViewTime table to set time signature.
Return Value
Time signature of the time table.
-
Number of cells in a row.
Declaration
Swift
func midiTimeTableView(_ midiTimeTableView: MIDITimeTableView, numberOfCellsInRow row: Int) -> IntParameters
midiTimeTableViewTime table to populate cells.
rowIndex of row to populate.
Return Value
Number of cells in the row.
-
Stable identity for a cell.
Declaration
Swift
func midiTimeTableView(_ midiTimeTableView: MIDITimeTableView, idForCellAt index: MIDITimeTableCellIndex) -> MIDITimeTableCellID -
Position of a cell in beats.
Declaration
Swift
func midiTimeTableView(_ midiTimeTableView: MIDITimeTableView, positionForCellAt index: MIDITimeTableCellIndex) -> Double -
Duration of a cell in beats.
Declaration
Swift
func midiTimeTableView(_ midiTimeTableView: MIDITimeTableView, durationForCellAt index: MIDITimeTableCellIndex) -> Double -
Header view for a row. Return a dequeued header view when possible.
Declaration
Swift
func midiTimeTableView(_ midiTimeTableView: MIDITimeTableView, viewForHeaderInRow row: Int) -> MIDITimeTableHeaderCellViewParameters
midiTimeTableViewTime table that displays the header.
rowRow index of the header.
Return Value
Header view for the row.
-
Cell view for a row/index pair. Return a dequeued cell view when possible.
Declaration
Swift
func midiTimeTableView(_ midiTimeTableView: MIDITimeTableView, viewForCellAt index: MIDITimeTableCellIndex) -> MIDITimeTableCellViewParameters
midiTimeTableViewTime table that displays the cell.
indexRow and array-position of the cell view.
Return Value
Cell view for the given index.